what is postback in asp.net
I am new in asp.net. what is the postback in asp.net. what is the use of this postback in asp.net. pls give me 1 example of this, how this property works in asp.net.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Guruparan GiritharanPosted Jan 4, 2012, 4:09 AM
Post back is submitting the form to the Server or posting back the same page.
There is a boolean variable named IsPostback which can be used to check this if the page loads for the first time the value of this variable is false
the page load is second or above its true
this is mainly useful when you want to setup some value for the controls.
because you may need to change the values in the second load or above.
Regards
Guruparan.
Krishna GaradPosted Jan 4, 2012, 2:28 AM
Anuja PawarPosted Jan 4, 2012, 2:26 AM
For how a post back works, read this
http://www.xefteri.com/articles/show.cfm?id=18
Ravishankar SinghPosted Jan 4, 2012, 2:20 AM
PostBack is the name given to the process of submitting an ASP.NET page to the server for processing . PostBack is done if certain credentials of the page are to be checked against a database (such as verification of username and password). This is something that a client machine is not able to accomplish and thus these details have to be 'posted back' to the server.
A simple example to illustrate the usage of PostBack is a login page. After the user has typed his username and password, he clicks on the 'Login' button. Upon the click, the page is sent to the server to check against the database/XML file to check if the user with supplied details is an authenticated user.
for examples:
http://asp-net-example.blogspot.com/2009/01/aspnet-cross-page-postback-example-how.html
http://www.codeproject.com/KB/aspnet/ClientObjectPostBack.aspx
http://www.dotnetcurry.com/ShowArticle.aspx?ID=203
http://www.xefteri.com/articles/show.cfm?id=18
http://msdn.microsoft.com/en-us/library/ms178208.aspx
http://weblogs.asp.net/mnolton/archive/2003/06/04/8260.aspx
http://forums.asp.net/t/1153318.aspx/1?Javascript+detect+Page+IsValid+and+IsPostBack
Hope this will help you understand and give you start..
Cheers :)
Satyapriya NayakPosted Jan 4, 2012, 2:16 AM
PostBack is the name given to the process of submitting an ASP.NET page to the server for processing . PostBack is done if certain credentials of the page are to be checked against a database (such as verification of username and password). This is something that a client machine is not able to accomplish and thus these details have to be 'posted back' to the server.
Please refer the below link and Our recommended articles
http://dotnet.tekyt.info/?p=30
http://www.c-sharpcorner.com/uploadfile/2f73dd/what-is-postback-in-Asp-Net/default.aspx
Thanks
Priya LingePosted Jan 4, 2012, 2:16 AM
1.PostBack is the name given to the process of submitting an ASP.NET page to the server for processing .
2.PostBack is done if certain credentials of the page are to be checked against a database (such as verification of username and password).
3.This is something that a client machine is not able to accomplish and thus these details have to be 'posted back' to the server.
4.Example :
The usage of PostBack is a login page :
Explanation:
After the user has typed his username and password, he clicks on the 'Login' button. Upon the click, the page is sent to the server to check against the database/XML file to check if the user with supplied details
is an authenticated user.
Please check below link for more information regarding Postback in ASP.NET.
http://dotnet.tekyt.info/?p=30
http://www.codersource.net/asp-net/asp-net-articles/working-with-post-back-in-asp-net.aspx
Hope this will help you.
Thanks.