ASP.NET File Types


Ø  ASP.NET have many types of files. They are,

1)      .aspx : These are ASP.NET web pages (the .NET equivalent of the .asp file in an ASP application). They contain the user interface and, optionally, the underlying application code. Users request or navigate directly to one of these pages to start your web application.
2)      .ascx : These are ASP.NET user controls. User controls are similar to web pages, except that they can’t be accessed directly. Instead, they must be hosted inside an ASP.NET web page. User controls allow you to develop a small piece of user interface and reuse it in as many web forms as you want without repetitive code.
3)      .asmx : These are ASP.NET web services. Web services work differently than web pages, but they still share the same application resources, configuration settings, and memory.
4)      web.config : This is the XML-based configuration file for your ASP.NET application. It includes settings for customizing security, state management, memory management, and much more.
5)      global.asax :This is the global application file. You can use this file to define global variables (variables that can be accessed from any web page in the web application) and react to global events (such as when a web application first starts).
6)      .cs / .vb : These are code-behind files that contain C# code or VB code. They allow you to separate the application from the user interface of a web page. The Page Class :Every web page is a custom class that inherits from System.Web.UI.Page. By inheriting from this class, your web page class acquires a number of properties that your code can use. These include properties for enabling caching, validation, and tracing.


No comments:

Post a Comment

=>Advanced Java Programming (J2EE)

1.  Syllabus 2. Unit Wise Question/Material 3. Paper 4. Previous Paper