ぁwō'd溡緔*

.ㄧ┠愛.│是最後一次___". 傷.│也到此為止 _ ...ㄧ做個浪子..┻┕┅獨行天下!!
摘要: private Const string FromEmail="hui1986110@163.com"private Conse string EmailPwd="sdfsdfdghdfg"; public bool SendEmail(string ToEmail,string Subject,string Body){MailMessage Mail;SmtpClient SmtpClien... 阅读全文
posted @ 2007-04-23 11:19 Top.Net 阅读(539) 评论(0) 推荐(0) 编辑
摘要: protected string UrlPrefix(HttpRequest req) { string path = "http://" + req.Url.Host.ToString(); path += req.ApplicationPath != "/" ... 阅读全文
posted @ 2007-04-23 10:57 Top.Net 阅读(291) 评论(0) 推荐(0) 编辑
摘要: /// /// 给参数数组赋值 /// /// 参数数组 /// 参数名称 /// 参数值 protected void initParams(ref IDataParameter[] p, string[] _name, object[] _value) { if (p.L... 阅读全文
posted @ 2007-04-23 10:54 Top.Net 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2007-04-23 09:38 Top.Net 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 假设你的DataGrid有三列,现在想将前两列作为"大类1",第三列作为"大类2",现在,你可以在ItemDataBound事件中加入下面的代码:if (e.Item.ItemType == ListItemType.Header){e.Item.Cells[0].ColumnSpan = 2;e.Item.Cells[0].Text = "大类1大类2" + e.Item.Cells[0].Te... 阅读全文
posted @ 2007-04-23 09:14 Top.Net 阅读(494) 评论(0) 推荐(0) 编辑
摘要: TreeView tree_gameNews DataSet ds=new DataSet(); string parentComstr = "select ModelID,Model_Name from Model"; string childComstr = "select ModuleID,Mod_Name,ModelID from Modu... 阅读全文
posted @ 2007-04-23 09:10 Top.Net 阅读(844) 评论(1) 推荐(0) 编辑
摘要: 存入数据库的代码段: 另一个文件是showing.asp,则代码如下: 显示的方法为 阅读全文
posted @ 2007-04-23 09:08 Top.Net 阅读(650) 评论(0) 推荐(0) 编辑
摘要: public string ViewHtml(DataList dl) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); dl.RenderControl(new HtmlTextWriter(new System.IO.StringWrit... 阅读全文
posted @ 2007-04-23 09:03 Top.Net 阅读(504) 评论(1) 推荐(0) 编辑