Articles Comments

Headline

Interview Questions

Why we need to do session management in ASP.net ?  Ans :- We know that  HTTP is  stateless protocol on which server and client are communicating.  In ASP.NET once the page is rendered, It destroys any objects i.e Pages,controls etc… that you have created within a page , objects you  created would not be available during the user’s next request.  Thats why  ASP.NET  provide mechanism to save application state between user reuqests so that server will able to indentify the  same user acorss multiple requests.We have many ways to persist data between request. ASP.NET provides many techniques for storing state information on the client as well as server side.  2. How Asp.net maintain the session state ? Ans:-  When the session begins asp.net provides  the client with a unique key assigned to the user. This key … Read entire article »

Latest

Static class In C#

In Static class, you do not need to create Instance of that class to called member of that class. While using static class you should aware with the facts - 1. Static class is very useful in case of static Objects.In Short we can’t instantiate the static class. 2. They only contain the static members that’s it. 3. By default they are sealed class means we can not inherit them. 4. Static class do not have Instance constructor Static class members are use static keyword before the return type of member. … Read entire article »

Themes

What Is ASP.NET Themes? An ASP.NET theme is a collection of styles, property settings and graphics that define the appearance of pages and appearance of controls on your website. A theme can include skin files and cascading style sheet (.css) files . You can easily create new themes to give your entire site a different look. Themes save your time and improve the consistency of a site by applying a common set of control properties, styles, and graphics across all pages in a website. Themes can be centralized, allowing you to quickly change the appearance of all the controls on your site from a single file. ASP.NET themes consist of the following set of elements: 1. Skins These … Read entire article »

Secializied Server Controls

The Table, TableRow, and TableCell Controls The Table control is the right choice when you need to programmatically add rows and cells to a table at run time. The rows are added by using the TableRow control and the cells are added by using the TableCell control.The Table, TableRow, and TableCell controls all inherit from the WebControl class.If you simply needed to add static rows and cells, it would be more efficient to simply use an HTML table. The real power of the Table control, however, is being able to work with it from your code.The following steps show how to dynamically add TableCell and TableRow objects to an existing Table control. 1. From the Toolbox, drag … Read entire article »

Asp.net Site Navigatios

Introduction to Site Navigation Seamless navigation from one webpage to another is what makes a collection of webpages feel like a web application.Developers must consider when and how to move a user between pages. This movement should seem automatic and planned, with the user in control. When setting up navigation, developers need to consider how to handle navigation following postbacks and how to allow a user to navigate within the site. Page navigation is the process of moving between one actual page of your website and another. However, with controls such as the Wizard control and technologies such as Asynchronous JavaScript and XML (AJAX), you can embed a lot of functionality inside a single actual page in … Read entire article »

Asp.net Server Controls

Server Controls Web server controls are based on .NET Framework classes, typically inherited from the WebControl class.A web server control is able to provide more functionality than an HTML control because it is not tied to a single HTML tag element. Instead, web server controls typically render many HTML tags and might also include client-side JavaScript code. They also have the ability to detect the web browser’s capabilities and render the appropriate HTML based on those capabilities. This allows ASP.NET web server controls to use a specific browser to its fullest potential. The programmer is also relieved from dealing with the actual HTML and instead works with the web server control to define the appropriate functionality … Read entire article »

Asp.net Page Life Cycle

The page life cycle starts when a user requests a webpage through a browser. The web server then processes the page through a series of stages before returning the results to the user’s browser 1.Usually User Request Page to Browser. 2.Browser forward the request to the web server.One’s web server got the request - Stage 1: Compile page (if necessary) (page request event) Pull from cache (if available) Stage 2: Set request and response (start) Determine IsPostBack Stage 3: Initialize page controls (but not their properties) (page init) Apply page theme Stage 4: If PostBack, load control properties from view state (load) Stage 5: Validate page and validator controls (validation) Stage 6: Call control event handlers (for PostBack requests) (PostBack event handling) Stage 7: … Read entire article »

MVC 2 Architecture

The Microsoft ASP.NET model-view-controller (MVC) represents an alternative architecture to the standard ASP.NET web form model.This alternative is based on the common MVC software design pattern that separates the layers of your website into user interface (view), data and business logic (model), and input handling (controller). This separation through MVC results in loosely coupled objects that are highly testable, can be developed independently from one another, and offer granular control of your application code. The model that uses postback and ViewState is nonexistent with ASP.NET MVC. Instead, MVC uses a routing engine and a set of controllers that provide you with deeper control over your processing and output.however, a few familiar items that are preserved in … Read entire article »

Master Pages

What Is ASP.NET Master Pages ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard behavior that you want for all of the pages  in your application. You can then create individual content pages that contain the content you want to display. When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content from the content page. Master pages isolate the common elements of a site’s UI, such as the logo, search, and navigation, from each page’s unique content Advantages of Master Pages They allow you … Read entire article »

Web Server Client Communications

Microsoft ASP.NET is a set of Web application development technologies that enables programmers to build dynamic Web sites, Web applications, and XML Web services. Because ASP.NET is part of the .NET Framework, you can develop ASP.NET Web applications in any .NET-based language. Web Communications Web applications have two different components: Client – This is also known as the front-end interface, the web browser presents the user interface, accepts user input, and sends data to the server for processing. Server – This is also known as the back end, the web server responds to requests from clients. It responds with an HTML page that includes instructions for how to generate the user interface. Web browser [Client] and the Web server communicate … Read entire article »