摘要: 1.Check the UbuntuOS version:cat /etc/issue2.How to install deb software:sudo dpkg -i your-package.deb3.How to install Language Support[Example English]:The following command will list language packs that can be installed:apt-cache search language-packThe packs can be install by entering (for Englis 阅读全文
posted @ 2013-05-19 13:49 BicycleBoy 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 数据据库结构:id subjectname parentidC#实现代码:StringBuilder html = new StringBuilder(); protected void Page_Load(object sender, EventArgs e) { DataTable dt = getTable("SELECT [Id],[subjectname],[ParentId] FROM [FileTree]"); if (dt.Rows.Count >0) { ... 阅读全文
posted @ 2013-05-19 13:48 BicycleBoy 阅读(1401) 评论(0) 推荐(0) 编辑
摘要: Microsoft Visual C++ 6.0 SP6 简体中文版 Microsoft Visual C++,简称 MSVC、VC++或VC,是微软公司 Visual Studio 系列中的C++开发工具,具有集成开发环境,具有编辑C语言,C++ 以及C++/CLI等编程语言的能力。 VC++整合了便利的除错工具,特别是整合了 Windows API、DirectX API 和 Microsoft .NET 框架(6.0 没有)。目前最新的版本是Microsoft Visual C++ 2008,Visual C++ 6.0 是其经典版本。Visual C++以拥有“语法高亮”,Intel. 阅读全文
posted @ 2013-05-19 13:30 BicycleBoy 阅读(928) 评论(0) 推荐(0) 编辑
摘要: AeroWindow--JQuery插件 AeroWindow是个Win7样式的弹出窗口,jQuery插件,效果很酷!而且还像windows的窗口一样可最大,最小化,随意拖动。可以一个页面中创建多个弹出窗,被选中的弹出窗会加亮显示,在同一网页中可以有多个弹出窗口,也可以通过双击窗口实现最大化,跟windows像极了。如果想要做一个类似操作系统的页面,用这个插件是完全可以实现的。兼容多种主流浏览器。 最基础的调用方法:view sourceprint?$('#YourContainerDiv').AeroWindow((WindowTitle:'hello world&# 阅读全文
posted @ 2013-05-19 13:27 BicycleBoy 阅读(1373) 评论(0) 推荐(0) 编辑
摘要: 后台代码 private void fillit() { string message = Session["sqlmessage"].ToString(); searchT.Visible = false; fillrepeater(message); } private void fillrepeater(string sqlstring) { BLL.Plan_Work bpw = new BLL.Plan_Work(); DataTable ds = bpw.GetList(sqlstring).Table... 阅读全文
posted @ 2013-05-19 13:20 BicycleBoy 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 为objectdatasource指定数据源前端代码<asp:ObjectDataSource ID="datasource" TypeName="PageTest.PersonInfo"SelectMethod="GetMessage" runat="server"> </asp:ObjectDataSource><asp:ListView ID="ListView1" runat="server" DataSourceID="dat 阅读全文
posted @ 2013-05-19 13:12 BicycleBoy 阅读(166) 评论(0) 推荐(0) 编辑
摘要: JS 实现简单的页面局部打印function preview(oper){if (oper < 10){bdhtml=window.document.body.innerHTML;//获取当前页的html代码sprnstr="<!--startprint"+oper+"-->";//设置打印开始区域eprnstr="<!--endprint"+oper+"-->";//设置打印结束区域prnhtml=bdhtml.substring(bdhtml.indexOf(sprnstr)+18 阅读全文
posted @ 2013-05-19 13:12 BicycleBoy 阅读(190) 评论(0) 推荐(0) 编辑
摘要: SON页<html><head> <title>计划选择</title> <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script> <script type="text/javascript"> $.post("gervalue.ashx", { "action": "getpagedata", "p 阅读全文
posted @ 2013-05-19 12:58 BicycleBoy 阅读(965) 评论(0) 推荐(0) 编辑
摘要: 一般处理程序页using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;using PublicTool;namespace OA.Module.WorkReport{ /// <summary> /// pageData 的摘要说明 /// </summary> public class pageData : IHttpHandler { public void ProcessRequest(HttpContext context 阅读全文
posted @ 2013-05-19 12:57 BicycleBoy 阅读(206) 评论(0) 推荐(0) 编辑
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script> <script src="../Scripts/Datepicker/WdatePicker.js" type="text/javascript&quo 阅读全文
posted @ 2013-05-19 12:55 BicycleBoy 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 页面前端JSfunction filldate(type, page, status) {//类型,页号,状态 $.post("showdata.ashx", { "par": type + ',' + page + "," + status }, function (data, status) { if (data != "") { var data1 = data.split(";"); $("#showdata").empty(); $("#s 阅读全文
posted @ 2013-05-19 12:53 BicycleBoy 阅读(479) 评论(0) 推荐(0) 编辑
摘要: SqlParameter[] sp = new SqlParameter[] {new SqlParameter("@id", SqlDbType.Int),new SqlParameter("@age", SqlDbType.Int) };//实例化一个SqlParameter对像 sp[0].Value = 1;//为SqlParameter对像赋值 sp[1].Direction = ParameterDirection.Output;//将对像中指定参数设置为输出变量public SqlParameter[] pulicMethod(string 阅读全文
posted @ 2013-05-19 12:50 BicycleBoy 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 前端代码:数据库表结构如下:id pname parent记得引用jquery和SelectPermission外部JS文件<style type="text/css"> #showhide { width: 100%; height: 100%; background-color: #FFFFFF; position: absolute; left: 0; top: 0; display: none; } #selectPermission{ width:100%; line-height:25px... 阅读全文
posted @ 2013-05-19 12:48 BicycleBoy 阅读(551) 评论(0) 推荐(0) 编辑
摘要: 页面代码:NOTE:需要jquery插件(Uploadify)下载地址:uploadify下载<%@ Page Language="C#" CodeBehind="AsynchronousUpload.aspx.cs"Inherits="Example.AsynchronousUpload" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/x 阅读全文
posted @ 2013-05-19 12:38 BicycleBoy 阅读(1136) 评论(0) 推荐(0) 编辑
摘要: 1、删除多余启动项 重装系统后有时会残留下以前版本的系统启动项,而且在系统配置启动项中见不到,但在电脑起动和故障恢复属性中确存在,可以用以下方式彻底删除: (1)在命令提示符模式下输入:【bcdedit】查看当前所有系统启动项 (2)接着输入【bcdedit /delete /?】查看当前系统中存在 阅读全文
posted @ 2013-05-19 12:37 BicycleBoy 阅读(216) 评论(0) 推荐(0) 编辑
摘要: <head runat="server"><title></title><script src="script/jquery-1.4.1.js" type="text/javascript"></script><script type="text/javascript">function getCookie(c_name) {if (document.cookie.length > 0) {c_start = document.cooki 阅读全文
posted @ 2013-05-19 12:36 BicycleBoy 阅读(117) 评论(0) 推荐(0) 编辑
摘要: private void cookieSerilizse(){//序列化string str = "I'm a test data";IFormatter fm = new BinaryFormatter();//实例化一个二进制序列化对象MemoryStreamms=new MemoryStream();//实例如化一个内存流对象fm.Serialize(ms, str);//进行序列化ms.Seek(0, SeekOrigin.Begin);//指定当前流的位置StreamReader sr = new StreamReader(ms);//实例化流的新实例st 阅读全文
posted @ 2013-05-19 12:35 BicycleBoy 阅读(1144) 评论(0) 推荐(0) 编辑
摘要: public static string IPAddress{get{string userIP;// HttpRequest Request = HttpContext.Current.Request;HttpRequest Request = HttpContext.Current.Request; // ForumContext.Current.Context.Request;// 如果使用代理,获取真实IPif (Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != "")userIP = Requ 阅读全文
posted @ 2013-05-19 12:33 BicycleBoy 阅读(368) 评论(0) 推荐(0) 编辑
摘要: //对字符串进行SHA1摘要public string EncryptToSHA1(string str){ SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider(); byte[] ... 阅读全文
posted @ 2013-05-19 12:33 BicycleBoy 阅读(389) 评论(0) 推荐(0) 编辑
摘要: $("a").mouseenter(function () {var setx = this.offsetLeft;var sety = this.offsetTop;//alert(setx + "," + sety);$("#showd").css({'top': sety + 20 + 'px','left': setx + 50 + 'px','position': 'absolute','background': 阅读全文
posted @ 2013-05-19 12:31 BicycleBoy 阅读(243) 评论(0) 推荐(0) 编辑