fengrengui

导航

2009年5月26日

关于customErrors 报错的问题.

摘要: 给站点文件夹添加以下用户"写"权限.aspnet,IIS_WPG,Iusr_机器名network service账户. 阅读全文

posted @ 2009-05-26 10:51 阿贵 阅读(205) 评论(0) 推荐(0) 编辑

2006年11月9日

要为网站做一个帮助页面,实现点击标题折叠或是展开

摘要: 要为网站做一个帮助页面,想把所有的内容按标题分级折叠起来,如下*一级菜单1 *内容1 *二级菜单1 *三级菜单1 *内容2 *三级菜单2 *内容3 *二级菜单2 *内容4*一级菜单2 *二级菜单3 *内容5要实现的效果是点击某菜单显示其内容或下一级菜单,再点击折叠起来.希望高人赐教.听说有工具软件能很容易地实现这种页面,不知是什么. 阅读全文

posted @ 2006-11-09 10:01 阿贵 阅读(478) 评论(0) 推荐(0) 编辑

2006年8月15日

正则表达式,字符串提取

摘要: string pattern ="";Regex r=New Regex(pattern,RegexOptions.Multiline);MatchCollection mc=r.Matches(WebpageSourceCode);我相从网页source code中提取这些信息:以<a href="personen.d4w开头到第一个</tr>结束,网页中可能多个这样的字符串。... 阅读全文

posted @ 2006-08-15 20:33 阿贵 阅读(560) 评论(2) 推荐(0) 编辑

2006年7月12日

怎样给JS写的function传递后台程序中的参数?

摘要: var OrgID;var con;function MM_openWindow(OrgID,con) { //v2.0 window.open('InputPerson.aspx?OrgID='+ OrgID + '&con='+con,'test','scrollbars=yes,width=600,height=300,left=200,top=200,resizable=yes')... 阅读全文

posted @ 2006-07-12 23:26 阿贵 阅读(1195) 评论(0) 推荐(0) 编辑

2006年7月7日

响应update的triger

摘要: CREATE TRIGGER dbo.AfterProcessDeleteON dbo.tb_Processes after updateASdeclare @DeleteTime datetimeset @DeleteTime=(select DeleteTime from inserted)if(update(DeleteTime) and (@DeleteTime is not null))... 阅读全文

posted @ 2006-07-07 14:10 阿贵 阅读(293) 评论(0) 推荐(0) 编辑

asp.net的弹出窗口

摘要: C#中,弹出窗口的代码为:MessageBox("用户名或密码错误!","错误:");而在Asp.net中,则不可以用这种方法了,这时我们可以写一个类Message(名字随便取),内容如下://---------------------------------------//作者:明天去要饭//QQ:305725744//--------------------------------------... 阅读全文

posted @ 2006-07-07 13:05 阿贵 阅读(1050) 评论(1) 推荐(0) 编辑

2006年7月3日

asp.net后台程序中怎样控制链接的target?

摘要: 我要在后台程序的某个事件中实现框架中另外一个页面的跳转要如何来写,类似于hyperlink的navigitorurl和target的属性,但hyperlink没有相应的事件,不能用。求高人相助! 阅读全文

posted @ 2006-07-03 17:13 阿贵 阅读(847) 评论(0) 推荐(0) 编辑

2006年6月23日

验证dropdownlist的方法

摘要: 在网上找不到我想要验证dropdownlist的方法,所以想了N久,才想到这个方法,<asp:comparevalidator id="checkpwd" runat="server" Display="Dynamic" ControlToValidate="workClass" Type="String" ValueToCompare="父级分类" Operator="NotEqual" ... 阅读全文

posted @ 2006-06-23 13:47 阿贵 阅读(1896) 评论(2) 推荐(0) 编辑

2006年6月19日

给datagrid加linkbutton的click事件

摘要: 如果想给这样的东西加事件最笨的方法(也是我现在在用的方法)。DataGrid外面(窗体上)放一个宽度高度都是0的按钮(hidebtnTest) 从DataGrid中取出这个控件的引用。例: ButtonbtnTest=gdTest.Items.FindControl("gdbtnTest")asButton; btnTest.AddAttribute("onclick","document.all... 阅读全文

posted @ 2006-06-19 13:19 阿贵 阅读(1202) 评论(2) 推荐(0) 编辑

2006年5月29日

DataGrid行随鼠标变色

摘要: privatevoidDGzf_ItemDataBound(objectsender,System.Web.UI.WebControls.DataGridItemEventArgse){ if(e.Item.ItemType!=ListItemType.Header) {  e.Item.Attributes.Add("onmouseout","this.style.backgroundColor... 阅读全文

posted @ 2006-05-29 11:22 阿贵 阅读(387) 评论(0) 推荐(0) 编辑