随笔分类 -  ASP.NET2.0&3.5

摘要:在IIS部署ASP.NET web application错误,解决方法:设定ASP.NET版本为2.0 Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please revie... 阅读全文
posted @ 2008-10-14 15:27 许晓光 阅读(650) 评论(0) 推荐(0)
摘要:Response.Redirect("Forms/Home.aspx"); 阅读全文
posted @ 2008-10-13 15:11 许晓光 阅读(124) 评论(0) 推荐(0)
摘要:在web.config文件: System.Diagnostics.BooleanSwitch mySwitch = new System.Diagnostics.BooleanSwitch(); mySwitch.Enabled = true; 阅读全文
posted @ 2008-09-26 13:55 许晓光 阅读(201) 评论(0) 推荐(0)
摘要:ASP.NET MVC是一个新的编程模型,而不是替代ASP.NET Web Forms。 http://weblogs.asp.net/shijuvarghese/archive/2008/07/09/asp-net-mvc-vs-asp-net-web-form.aspx 阅读全文
posted @ 2008-09-24 14:10 许晓光 阅读(288) 评论(0) 推荐(0)
摘要:ASP.NET Web Application Project model is recommended!!! WebApplicationProjectSetup.msi VS80-KB915364-X86-ENU.exe http://msdn.microsoft.com/en-us/library/aa730880(VS.80).aspx#wapp_topic5 阅读全文
posted @ 2008-09-10 14:22 许晓光 阅读(188) 评论(0) 推荐(0)
摘要:数据层分页技术 应用层分页技术 表示层分页技术 阅读全文
posted @ 2008-09-10 09:46 许晓光 阅读(153) 评论(0) 推荐(0)
摘要:To do 阅读全文
posted @ 2008-09-09 12:22 许晓光 阅读(145) 评论(0) 推荐(0)
摘要:string user = Request.ServerVariables["Logon_user"]; user = Request.ServerVariables("Logon_User") 阅读全文
posted @ 2008-09-08 16:22 许晓光 阅读(161) 评论(0) 推荐(0)
摘要:1.Web.config文件配置 标签中的name表示指定要用于身份验证的 HTTP Cookie。默认情况下,name 的值是 .ASPXAUTH。采用此种方式验证用户后,以此用户的信息建立一个FormsAuthenticationTicket类型的身份验证票,再加密序列化为一个字... 阅读全文
posted @ 2008-09-05 15:25 许晓光 阅读(361) 评论(0) 推荐(0)
摘要:前提条件:使用相同的数据源和数据表。 1.GridView控件的跟踪信息 Trace Information Category Message From First(s) Fro... 阅读全文
posted @ 2008-09-04 11:00 许晓光 阅读(440) 评论(0) 推荐(0)
摘要:ASP.NET Web Parts controls are an integrated set of controls for creating Web sites that enable end users to modify the content, appearance, and behavior of Web pages directly in a browser. The topics... 阅读全文
posted @ 2008-08-28 16:32 许晓光 阅读(217) 评论(1) 推荐(0)
摘要:1.保存Session protected void Button1_Click(object sender, EventArgs e) { Session["Name"] = TextBox3.Text; } 2.读取Session protected void Button2_Click(object sender, EventArgs e) { string name = (stri... 阅读全文
posted @ 2008-08-22 14:26 许晓光 阅读(197) 评论(0) 推荐(0)
摘要:A page developer can disable view state for the page or for an individual control for performance. However, control state cannot be disabled. 下面的例子解释控件状态和视图状态 1.创建自定义ASP.NET服务器控件 自定义控件代码 Code ... 阅读全文
posted @ 2008-08-21 14:11 许晓光 阅读(237) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2008-08-20 11:33 许晓光 阅读(202) 评论(0) 推荐(0)
摘要:A query string is information that is appended to the end of a page URL. http://www.cnblogs.com/xuxiaoguang/admin/EditPosts.aspx?postid=1271301 阅读全文
posted @ 2008-08-19 15:36 许晓光 阅读(165) 评论(0) 推荐(0)
摘要:1.视图状态 ViewState.Add("Test", VariableName); if (ViewState["Test"] != null) { Variable = (VariableType)ViewState["Test"]; } 2.EnableViewState属性 默认为True,维护控件状态,__VIEWSTATE的状态信息回传到... 阅读全文
posted @ 2008-08-18 13:25 许晓光 阅读(238) 评论(0) 推荐(0)
摘要:Cookies provide a means in Web applications to store user-specific information. For example, when a user visits your site, you can use cookies to store user preferences or other information. When the ... 阅读全文
posted @ 2008-08-15 11:34 许晓光 阅读(241) 评论(0) 推荐(0)
摘要:Sample Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 protected void Button1_Click(object sender, EventArgs e) 2 { 3 ... 阅读全文
posted @ 2008-08-14 12:59 许晓光 阅读(280) 评论(0) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 public partial class _Default : System.Web.UI.Page 2 { 3 protected void Page_PreLoa... 阅读全文
posted @ 2008-08-13 16:53 许晓光 阅读(138) 评论(0) 推荐(0)
摘要:Notice that if a usr tries to brow er an INC file directly, its content will be displayed 阅读全文
posted @ 2008-06-27 16:27 许晓光 阅读(247) 评论(1) 推荐(0)