Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change textbox.text before server.transfer

Status
Not open for further replies.

needscoop

Programmer
Nov 13, 2002
29
US
I can type text into a textbox, and display that text on
the page I do a server.transfer to. However, if I
programtically change the textbox.text before the
server.transfer stmt (within button click event) the destination page displays the text that was typed, ignoring the change I made to the text in code). Any ideas how to get the change to "take"?

Code:
tbxInfo.Text = "force text to something else"; 		
//Comment:  BOTH pages have EnableViewStateMac="false" 	
Server.Transfer("DestPage.aspx", true);
 
interesting. try refreshing after you change text.
 
I refereshed (from browser) - same result.[/navy]

Here's the destination page's load event snippet:
Code:
private void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
    {
    Response.Write( &quot;<br>this is from page2&quot; );  
              
    System.Collections.Specialized.NameValueCollection colForm;
    colForm = Request.Form;		
    tbxPassedInfo.Text = colForm[&quot;tbxInfo&quot;];
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top