Home > DeveloperSection > Forums > Unable to implement the Server.Transfer
Rajesh Goswami

Total Post:29

Points:203
Posted on    October-23-2010 6:35 AM

 ASP.Net ASP.Net 
Ratings:


 2 Reply(s)
 1198  View(s)
Rate this:
please give the example of this problem
thanks


Amit Singh

Total Post:103

Points:721
Posted on    October-23-2010 6:47 AM

Server.Transfer is used as response.redirect but it give the better and fast result as redirect.
we use server.transfer in our application as
step 1:
we take one textbox and one button on home page and write the code on button click as
Server.Transfer("Default.aspx");
step 2;
we get the value of textbox of home page by
write this code on default.aspx
 Page page1 = this.PreviousPage;
        TextBox t = (TextBox)page1.FindControl("TextBox1");
        Response.Write(t.Text);


Amit Singh

Total Post:103

Points:721
Posted on    February-12-2011 1:32 AM


Don't want to miss updates? Please click the below button!

Follow MindStick