
TIPs
kRiSnI
这个作者很懒,什么都没留下…
展开
-
用DIV加滚动条
OVERFLOW-Y: auto; HEIGHT: 256px; TEXT-ALIGN: left; background-repeat: no-repeat; width: 305px;">原创 2007-04-23 15:57:00 · 1112 阅读 · 0 评论 -
ASP.net技巧
警告窗口/// /// 服务器端弹出alert对话框/// /// 提示信息,例子:"不能为空!"/// Page类public void Alert(string str_Message,Page page){page.RegisterStartupScript("","alert("+str_Message+");");}重载此警告窗口,使某控件获得焦点/// /// 服务器端弹出aler原创 2007-04-23 16:33:00 · 1054 阅读 · 0 评论 -
.NET开发中的一些小技巧
这篇文章来自是Mukund Pujari的《Some Cool Tips for .NET》,本人给大家翻译总结一下,我英语水平也就那么回事,不合适的地方还是请大家提出来。1. 如何创建一个可改变大小没有标题栏的窗体?(How to create a form with resizing borders and no title bar?)form1.Text = string. Empt原创 2007-04-20 15:58:00 · 5761 阅读 · 0 评论 -
正则表达式去掉word转为html后的垃圾样式
// Remove all SPAN tags html = Regex.Replace(html, "]*>", ""); // Remove Class attributes html = Regex.Replace(html, "class=([^ |>]*)", ""); //原创 2007-08-01 10:40:00 · 1928 阅读 · 0 评论 -
找到含母版的页面下控件的方法
1、JS中:document.getElementById("") 2、PreviousPage.Master.FindControl("DynamicContent").FindControl("Panel1")注:DynamicContent是ContentPlaceHolderID原创 2007-08-01 12:40:00 · 1092 阅读 · 0 评论 -
正则表达式使用详解
入门简介 简单的说,正则表达式是一种可以用于模式匹配和替换的强有力的工具。我们可以在几乎所有的基于UNIX系统的工具中找到正则表达式的身影,例如,vi编辑器,Perl或PHP脚本语言,以及awk或sed shell程序等。此外,象JavaScript这种客户端的脚本语言也提供了对正则表达式的支持。由此可见,正则表达式已经超出了某种语言或某个系统的局限,成为人们广为接受的概念和功能。 正则表转载 2007-05-08 10:41:00 · 1025 阅读 · 0 评论 -
DataGrid绑定列如何截取字符串(不改数据源)?
在ItemDataBound事件中写if (e.Item.ItemType != ListItemType.Header && e.Item.ItemType != ListItemType.Footer && e.Item.ItemType != ListItemType.Pager) { string str = e.Item.Cells[5].Text原创 2007-05-06 17:19:00 · 1554 阅读 · 1 评论 -
正则表达式使用详解及常用正则表达式
正则表达式使用详解及常用正则表达式 JS的正则表达式 //校验是否全由数字组成 function isDigit(s) { var patrn=/^[0-9]{1,20}$/; if (!patrn.exec(s)) return false return true } //校验登录名:只能输入5-20个以字母开头、可带数字、“_”、“.”的字串 function isRegisterUs转载 2007-05-10 10:17:00 · 1250 阅读 · 0 评论