Skip to content

Monthly Archives: July 2011

ASP.NET程序中常用的三十三种代码

24-Jul-11

1. 打开新的窗口并传送参数:

传送参数:

response.write(“<script>window.open(‘*.aspx?id=“+this.DropDownList1.SelectIndex+”&id1=“+...+”‘)</script>“)

接收参数:

string a =
Request.QueryString(“id”);

string b =
Request.QueryString(“id1”);

2.为按钮添加对话框

Button1.Attributes.Add(“onclick”,”return
confirm(‘
确认?’)”);

button.attributes.add(“onclick”,

”if(confirm(‘are you sure...?’)){return
true;}else{return false;}”)

3.删除表格选定记录

int intEmpID
= (int)MyDataGrid.DataKeys[e.Item.ItemIndex];

string
deleteCmd = “DELETE from Employee where emp_id =

Problem in QQ’s install(side by side)

19-Jul-11

When I reinstall QQ, there is a problem like:

“application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.”

refer to http://www.sevenforums.com/general-discussion/19958-qq-x_x-side-side-config.html

then download:…

How to use Subversion?

14-Jul-11

1. Setup your Subversion Server;

2. Setup your repository;

3. Using TortoiseSVN to connect to the repository

a)Import: import your local files to repository;

b)Checkout: get files from your repository and SVN will make hidden files and folders in the …

About Jquery

02-Jul-11

JQuery: Write less Do more…