ASP.NET??Global.asax ?????????
???????????? ???????[ 2015/6/8 13:33:31 ] ??????????????? .NET
??????Щ?????????????????檔??????? C# ???????????????Global.asax ????????????Application_Authenticate ??????????? cookie ?????????form????????????????Application_Start ???????????ó??????????Session_Start ??????????????Application_Error ????????????????????????????????
protected void Application_Start(Object sender?? EventArgs e) {
Application["Title"] = "Builder.com Sample";
}
protected void Session_Start(Object sender?? EventArgs e) {
Session["startValue"] = 0;
}
protected void Application_AuthenticateRequest(Object sender?? EventArgs e) {
// Extract the forms authentication cookie
string cookieName = FormsAuthentication.FormsCookieName;
HttpCookie authCookie = Context.Request.Cookies[cookieName];
if(null == authCookie) {
// There is no authentication cookie.
return;
}
FormsAuthenticationTicket authTicket = null;
try {
authTicket = FormsAuthentication.Decrypt(authCookie.Value);
} catch(Exception ex) {
// Log exception details (omitted for simplicity)
return;
}
if (null == authTicket) {
// Cookie failed to decrypt.
return;
}
// When the ticket was created?? the UserData property was assigned
// a pipe delimited string of role names.
string[2] roles
roles[0] = "One"
roles[1] = "Two"
// Create an Identity object
FormsIdentity id = new FormsIdentity( authTicket );
// This principal will flow throughout the request.
GenericPrincipal principal = new GenericPrincipal(id?? roles);
// Attach the new principal object to the current HttpContext object
Context.User = principal;
}
protected void Application_Error(Object sender?? EventArgs e) {
Response.Write("Error encountered.");
}
????????????????????????ЩGlobal.asax ????е?????????????????????Щ?????????????ó?????????????????з??????е?????????????ó????????????????????????Global ?????
???????
????Global.asax ????? ASP.NET ??ó??????????????????????????????????ó????????????????????????ó??????????????????????????????????????????????????????????ASP.NET ??ó???
????????*.ascx *.asax *.aspx.resx *.asax.resx???????
????sln???????????????????????????????????????????????ν????????????
????.csproj:??????????????ó???????????á??????????????к???????????
????.aspx??Web ????????????????????????HTML?????????????????????????????????Visual Studio ????????????????洢???????????????С?????????.aspx ????д?????
????.aspx.cs??Web ????????????λ?????????????????У?????????????????????????.aspx.cs????
????.cs?? ????????????????????????????
????.asax??Global.asax ?????????? ASP.NET ??ó??????????????????????????????????? ASP.NET ?? HTTP ???????????ó?????????????
????.config??Web.config ?????????????????????????????????????
????.aspx.resx/.resx??????????????????????????ó???????κη??????????????????????д洢????????????±?????????ó?????????????
????.XSD:XML schema?????.??DTD??XDR?????XSD
????.pdb:PDB????????????????????????????????????????????????????y????????????
????.suo:???????????????????н?????????????????????????????δ????????????????????????????á?
????.asmx:asmx ??????? WebService ????????????? XML Web services ?????????
????.vsdisco????????????? ???? XML ?????????????? Web ???????????????????????? (URL)??
????.htc:???HTML??????????????????????????HTC??????.htc????????implement????????
????.ascx ???????????????
????.aspx webform html??????
????.cs ??c#?????)
????.vb ??vb?????)
????.aspx.cs ?????webform??????c#??????????????.cs???????
????.aspx.vb ?????webform??????VB??????????????.vb???????
????web.config ???????
????.xml xml???
????.css ????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Asp.net MVC??ζ???????????????????????Trim????Asp.Net WebForm????????????asp.net ???????????Linux???Jexus?й?Asp.Net Core??ó???asp.net??????????????ASP.NET???????JSON????????????????ASP.NET MVC???????????Щ?£?Asp.net Core MVC?????SessionASP.NET Core???????7??????????????????[???]ASP.NET Core???????6??????????????????[???]ASP.NET Core???????5??????????????????ASP.NET???License Key??????ASP.NET Core 1.0?е???-?м????ASP.NET Core???????3???? ?????e??????[???]ASP.NET Core???????2??????????????ASP.NET?е????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????