随笔分类 -  ASP.Net Technical Issues

Sharing and Communicating with everybody who has interests in ASP.Net about ASP.Net programming experiences
如何在IIS中捕获指定的Exception
摘要:如何在IIS中捕获指定的Exception,例如System.OutOfMemoryException等 阅读全文

posted @ 2009-01-04 14:34 飞天舞者 阅读(396) 评论(0) 推荐(0) 编辑

发布asp.net website常见症状及其解决方法
摘要:在发布asp.net开发的website的时候,总会遇到各种各样的问题,而这些问题在本机进行开发时候是不会出现的。下面几个是常见的问题 阅读全文

posted @ 2008-06-19 12:50 飞天舞者 阅读(452) 评论(0) 推荐(0) 编辑

ASP.NET中将检索出的数据写入Exel形成Report的一种solution
摘要:关键词:DataSet,DataTable, DataBase, Excel, Report 正文: 在基于web的MIS中,经常需要将从DataBase检索出的数据形成报表。而Exel报表在公司尤为常见。在.net Framework下,检索出的数据保存至DataSet或者DataTable是最常见的方法了。那么,如何将DataSet或DataTable中保存的内存数据写入Excel呢?... 阅读全文

posted @ 2008-05-26 16:40 飞天舞者 阅读(594) 评论(1) 推荐(0) 编辑

How to Identify User&Password of DataBase safely in SQL statement?
摘要:Problem description: for many developer, they don't care much about Passcode identity. when Logining into the database server ,they just write like this: sql="select * from user where username='"+... 阅读全文

posted @ 2008-01-06 16:03 飞天舞者 阅读(204) 评论(0) 推荐(0) 编辑

Edit(Update,Cancel) ,Delete in DataList webcontrol
摘要:1 we must set different template of the datalist object as diffirent appearance, such as itemplate,editplate,headertemplate,footertemplate. in edit template, Update function should have the Updat... 阅读全文

posted @ 2008-01-06 13:03 飞天舞者 阅读(527) 评论(0) 推荐(0) 编辑

Use SqlDataAdapter to update database, but SqlCommandBuilder required
摘要:SqlDataAdapter da = new SqlDataAdapter(); SqlCommand cmd = new SqlCommand("select * from t_upload", conn); da.SelectCommand = cmd; SqlCommandBui... 阅读全文

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

File Reader sample
摘要:private void GetFileContents(String FileName) { try { FileInfo inf = new FileInfo(FileName); StreamReader rd = new StreamReader(inf.OpenRead()); ... 阅读全文

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

IO-->File and Directory class
摘要:The class to process the file and directory mainly include Directory, DirectoryInfo, File, FileInfo Directory : create, move, rename, delete directory with static method . if you will use a directo... 阅读全文

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

operate XML file(update,delete)
摘要:4. update value in XML file XmlNodeList nodeList=xmlDoc.SelectSingleNode("bookstore").ChildNodes;//获取bookstore节点的所有子节点 foreach(XmlNode xn in nodeList)//遍历所有子节点 { XmlElement xe=(XmlElement)xn... 阅读全文

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

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 飞天舞者 阅读(358) 评论(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 飞天舞者 阅读(461) 评论(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 飞天舞者 阅读(248) 评论(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 飞天舞者 阅读(236) 评论(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 飞天舞者 阅读(328) 评论(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 飞天舞者 阅读(235) 评论(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 飞天舞者 阅读(166) 评论(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 飞天舞者 阅读(180) 评论(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 飞天舞者 阅读(218) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
For more information about me, feel free email to me winston.he@hotmail.com
点击右上角即可分享
微信分享提示