ASP.Net Authentication Modes

ASP.Net supports below authentication modes: 1. Windows 2. Forms 3. Passport 4. None To enable authentication provider or mode we need to use authentication element from config file. <system.web> <!-- mode=[Windows|Forms|Passport|None] --> <authentication mode="Windows" /> </system.web> 1.Windows:   This is a default...

ASP.Net Caching, Caching Concept

ASP.NET Caching: Caching is process of storing frequently used data for reuse. Generally it stores data in memory becuase accessing data from memory is more efficient way rather that generate it again. ASP.NET provides two types of catching: 1. Output Caching 2. Application Data Caching Page Output Caching:  Output caching is done with entire...

ASP.NET Validation Controls

Below are types of asp.net validation controls: 1. Required FieldValidator     Ensures user does not left control without data. Reference:  How to: Validate Required Entries for ASP.NET Server Controls. 2. RangeValidator    Check if entered values are in between given upper and lower boundries. Reference:  ...

ASP.Net Page life Cycle Events

Below are ASP.net Page life Cycle Events: 1.PreInit    We can use PreInit event to check IsPostBack property, if it is a new request or is it a postback. Also Master pages, Themes and profile values get set dynamically here. No control data ans control properties values from viewsate is loaded here. 2.Init    This event get raised...

ASP.Net Page Life Cycle

How page life cycle works in asp.net? Page request:             This is a stage before page life cycle starts. This step happens when user sends request for page. ASP.Net decides whether to parse and compile the requested page or just catched verions of page need to be send...

ASP.NET State management

    Whenever page is posted to the server, a new instance of the Web page class is created each time. This means that all information associated with the page and the controls on the page get lost with each round trip.     To overcome this situation, ASP.NET provides various options to preserve the data. These are known...

Garbage collection in asp.net

How Garbage Collector(GC) works? How Garbage Collector (GC) works? Microsoft .NET CLR environment provides automatic memory management using Garbage Collection (GC). Garbage Collection (GC) basically a process that frees or releases the object from the memory which is no longer is in use by program. When we create new object Common...

jQuery Events Part - II : Mouse Events - Continue....

jQuery mouse evemts.hover() hover mouse event triggers to the element when user take mouse over the perticular element. Example of hover mouse event:<div> id="hoverDiv">Change Color </div> $(document).ready(function() { $("hoverDiv").hover( function () { $(this).css("backgroundcolor", 'blue'); } ); }); .mousedown() ...

jQuery Events Part - II : Mouse Events

jQuery mouse eventsIn this post we will look how jQuery mouse events works. jQuery library provides mouse events like click, double click, mouseup, mousedown, toggle..etc. Using this jQuery events one can easily perform the required operations or actions. We will look jQuery events samples in this post. .click() click event get triggered to an element...

jQuery Events Part - I : Document loading Events and Keyboard Events

jQuery eventsjQuery basically have following type of events: .ready() Indicates that DOM is fully loaded that mean all controls and it's hierarchy is fully loaded .This is the best place to do all event handling and jacascript/jQuery code manipulations. Below example shows how to use .ready() in jQuery: $(document).ready(function() { // Handler...