Author: hmmmmmm | Posted on: 11/16/2010 10:08:03 PM | Views : 864

Hello There,


I Had two webforms. source.aspx & Target.aspx


Suorce.aspx has 2 textboxes for input data and two submit buttons.



i am using cross page technique to transfer data from one webform to other.

Source Page:
On buton click event :


Server.Transfer("TargetHome.aspx");


Target Page:
if (PreviousPage != null)
{
TextBox TextBox1 = PreviousPage.FindControl("TextBox1") as TextBox;


      if (TextBox1 != null)
          {
        //  other code here
         }
}


 It is working fine with one textbox input from source page to show result on target page.


Go to the complete details ...