上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 107 下一页
摘要: 在asp.net 1.1中,要做1个弹出的对话框的话,一般是在服务端的代码中这样写: btnClick.Attributes.Add("onclick", "return confirm('Are you sure?');"); 现在在ASP.NET 2.0中,只要使用客户端的代码就可以拉,新多了个onclientclick,这样写 asp:button id="btnClick" runat="server" OnClientClick="return confirm('Are you sure?');" text="Button"/asp:button 哈哈,效果一样的拉,是不是很 阅读全文
posted @ 2007-03-22 02:52 leonardleonard 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 我们知道,为了使对于普通 HTML 元素的title可以换行,至少可以有可以两种方式:1。将title的文本分行写a href="#" title="helloworld"hello world/a2。插入换行符号 a href="#" title="hello&10;world"hello world/a或者 a href="#" title="hello&13;world"hello world/a10与13分别是换行符与回车符的ACII十进制值如果需要对WebControl设置title(其实是tooltip属性)这两种方法都失效了,而是只需要插入编程语言内置的换 阅读全文
posted @ 2007-03-22 02:51 leonardleonard 阅读(153) 评论(0) 推荐(0) 编辑
摘要: GridView较之DataGrid提供了更加强大、更加完善的功能,而且具备了丰富的可扩展功能,可以使用GridView提供的pagertemplate自定义分页模板:事实上,GridView默认的几中分页样式,都是将相关按钮的CommandName设为Page,而CommandArgument设为相关参数,可接受的参数包括,first,last,prev,next,PageIndex(具体数字),然后按事件回溯,触发顶层的RowCommand,因此我们页可以使用这些默认的可识别的参数自定义自己的分页模板,asp.net会自动设置当前的NewPageIndex,而不需要任何的冗余代码。.a 阅读全文
posted @ 2007-03-22 02:49 leonardleonard 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 曾经为在DataGridView中设置密码列(显示为*号)而发愁,如何把Windows 窗体 DataGridView 的某一列的数据显示为“*”。哈哈,今天终于搞定了。需要在DataGridView的2个事件中写代码真麻烦!下面的代码把第4列设置为密码列(显示为*号): /// summary /// 单元格显示格式事件 /// /summary /// param name="sender"/param /// param name="e"/param private void dataGridView1_CellFormatting(object sender, 阅读全文
posted @ 2007-03-22 02:48 leonardleonard 阅读(144) 评论(0) 推荐(0) 编辑
摘要: //本文章有www.blue1000.com翻译,原文地址http://codebetter.com/blogs/brendan.tompkins/archive/2004/01/26/6103.aspx//尊重他人劳动成果,转载请注明出处。写程序的时候经常用到gdi+,他可以将一幅深色32bpp图像保存为一个gif文件,过程也比较简单。并且在使用CreateThumnailImage方法保存这个gif图片之前,你还可以调整它的尺寸。常用的代码:System.Drawing.Bitmapb=newSystem.Drawing.Bitmap(“c:\\original_image.gif“);S 阅读全文
posted @ 2007-03-22 00:32 leonardleonard 阅读(208) 评论(0) 推荐(0) 编辑
摘要: !DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""ahref="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"target="_blank"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd/a"htmlxmlns="ahref="http://www.w3.org/1999/xhtml"target="_blank"http://www.w3.org/1999/xhtml/a"he 阅读全文
posted @ 2007-03-22 00:31 leonardleonard 阅读(116) 评论(0) 推荐(0) 编辑
摘要: scriptlanguage=javascriptvarDS_x,DS_y;functiondateSelector()//构造dateSelector对象,用来实现一个日历形式的日期输入框。{varmyDate=newDate();this.year=myDate.getFullYear();//定义year属性,年份,默认值为当前系统年份。this.month=myDate.getMonth()+1;//定义month属性,月份,默认值为当前系统月份。this.date=myDate.getDate();//定义date属性,日,默认值为当前系统的日。this.inputName='' 阅读全文
posted @ 2007-03-22 00:31 leonardleonard 阅读(112) 评论(0) 推荐(0) 编辑
摘要: !DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN"!--savedfromurl=(0045)ahref="http://e.goldia.cn/plus/calendar/calendar.htm"target="_blank"http://e.goldia.cn/plus/calendar/calendar.htm/a--HTMLHEADMETAhttp-equiv=Content-Typecontent="text/html;charset=gb2312"SCRIPTtype=text/javascr 阅读全文
posted @ 2007-03-22 00:30 leonardleonard 阅读(145) 评论(0) 推荐(0) 编辑
摘要: HTMLHEADTITLE最精致的日历式日期输入控件(SmartVer1.00)/TITLE/HEADstylebody{font-size:12px;font-family:"Tahoma";}td{font-size:12px;font-family:"Tahoma";}.inputdate{border:1pxsolid#7287c6;text-align:center;font-size:12px;font-style:normal;height:16px;}/styleSCRIPTLANGUAGE="JavaScript"!--/********** 阅读全文
posted @ 2007-03-22 00:29 leonardleonard 阅读(130) 评论(0) 推荐(0) 编辑
摘要: ScriptLANGUAGE="JavaScript"varmonths=newArray("一","二","三","四","五","六","七","八","九","十","十一","十二");vardaysInMonth=newArray(31,28,31,30,31,30,31,31,30,31,30,31);vardays=newArray("日","一","二","三","四","五","六");varclassTemp;vartoday=newgetToday();varyear=today.year;varmonth=today.month;varnewCal;function 阅读全文
posted @ 2007-03-22 00:29 leonardleonard 阅读(77) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 107 下一页