The document provides an overview of building web applications using ASP.NET and .NET Framework. It discusses the key features of ASP.NET like server controls, master pages, themes, data access, security etc. It also covers ASP.NET programming basics, different page models, folder structure and the ASP.NET execution model.
5. .NET Framework Platform & Tools Operating System Common Language Runtime Base Class Library ADO.NET and XML ASP.NET Web Forms Web Services Windows® Forms Common Language Specification VB C++ C# J# …
20. File Options Using Code-Behind File Options Created Files Web Form .aspx file .aspx.cs or .aspx.vb Master Page .master file .master.cs or .master.vb Web User Control .ascx file .ascx.cs or .ascx.vb Web Service .asmx file .cs or .vb file Trace Handlers trace.axd
21. Some Interested Files in ASP.NET File Usage AssemblyInfo.cs or vb A project information file contains metadata about the assemblies in a project, such as name, culture and version info. Web.config An XML based file that contains configuration data on-each unique URL resource used in the project Global.asax.cs or vb An optional file for handling application level events. Eg: Application_OnError, Session_OnStart, etc., Styles.css Cascade style sheet.
Creating Web site from Visual studio select File New WebSite By default present Visual Studio builds the applications without using IIS. These applications uses built-in web server .
Just point on Tag Navigator ( At bottom of window allow to switch design and source view ) and Page Tabs. What you see in new Web Site A new website with the name you specified (or the default name) gets created. A folder App_Data is created which will contain data files such as xml and data base files . Default.aspx is already created which is the first page in the web application. Default.aspx.cs is ‘code-behind’ class for Default.aspx . You have design as well as source view for all the asp pages. <form id=&quot;form1&quot; runat=&quot;server&quot;> </form>
Code that is required when the page loads up can be put here Note that there is no link up between the asp.net page and the code here. This is automatically achieved inferred by the AutoEventWireUp attribute set to true .
To add new Web Pages to your web site just right click on your project and select Add new Item from context menu.
Trace handler is a handler that displays the current page trace information.
Trace handler is a handler that displays the current page trace information.
The nice thing about App_Code folder is that if you place in code files in this folder visual studio automatically compiles and make instantly available to your ASP.NET pages that are in some location. Every thing placed in App_Code folder compiles to a single assembly. If you want to develop classes that uses different languages (VB, C#) then you need to create different directories ( VB and CS ) in App_code folder and place files accordingly. ( \\App_Code\\VB or \\App_Code\\CS , etc., ). Also you need to make some settings in web.config file to generate different assemblies for different codes. Themes are new way to providing a common look and feel to your site across every page. In addition to App_GlobalResources folder there is also an App_LocalResources folder exists. The resources stored in App_GlobalResources will be page specific. Whereas the resources stored in App_LocalResources will be page specific. Resources are accessed programmatically as follow: myLabel.Text = Resources.Resource.Greeting ; Themes are simple text files where you can define the appearance of server controls that can be applied across site, or single page or a specific server control. You can also incorporate graphics and CSS
This page interacting with database as well as using Session state.