随笔分类 - 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...
阅读全文
摘要:Response.Redirect("Forms/Home.aspx");
阅读全文
摘要:在web.config文件: System.Diagnostics.BooleanSwitch mySwitch = new System.Diagnostics.BooleanSwitch(); mySwitch.Enabled = true;
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:数据层分页技术 应用层分页技术 表示层分页技术
阅读全文
摘要:To do
阅读全文
摘要:string user = Request.ServerVariables["Logon_user"]; user = Request.ServerVariables("Logon_User")
阅读全文
摘要:1.Web.config文件配置 标签中的name表示指定要用于身份验证的 HTTP Cookie。默认情况下,name 的值是 .ASPXAUTH。采用此种方式验证用户后,以此用户的信息建立一个FormsAuthenticationTicket类型的身份验证票,再加密序列化为一个字...
阅读全文
摘要:前提条件:使用相同的数据源和数据表。 1.GridView控件的跟踪信息 Trace Information Category Message From First(s) Fro...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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 ...
阅读全文
摘要:
阅读全文
摘要: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
阅读全文
摘要:1.视图状态 ViewState.Add("Test", VariableName); if (ViewState["Test"] != null) { Variable = (VariableType)ViewState["Test"]; } 2.EnableViewState属性 默认为True,维护控件状态,__VIEWSTATE的状态信息回传到...
阅读全文
摘要: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 ...
阅读全文
摘要:Sample Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 protected void Button1_Click(object sender, EventArgs e) 2 { 3 ...
阅读全文
摘要: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...
阅读全文
摘要:Notice that if a usr tries to brow er an INC file directly, its content will be displayed
阅读全文

浙公网安备 33010602011771号