Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 7544 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > ASP.NET Interview Questions > What is the importance of PostBackUrl pr ...

What is the importance of PostBackUrl property of a button?

Interview question and answer by: Santhiram | Posted on: 4/24/2012 | Category: ASP.NET Interview questions | Views: 1096 | | Points: 40
Ads
Ads


Answer:

By default every webform sumbits to itself,but if the PostBackUrl property of a button is set to the url of another page ,then the form is posted to that url instead of itself.

<asp:Button ID="btnCrossPagePostback" runat="server" PostBackUrl="~/Page2.aspx" Text="Cross Page Postback" />

Here the form is submitted to Page2 instead to the form containing the button.

Thanks
Shanti

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


 Responses

Posted by: Siva524 | Posted on: 07 May 2012 01:16:07 AM | Points: 10 | Alert Moderator 

actually there are 2 types of page submission
1.inline submission
'2.postback submission


1.a webform submits to itself is called as an inline page submissi on.
in this case other form is not involved .

2.a webform submit data to another form by( postbackurl property of a button is set to the url of another page) is called as postback submission.

>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Santhiram

    Even more ... | Submit Interview Questions and win prizes!


    About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
    General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
    Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/20/2013 1:04:33 AM