Loading

随笔分类 -  asp.net 3.5

摘要:1, embedded resource2, add webresource in assemblyInfo.cs3, add js reference with script managerNote: please pay attension the js file name. 阅读全文
posted @ 2012-04-20 21:22 .net's 阅读(382) 评论(0) 推荐(0)
摘要:Custom Authentication provider by implementing IHttpModule, IPrincipal and IIdentityhttp://www.codeproject.com/KB/web-security/AspNetCustomAuth.aspxAsp.Net: Authentication based on HTTP Basic protocol. HttpModule.http://blogs.x2line.com/al/articles/146.aspxImplementing Intercepting Filter in ASP.NET 阅读全文
posted @ 2011-05-13 20:01 .net's 阅读(789) 评论(0) 推荐(0)
摘要:IntroductionBlogEngine.NET is an open source .NET blogging project that was born out of desire for a better blog platform. A blog platform with less complexity, easy customization, and one that takes advantage of the latest .NET features.BlogEngine.NET was designed using the current .NET framework a 阅读全文
posted @ 2011-03-13 13:41 .net's 阅读(777) 评论(0) 推荐(0)
摘要:[代码]link:jQuery UI confirmation dialog and asp.net postbackhttp://www.deviantpoint.com/post/2009/03/12/Using-jQuery-UI-Dialogs-for-confirmation-windows.aspx 阅读全文
posted @ 2011-02-17 17:09 .net's 阅读(556) 评论(0) 推荐(0)
摘要:asp.net,javascript,RequiredFieldValidator,DetailsView,CommandField. 为CommandField注册脚本 阅读全文
posted @ 2011-02-15 20:42 .net's 阅读(696) 评论(0) 推荐(0)
摘要:http://www.asp.net/master-pages/tutorials/interacting-with-the-master-page-from-the-content-page-cs 阅读全文
posted @ 2011-01-21 21:01 .net's 阅读(418) 评论(0) 推荐(0)
摘要:Format Description Code Snippet Output Short date pattern (d) DateTime.Now.ToString("d") 11/8/2010 Long date pattern (D) DateTime.Now.ToString("D") Monday, November 08, 2010 Full d... 阅读全文
posted @ 2010-11-18 16:57 .net's 阅读(590) 评论(0) 推荐(0)
摘要:Track your visitors using an HttpModule 阅读全文
posted @ 2010-10-31 17:52 .net's 阅读(434) 评论(0) 推荐(0)
摘要:出处:Simple FTP file upload in C# 2.0 阅读全文
posted @ 2010-10-31 13:41 .net's 阅读(615) 评论(0) 推荐(0)
摘要:<script type="text/javascript"> //当前table的父table所在的checkbox function GetParentCheckBox(node) { while (node.tagName != "TABLE") { node = node.parentNode; } while (node.tagName... 阅读全文
posted @ 2010-10-30 14:04 .net's 阅读(569) 评论(0) 推荐(0)
摘要:本篇描述如何使用GridView(需要实现IPageableItemContainer接口)加DataPager实现分页功能。并使用ObjectDataSource控件来获得数据源实现分页。 1,O... 阅读全文
posted @ 2010-09-29 12:28 .net's 阅读(888) 评论(0) 推荐(0)
摘要:SelectCountMethod方法的返回值必须是int(必须小于等于int类型),若返回值是long类型则会报如下错误:  折腾啊,使用ListView时,如果asp:ObjectDataSource的SelectCountMethod方法的返回值是long类型会报此错误。 若使用GridView实现IPageableItemContainer接口来分页,则只会绑定空行,什么错误... 阅读全文
posted @ 2010-09-29 09:00 .net's 阅读(583) 评论(0) 推荐(0)
摘要:为什么要使用FindByValue而不使用SelectedValue???  假设this.DropDownList1.SelectedValue == "1",即选择的是b。若传入的值为"A” 使用FindByValue则this.DropDownList1.SelectedValue还是等于“1”,即还是选择的是第二项没有改变。(操作者以为是传入正确的... 阅读全文
posted @ 2010-09-16 00:17 .net's 阅读(393) 评论(0) 推荐(0)
摘要:http://mattberseth.com/blog/2007/12/creating_a_google_suggest_styl.html 阅读全文
posted @ 2010-07-08 08:10 .net's 阅读(354) 评论(0) 推荐(0)
摘要:树形菜单(checkbox列表),设置checkbox的选中状态 阅读全文
posted @ 2009-03-14 16:43 .net's 阅读(801) 评论(0) 推荐(0)
摘要:自定义分页用户控件 阅读全文
posted @ 2009-03-11 22:48 .net's 阅读(441) 评论(0) 推荐(0)
摘要:样式: 注: ①、不需要打印的对象要用上“Noprint”样式。 ②、需要换页处理的对象要用上“PageNext”样式。 ③、因为最后一页不用加入换页符,所以要控制最后一页不要使用该样式。个人感觉用PAGE-BREAK-BEFORE属性控制第一页要方便一些。 阅读全文
posted @ 2009-03-04 20:24 .net's 阅读(4252) 评论(0) 推荐(0)
摘要:webform情况: 成员变量abc当赋值之后,则该值存在,直到再次触发任何事件, 该值消失,abc=null,接着程序首先运行的是public string abc="ddd"; 接着Page_load, 然后在运行触发事件方法。 即asp.net常被人们成为无状态 Code Code highlighting produced by Actipro CodeHighlighter (f... 阅读全文
posted @ 2009-02-05 22:57 .net's 阅读(798) 评论(0) 推荐(0)
摘要:在C#中,请千万不要使用静态局部变量。 这回真是让自己撞上了。 特别是在asp.net中就更不能用了。 静态局部变量,不管是实例还是静态类都是共享的,所以千万不要用。特别是有二次赋值的情况更糟糕。 阅读全文
posted @ 2009-02-05 21:50 .net's 阅读(607) 评论(2) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public void Open() { string FullFileName = ""; //ASP.NET下载文件(弹出打开保... 阅读全文
posted @ 2008-12-17 22:09 .net's 阅读(2490) 评论(4) 推荐(0)