Suppose I have two pages in my application. On the first page I have used a Button named 'Button1'. i want to use that 'Button1' on Second page.
Here i have used this code on second page to find button
protected void Page_Load(object sender, EventArgs e)
{
Button btn = (Button)PreviousPage.FindControl("Button1");
}
Loading

Purushottam RathorePosted Aug 6, 2009, 8:53 AM
plz send me code if is it possible.
Bt i want to access button on next page not textbox.
Arun JacobPosted Aug 6, 2009, 2:20 AM
http://msdn.microsoft.com/en-us/library/ms178139.aspx
Read MSDN Article about Cross page posting.
Deependra KhangarotPosted Aug 6, 2009, 1:30 AM