Archive for the ‘ ASP.net ’ Category

ASP.net Special Folder

To have a convenient folder and file structure help web developers and designers to manage their web application in a efficient manner. With the release of .Net Framework 2.0, ASP.net reserves the some folder names, so developers can put special files in these folders.

App_Browser 

ASP.net reserve this folder name for storing browser definition files. Browser definition files are used to determine the client browser capabilities. Browser definition files have .browser extension.

App_Code

App_code folder can contain source code for utility classes as well business objects. Classes that are present in App_Code folder are automatically complied when your web application complied. Arbitrary file types can be placed in the App_Code folder to create strongly typed objects. For example, placing Web service files (.wsdl and .xsd files) in the App_Code folder creates strongly typed proxies. Code present in App_Code is automatically referenced by ASP.net Application.

App_Data

App_Data is used to store file that can be used as database files including MDF files, XML files, as well as other data store files. App_Data folder is used by ASP.net application for storing ASP.net application local database. Developers can also use this folder for storing data for their ASP.net Application.

App_GlobalResources

App_GlobalResources folder contains resources files that are complied into assemblies and these assemblies are available in Global scope. Resource files are strongly typed and can be accessed programmatically.

App_LocalResources

App_LocalResources folder also contain the same files that are being contained by App_GlobalResources  but files located in this folder are only available to a particular project, web page, master page or web user control.

App_Themes

App_Themes folder used by ASP.net to store files that are being used to define the look and feel of web application. App_Themes folder store skin, CSS and image files. Skin files are files have .skin file extension.

Bin

Bin folder contains complied assemblies(.dll) files for web user controls, classes or for components.

Technorati Tags: , , , , , ,

How to Load User Control Programmatically

Web User ControlSometimes it may happen that you need a functionality is not  provided by built in ASP.net controls at that time developers can create ASP.net user controls or ASP.net custom controls.

  • User controls. User controls are containers into which you can put markup and Web server controls. You can then treat the user control as a unit and define properties and methods for it.
  • Custom controls. A custom control is a class that you write that derives from Control or WebControl.

Read the rest of this entry »

Overview Of ASP.net

Microsoft ASP.net

ASP.net is a web technology built on top of Microsoft .net framework. Microsoft released the first version of .net framework in 2002 called .net 1.0. ASP.net is successor of Microsoft’s Active server pages technology. ASP.net application are built on top of .Net CLR so they utilize the full power of all .Net framework supported languages. Traditional ASP pages have a number of limitations and application created in ASP were difficult to manage and they faced a significant performance and scalability issues. To overcome all these issues, Microsoft to come up with a new framework that will offer a clean separation code from the design. Some of the differences between ASP.net and ASP:

  • ASP.net programming model is completely object oriented. Apart from the object oriented support ASP.net applications are event driven, control based architecture.
  • Developers can use any programming languages included by Microsoft or any other third party programming languages for developing ASP.net applications. ASP.net applications can also be developed in multiple languages also.

Key Features of ASP.net

  • ASP.NET Is Integrated with the .NET Framework: .Net framework provide a massive collection of functionality and ASP.net application can utilize the same .Net framework classes as other .Net framework application like Windows or any other type of applications using .Net framework.
  • ASP.net Applications Are Complied: One of the biggest advantage with ASP.net applications is that they are always complied manes you can’t run any ASP.net application without compiling the code. When the code is compiled, it is translated into a language-independent and CPU-independent representation called Microsoft Intermediate Language (MSIL). At run time, MSIL runs in the context of the .NET Framework, which translates MSIL into CPU-specific instructions for the processor on the computer running the application.
  •   ASP.NET Is Object-Oriented: ASP.net follow completely object oriented programming model. ASP.net applications   have full access to all objects in the .NET Framework, but you can also exploit all the conventions of an OOP (object-oriented programming) environment. For example, you can create reusable classes, standardize code with interfaces, extend existing classes with inheritance, and bundle useful functionality in a distributable, compiled component.