随笔分类 - ASP.NET2.0&3.5
摘要:<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"> <Columns> <asp:TemplateField HeaderText="StudentNumber"> <...
阅读全文
摘要:<body > <form id="form1" runat="server"> <div> <object id="MP" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="620" height="460" VIEWASTEXT> ...
阅读全文
摘要:1. 在项目中引用jQuery 类库<script language="javascript" type="text/javascript" src="/JS/jquery-1.2.6.js"> </script>2. JavaScript 代码<script language="javascript" type="text/javasc...
阅读全文
摘要:添加视图<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <script language="javascript" type="text/javascript" src="/Scripts/jquery-1.2.6.min.j...
阅读全文
摘要:ASP.NET 框架支持事件冒泡技术,它准许子控件触发的事件由父控件处理。 http://msdn.microsoft.com/en-us/library/aa719644(VS.71).aspx
阅读全文
摘要:创建ASP.NET MVC 应用程序后,在界面上添加个ASP.NET 按钮服务器控件。运行程序单击按钮控件,产生如下异常。Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration sp...
阅读全文
摘要:1. 添加Trigger View文件夹, 创建 ChangeTrigger.aspx Archive Archive 2.添加Engine Controller public class EngineController : Controller { // // GET: // publi...
阅读全文
摘要:使用VS2008 创建ASP.NET MVC Web Application 项目。 This C# source file under Controllers folder [HandleError] public class HomeController : Controller { public ActionResult Index() { View...
阅读全文
摘要:1.创建一个Class Library项目,让自定义CustomMemberShipProvider类继承于System.Web.Security.MembershipProvider类。 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 pu...
阅读全文
摘要:ASP.NET membership enables you to validate and manage user information for your web application.It provides funtionality for validating user credentials,creating and modifying membership users, and ma...
阅读全文
摘要:If you use the Login control with ASP.NET membership, you do not need to wirte code to perform authentication. By defaut, ASP.NET forms authentication is configured to work with a page named Login.a...
阅读全文
摘要:Allow an anonymous user to gain access the Anonymous.aspx page. --Root folder --User Folder http://msdn.microsoft.com/en-us/library/b6x6shw7(VS.80).aspx
阅读全文
摘要:Gets a value indicating whether the request has been authenticated. protected void Page_Load(object sender, EventArgs e) { //whatever windows & forms authentications if (!Request.IsAuthenticated...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 protected void Login_Click(object sender, EventArgs e) 2 { 3 4 HttpCookie myCookie =...
阅读全文
摘要:Windows Server® 2008 featuring Internet Information Services 7.0 is a powerful Web application and services platform that delivers rich Web-based experiences. It offers improved administration and di...
阅读全文
摘要:IIS provides a variety of authentication schemes: Anonymous (enabled by default) Basic Digest Integrated Windows authentication (enabled by default) Client Certificate Mapping ...
阅读全文
摘要:for running and testing web sites
阅读全文
摘要:IIS 5.0: 每个IIS虚拟目录在一个APPDomain里执行。
阅读全文

浙公网安备 33010602011771号