You must Sign In to post a response.


Can anyone please explain what is PostBackUrl and why it is used?

Thanks and Regards


Author: Arun Jacob27 Nov 2008 Member Level: Gold   Points : 2

PostBackUrl is used to set the url to which the page should go during the post after post back that url will load in the browser.


Author: narenderraobalguri27 Nov 2008 Member Level: Silver   Points : 3

Postbackurl is a simple way to transfer the control to required page
by using this property u can transfer the control to required page with out writing any code in onclick event.

Author: gowthami chowdary28 Nov 2008 Member Level: Gold   Points : 6

ASP.NET Web Forms extensively use postback mechanism in order to maintain the state of the server-side controls on the web page. This makes it somewhat tricky to perform URL rewriting for ASP.NET pages. When a server side form control is added to the web page, ASP.NET will render the response with HTML

tag that contains an action attribute pointing back to the page where the form control is. This means that if URL rewriting was used for that page, the action attribute will point back to the rewritten URL, not to the URL that was requested from the browser. This will cause the browser to show rewritten URL any time a postback occurs.

The PostBackUrl property is used to gets or sets the URL of the page to post when the Button control is clicked.


PostBackUrl="demo_postbackurl.aspx" runat="Server" />

Author: Lalit Vasant Patil28 Nov 2008 Member Level: Silver   Points : 4


For better understanding.




-Happy Codding(-_-)

Author: Fool To Code29 Nov 2008 Member Level: Gold   Points : 3

if you want to redirect your page to on button's click then

on button's click event:


and google will be opened on your page

Sign In to post your comments