ASP.NET Special Folders
Bin Contains assemblies used by the web application
App_Code C# or VB source code that is common to the web site.
Utility classes, modules BasePages etc.
App_Data SQLExpress databases used by the web site.
App_GlobalResources Resources shared across all pages and controls.
App_LocalResources Resources specific to a page or control
App_WebReferences References to web services
App_Themes Contains .skin, .css and image fi les used for the themes of the site.
App_Browsers Optional .browser capabilities files.
WebConfig Settings
Inline code block
<% Response.Write("Hello World"); %>
ASP.NET Markup and Code in Separate Files. "code behind model"
<%@ Page Language="C#" ClassName="Page1_aspx" Inherits="Page1" CodeFile="Page1.aspx.cs" %>
ASP.NET App Settings
<appSettings>
<add key="MyKey" value="MyValue" />
</appSettings>
ASP.NET Connection Strings
<connectionStrings>
<add
name="LocalSqlServer"
connectionString="
data source=.\SQLEXPRESS;
Integrated Security=SSPI;
AttachDBFilename=|DataDirectory|aspnetdb.mdf;
User Instance=true"
providerName="System.Data.SqlClient"
/>
</connectionStrings>
ASP.NET Authentication
<authentication mode="Windows" />
<authentication mode="Forms">
<forms
loginUrl="Login.aspx"
defautUrl="Page1.aspx"
cookieless="AutoDetect"
domain="mydomain.com"
requireSSL="true"
/>
</authentication>
ASP.NET Authorization
<authorization>
<deny users="?" />
<allow users="*" />
<allow roles="Admin" />
</authorization>
0 comments:
Post a Comment