4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by localinternet
0

I believe if you want to post data of web form to the specified web page then you can use PostBackUrl property of link button.

Generally when we want to pass data, we pass it in Querystring (Key/value) pair and on next page, we retrieve it using Request.QueryString("") property.

But with the help of PostBackUrl property we don't need to pass data in querystring. Instead we can access those data on specified page with the help of PreviousPage property of asp.net.

TextBox t1 = (TextBox)PreviousPage.FindControl("textbox id of previous page");
Reponse.Write(t1.Text);

you can also refer to this link :
http://programming.top54u.com/post/ASP-Net-LinkButton-PostBackUrl-Property.aspx

hello friends i m new in dis community n in asp.nt field
i want 2 9 wat is POST BACK URL in link button property

0

PostBackUrl property of link button is use for specify the targeted web page url.the targeted web page will be a page where you want to post your form data like textbox,listbox etc.

0

PostBackUrl property of linkbutton contains the address of webpage where we are going to post our form controls data.
i.e:-

linkbutton1.PostBackUrl="~/form1.aspx/";

Here in above statement we will reach at form1.aspx along data of form controls at the time of click on linkbutton1.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.