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

摘要:<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"> <Columns> <asp:TemplateField HeaderText="StudentNumber"> <... 阅读全文
posted @ 2009-05-06 17:45 许晓光 阅读(215) 评论(0) 推荐(0)
摘要:<body > <form id="form1" runat="server"> <div> <object id="MP" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="620" height="460" VIEWASTEXT> ... 阅读全文
posted @ 2009-05-05 17:23 许晓光 阅读(588) 评论(0) 推荐(0)
摘要:1. 在项目中引用jQuery 类库<script language="javascript" type="text/javascript" src="/JS/jquery-1.2.6.js">     </script>2. JavaScript 代码<script language="javascript" type="text/javasc... 阅读全文
posted @ 2009-04-24 11:43 许晓光 阅读(539) 评论(0) 推荐(0)
摘要:添加视图<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <script language="javascript" type="text/javascript" src="/Scripts/jquery-1.2.6.min.j... 阅读全文
posted @ 2009-04-21 10:51 许晓光 阅读(225) 评论(0) 推荐(0)
摘要:添加视图。 添加控制器。 阅读全文
posted @ 2009-04-16 12:11 许晓光 阅读(184) 评论(0) 推荐(0)
摘要:ASP.NET 框架支持事件冒泡技术,它准许子控件触发的事件由父控件处理。 http://msdn.microsoft.com/en-us/library/aa719644(VS.71).aspx 阅读全文
posted @ 2009-04-16 09:46 许晓光 阅读(341) 评论(0) 推荐(0)
摘要:创建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... 阅读全文
posted @ 2009-04-14 17:21 许晓光 阅读(789) 评论(0) 推荐(0)
摘要:1. 添加Trigger View文件夹, 创建 ChangeTrigger.aspx Archive Archive 2.添加Engine Controller public class EngineController : Controller { // // GET: // publi... 阅读全文
posted @ 2009-04-10 17:56 许晓光 阅读(245) 评论(0) 推荐(0)
摘要:使用VS2008 创建ASP.NET MVC Web Application 项目。 This C# source file under Controllers folder [HandleError] public class HomeController : Controller { public ActionResult Index() { View... 阅读全文
posted @ 2009-04-09 11:41 许晓光 阅读(226) 评论(0) 推荐(0)
摘要:Web client software factory 阅读全文
posted @ 2009-02-03 10:04 许晓光 阅读(207) 评论(0) 推荐(0)
摘要:1.创建一个Class Library项目,让自定义CustomMemberShipProvider类继承于System.Web.Security.MembershipProvider类。 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 pu... 阅读全文
posted @ 2009-01-13 16:54 许晓光 阅读(352) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2009-01-12 13:51 许晓光 阅读(204) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2009-01-09 16:14 许晓光 阅读(233) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2009-01-08 12:28 许晓光 阅读(1413) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2009-01-07 16:38 许晓光 阅读(670) 评论(0) 推荐(0)
摘要: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 =... 阅读全文
posted @ 2009-01-06 15:15 许晓光 阅读(313) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2008-10-22 16:59 许晓光 阅读(168) 评论(0) 推荐(0)
摘要:IIS provides a variety of authentication schemes: Anonymous (enabled by default) Basic Digest Integrated Windows authentication (enabled by default) Client Certificate Mapping ... 阅读全文
posted @ 2008-10-20 15:28 许晓光 阅读(259) 评论(0) 推荐(0)
摘要:for running and testing web sites 阅读全文
posted @ 2008-10-17 14:17 许晓光 阅读(116) 评论(0) 推荐(0)
摘要:IIS 5.0: 每个IIS虚拟目录在一个APPDomain里执行。 阅读全文
posted @ 2008-10-15 14:40 许晓光 阅读(180) 评论(0) 推荐(0)