posts - 78,comments - 26,views - 87万
05 2011 档案
转:js控制asp.net服务器端控件textbox设置为多行时输入字符长度
摘要:<script language="javascript"> <!-- function MaxLength(field,maxlimit) { var j = field.value.replace(/[^\x00-\xff]/g,"**").length; //alert(j); var tempString=field.value; var tt=""; if(j > maxlimit) { for(var i=0;i<maxlimit;i++) { if(tt.replace(/[^\x00-\x 阅读全文
posted @ 2011-05-27 09:13 dinoy 阅读(1532) 评论(0) 推荐(1) 编辑
代码创建IIS站点
摘要: #region 新建立一个IISWEB站点 ///<summary> ///添加一个站点 ///</summary> public string CreateWebSite() { int siteID = int.Parse(GetNewWebSiteID()); try { root = new DirectoryEntry("IIS://" + this._server + "/W3SVC"); if (EnsureNewSiteEnavaible(this._serverip + ":" + thi 阅读全文
posted @ 2011-05-20 11:41 dinoy 阅读(1424) 评论(0) 推荐(0) 编辑
转:点击按钮添加行
摘要:前台代码<%@ Page Language= "C# " AutoEventWireup= "true " CodeFile= "GridMuliEdit.aspx.cs " Inherits= "CSDN_GridMuliEdit " %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transition 阅读全文
posted @ 2011-05-05 18:14 dinoy 阅读(407) 评论(0) 推荐(0) 编辑
转:GridView 72般绝技
摘要:为了写本文,又搭工又搭料,累的2天2宿没睡觉,这篇文章实在是耗费我太多的心血,版权永远属于CSDN社区的清清月儿,请不要试图修改本文,破坏全文的完整性,希望您尊重我的劳动成果!快速预览:GridView无代码分页排序GridView选中,编辑,取消,删除GridView正反双向排序GridView和下拉菜单DropDownList结合GridView和CheckBox结合鼠标移到GridView某一行时改变该行的背景色方法一鼠标移到GridView某一行时改变该行的背景色方法二GridView实现删除时弹出确认对话框GridView实现自动编号GridView实现自定义时间货币等字符串格式Gr 阅读全文
posted @ 2011-05-05 17:34 dinoy 阅读(272) 评论(0) 推荐(0) 编辑
转:GridView 模板列中的数据绑定
摘要:<asp:TemplateField HeaderText="姓名"><ItemTemplate> <%# Eval("FirstName") %><%# Eval("LastName") %></ItemTemplate><asp:TemplateField>或<%# DataBinder.Eval(Container.DataItem,"数据库字段")%><%# DataBinder.Eval(Container.Data 阅读全文
posted @ 2011-05-05 17:29 dinoy 阅读(2700) 评论(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

点击右上角即可分享
微信分享提示