上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
  2009年10月21日
摘要: -  取得服務器上的時間:Context.Timestamp  ------------------------------  具體時間:  Context.Timestamp.TimeOfDay.ToString()  年月日:  Context.Timestamp  年份:  Context.Timestamp.Year  月份:  Context.Timestamp.Month  日期部份:... 阅读全文
posted @ 2009-10-21 09:06 遥望大海,云卷云舒 阅读(613) 评论(0) 推荐(1) 编辑
  2009年10月15日
摘要: String.Split 方法有6个重载函数: 程序代码1) public string[] Split(params char[] separator)2) public string[] Split(char[] separator, int count)3) public string[] Split(char[] separator, StringSplitOptions options)... 阅读全文
posted @ 2009-10-15 15:02 遥望大海,云卷云舒 阅读(382) 评论(0) 推荐(0) 编辑
  2009年10月10日
摘要: 文件ip路径:<%="http://" & request.servervariables("server_name")& request.servervariables("script_name") %> <br/>本机ip:<%=request.servervariables("remote_addr")%> <br/>服务器名:... 阅读全文
posted @ 2009-10-10 08:52 遥望大海,云卷云舒 阅读(1634) 评论(0) 推荐(1) 编辑
  2009年9月27日
摘要: 身份验证票 和 form验证 using System.Web.Security;if((TextBox1.Text.Trim()=="a") && (TextBox2.Text.Trim()=="b")) { FormsAuthentication.SetAuthCookie(TextBox1.Text, false); } else { HttpContext.Current... 阅读全文
posted @ 2009-09-27 15:07 遥望大海,云卷云舒 阅读(1782) 评论(0) 推荐(0) 编辑
  2009年9月11日
摘要: protected void OnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow)////e.Row.RowType 是指当前行的类型 //DataControlRowType 是GridView的行的类型集合 其中的DataRow是数据绑定行... 阅读全文
posted @ 2009-09-11 16:35 遥望大海,云卷云舒 阅读(253) 评论(0) 推荐(0) 编辑
摘要: ScriptManager.RegisterStartupScript(this.Button1, this.GetType(), "alertScript", "window.open('default2.aspx');", true); 其中第一个参数为要注册脚本的控件ID,试了一下,只要是本页面的就行。 第二个参数为注册脚本控件类型,是控件还是this的GetType()都可以,typeOf... 阅读全文
posted @ 2009-09-11 16:15 遥望大海,云卷云舒 阅读(965) 评论(1) 推荐(1) 编辑
  2009年9月10日
摘要: 下面是scriptManager的结构:下面介绍下ScriptManager的几个属性和一些子元素 a, EnablePartialRendering: (默认局部渲染)比较重要,用来表示此页面是否允许局部刷新(默认为true) b, AllowCustomErrorsRedirect :当发生错误时候,是否导航到web.config中定义的错误页面,如果设置为false,则使用AsyncPost... 阅读全文
posted @ 2009-09-10 16:23 遥望大海,云卷云舒 阅读(211) 评论(0) 推荐(0) 编辑
  2009年9月9日
摘要: GridView使用-添加事件在服务器端执行2007年09月17日 星期一 09:56今天看到一篇关于GridView使用的文章感觉很好,特来分享,关于向服务器添加事件1、删除前加判断protected void gv_productJingPing_RowDataBound(object sender, GridViewRowEventArgs e){ if(e.Row.RowType == D... 阅读全文
posted @ 2009-09-09 16:39 遥望大海,云卷云舒 阅读(250) 评论(0) 推荐(0) 编辑
  2009年9月1日
摘要: 2008-03-20 13:08RowDataBound事件 在创建gridView控件时,必须先为GridView的每一行创建一个GridViewRow对象,创建每一行时,将引发一个RowCreated事件;当行创建完毕,每一行GridViewRow就要绑定数据源中的数据,当绑定完成后,将引发RowDataBound事件。如果说我们可以利用RowCreated事件来控制每一行绑定的控件,那么我们... 阅读全文
posted @ 2009-09-01 10:58 遥望大海,云卷云舒 阅读(616) 评论(0) 推荐(0) 编辑
  2009年8月31日
摘要: ASP.NET数据控件之数据绑定控件比较(Reapter\DataList\GridView\DatailsView\FormView)都有哪些方面呢?让我们开始讲解:ASP.NET数据控件之数据绑定控件比较1.插入功能方面:DetailsView和FormView具有插入功能,其它控件没有ASP.NET数据控件之数据绑定控件比较2.模板DataList\FormView\Repeater三种必须... 阅读全文
posted @ 2009-08-31 16:49 遥望大海,云卷云舒 阅读(282) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页