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


Deependra Khangarot199 reputationPosted Aug 5, 2009, 9:30 PM EDT
Arun Jacob9 reputationPosted Aug 5, 2009, 10:20 PM EDT
http://msdn.microsoft.com/en-us/library/ms178139.aspx
Read MSDN Article about Cross page posting.
Purushottam RathoreRank #120 · 18.2K reputationPosted Aug 6, 2009, 4:53 AM EDT
plz send me code if is it possible.
Bt i want to access button on next page not textbox.