上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页
摘要: vs2003 public static bool SendMail(string from, string to, string subject, string body, string smtpServer, string userName, string password, ref string result) { MailMessage mailMsg = new ... 阅读全文
posted @ 2008-10-23 09:56 Landy_di 阅读(136) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebPart... 阅读全文
posted @ 2008-10-23 09:56 Landy_di 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1.安装jmail4.3 2.找到jmail.dll(Program Files\Dimac\w3JMail4下) 3.执行Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin\ildasm.exe(可使用Visual Studio .Net 2003 命令提示), 格式如下:tlbimp c:\Program Fil... 阅读全文
posted @ 2008-10-23 09:55 Landy_di 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 这是http://www.codeplex.com/上的一个开源项目SharpPieces , 不过作者目前只开发了这一个控件, 实现了页面PostBack后保存控件状态 .分享一下 . 效果如图: 源码下载地址: 点击查看 http://www.codeplex.com/SharpPieces/Release/ProjectReleases.aspx?ReleaseId=6782... 阅读全文
posted @ 2008-10-23 09:55 Landy_di 阅读(370) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Web.UI; using System.Web.UI.WebControls; using System.ComponentModel; using System.Drawing; using System.Text; using System.Text.RegularExpressions; namespace rungoo.WebCtrl... 阅读全文
posted @ 2008-10-23 09:54 Landy_di 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 在ASP.NET中动态创建一个控件总是不那么顺利,特别是当对页面的Life Cycle不是那么了然的情况下!这里简单描述一下要求,然后提供一个解决方案,大家看看有没有更好的Idea,如果有的话就是我的大幸了,呵呵! 要求:页面上有一个Add按钮,每点击一次该按钮,页面上动态创建一个WebPartZone! 提醒:WebPartZone只能在OnInit或之前才能创建,否则报异常! ... 阅读全文
posted @ 2008-10-23 09:54 Landy_di 阅读(243) 评论(0) 推荐(0) 编辑
摘要: private DataView CreateDataView() { SqlDataAdapter cmd=null; DataSet ds=null; string cmdSelect = "Select * from table1"; string cmdSelect1 = "Select * from table2"; cmd = new SqlDataAdapter(... 阅读全文
posted @ 2008-10-23 09:53 Landy_di 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 简介 本文描述如何使用嵌套的Repeater 控件来显示分级数据 。当然了,你也可以将这一技术应用到其他的列表绑定控件上去,比如DataGrid包含DataGrid,DataList包含DataList等等的组合。 绑定到父表 1.添加一个新的Web Form 到应用程序项目中,名称为Nestedrepeater.aspx. 2.从工具箱托动一个Repeater 控件到这个页面上, 设... 阅读全文
posted @ 2008-10-23 09:52 Landy_di 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1. 和 有什么区别? 表示绑定的数据源 是服务器端代码块 2.以下代码能否通过编译?如果不能,请改成正确代码,并说明原因。 0) { Response.Write("Value: " + number + ""); number = subtract(number, 1); } %>... 阅读全文
posted @ 2008-10-23 09:51 Landy_di 阅读(190) 评论(0) 推荐(0) 编辑
摘要: .Aspx代码 .Cs代码 protected int i=1; protected void Repeater1_ItemDataBound(object src,RepeaterItemEventArgs e) ...{ ... 阅读全文
posted @ 2008-10-23 09:50 Landy_di 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页