1)Init : When the page is instantiated.
2)Load : When the page is loaded into server memory.
3)Render : The brief moment before the page is displayed to the user as Html.
4)Unload : When page finish loading.
Thursday, March 18, 2010
File Upload in Asp.net c#
//Take one file upload control and one button for save the file..
//button click
if(fileupload1.hasfile)
{
fileupload1.saveas(server.mappath(fileupload1.filename));
label1.text="file uploaded :" + fileupload1.filename;
}
else
{
label1.text="No file Upload";
}
//button click
if(fileupload1.hasfile)
{
fileupload1.saveas(server.mappath(fileupload1.filename));
label1.text="file uploaded :" + fileupload1.filename;
}
else
{
label1.text="No file Upload";
}
Labels:
File Upload in Asp.net c#
State Management
State Management is the process by which you maintain state and page information over multiple request for the same or different pages.
There are two types of state management..1) Client side
2) Server Side
Client Side : The store information on the client's computer by embedding the information into a webpage, a URL , or a Cookies ..The technique available to store the state information at the client end are listed down below..
a) View State: maintain the control state and retain the value of control.
b) Hidden field
c)Cookies: we have two types of cookies 1) persist: by default data has saved in persist cookies. and 2) NonPersist Cookies: By default data has lost in nonpersist cookies.
d) querystring: query string store value appended in the url that are visible to the user.maximum limit of query string is 255 character.
ServerSide State Management : Any data resides on the server and backand data base that's called in server side.
Two types of serverside state management: 1)Application State: Application state globaly for all user ..you can create global variable in Global.asax..inside the application.start event and session.start event.
2)Session Management : Its also globaly for a particular user...
There are two types of state management..1) Client side
2) Server Side
Client Side : The store information on the client's computer by embedding the information into a webpage, a URL , or a Cookies ..The technique available to store the state information at the client end are listed down below..
a) View State: maintain the control state and retain the value of control.
b) Hidden field
c)Cookies: we have two types of cookies 1) persist: by default data has saved in persist cookies. and 2) NonPersist Cookies: By default data has lost in nonpersist cookies.
d) querystring: query string store value appended in the url that are visible to the user.maximum limit of query string is 255 character.
ServerSide State Management : Any data resides on the server and backand data base that's called in server side.
Two types of serverside state management: 1)Application State: Application state globaly for all user ..you can create global variable in Global.asax..inside the application.start event and session.start event.
2)Session Management : Its also globaly for a particular user...
Labels:
State Management
Caching in Asp.Net
Caching : Caching is a feature of Asp.Net that improves the performance of web application by minimizing the usage of server resources to a greate extent.
Caching is a feature that store data in local memory ,allowing incoming request to be served from memory directly.
Benefits of caching : Faster page rendering.
: Minimizing of database hits.
: Minimizing of the consumption of server resources.
Asp.Net support three types of caching: 1)Page level caching(output caching)
2)Page fragment caching(partial page output
caching)
3)Programmatic or data caching .
Caching is a feature that store data in local memory ,allowing incoming request to be served from memory directly.
Benefits of caching : Faster page rendering.
: Minimizing of database hits.
: Minimizing of the consumption of server resources.
Asp.Net support three types of caching: 1)Page level caching(output caching)
2)Page fragment caching(partial page output
caching)
3)Programmatic or data caching .
Labels:
Caching in Asp.Net
Department Wise sum() of Salary
Select * from emp order by depart desc
compute sum(salary) by depart
compute sum(salary) by depart
Labels:
Department Wise sum() of Salary
Aalgorithm and FlowChart
Flowchart : A flowchart is a graphical representation of an algorithm..
Algorithm : An algorithm is just a detailed sequence of simple steps that are needed to solve a problem.
A formula or set of steps for solving a particular problem to be an algorithm..
Algorithm : An algorithm is just a detailed sequence of simple steps that are needed to solve a problem.
A formula or set of steps for solving a particular problem to be an algorithm..
Labels:
Aalgorithm and FlowChart
Subscribe to:
Posts (Atom)