2008年1月4日

operate XML file (Open,Insert)

摘要: 1. Some specific name: XmlDocument XmlNodeList XmlNode XmlElement The whole architecture and relation among them is following Attentions:selectsinglenodelist(”users”),用于获取users下面的所有直接子节点。这个方... 阅读全文

posted @ 2008-01-04 21:38 飞天舞者 阅读(353) 评论(0) 推荐(0) 编辑

upload file to server

摘要: Way 1: UpLoadFile webcontrol can finish it easy FileUpLoad ful_load =new FileUpLoad(); //FileUpLoad is a kind of control ….. Set the upload file name; ful_load.SaveAs(Server.MapPath(ful_load.Fil... 阅读全文

posted @ 2008-01-04 21:34 飞天舞者 阅读(457) 评论(0) 推荐(0) 编辑

save cookies and get cookies in system using asp.net

摘要: 1. use Response.cookies[“cookiesname”][“keyname”] to save cookies 2. use Request.cookies[“cookiesname”][“keyname”] to get cookies; Eg. Save cookies codingl Response.Cookies["userinfo"]["username"] = ... 阅读全文

posted @ 2008-01-04 21:33 飞天舞者 阅读(244) 评论(0) 推荐(0) 编辑

Send mail with attachment in asp.net

摘要: //send mail MailMessage message = new MailMessage(); message.To = this.txtEmail.Text.Trim(); message.From = this.txtMyemail.Text.Trim(); message.Body = this.txtBody.Text.Trim(); message... 阅读全文

posted @ 2008-01-04 21:32 飞天舞者 阅读(232) 评论(0) 推荐(0) 编辑

select multi option in checkbox group in one time

摘要: Such as: there is a checkbox group in a datalist named datalist1. we need to catch the name selected through pressing the button2. the codes is following. protected void Button2_Click(object sender, ... 阅读全文

posted @ 2008-01-04 21:29 飞天舞者 阅读(324) 评论(0) 推荐(0) 编辑

the differences between DataGrid and DataList in HTML View

摘要: 1.datagrid The datagrid’s label of vs.net is 2.datalist > 阅读全文

posted @ 2008-01-04 21:28 飞天舞者 阅读(232) 评论(0) 推荐(0) 编辑

add custom attribute to standard windows controls

摘要: Eg.there is a button name hrg_button, when we press the button,it should popup a prompt window; We should code the following: Hrg_button.addtribute.add(“onclick”,”confirm(‘are you sure?’)”); 阅读全文

posted @ 2008-01-04 16:56 飞天舞者 阅读(165) 评论(0) 推荐(0) 编辑

Connection string for oledb and sql

摘要: First case:oledb OleDbConnection conn; Conn.connectionstring=”microsoft.Jet.Oledb.4.0;data source=test.mdb;Persist Security Info=false”; Second case: SqlConnection conn; Con.connenctstring=”datasource... 阅读全文

posted @ 2008-01-04 16:55 飞天舞者 阅读(179) 评论(0) 推荐(0) 编辑

AJAX Asynchronous JavaScript and XML

摘要: ajax architecture 1.Intitial XMLHttpRequest object and send the Request; 2. assign the process function for the request; 3.send out the http request; 4.process the return result from s... 阅读全文

posted @ 2008-01-04 16:48 飞天舞者 阅读(261) 评论(0) 推荐(0) 编辑

1.the response.request,server,session in a self-create class

摘要: class A { protected HttpSessionState Session; protected HttpServerUtility Server; protected HttpRequest Request; procteted HtpResponse Response; public A(object parent) { ... 阅读全文

posted @ 2008-01-04 08:19 飞天舞者 阅读(216) 评论(0) 推荐(0) 编辑

导航

For more information about me, feel free email to me winston.he@hotmail.com