yes, it's the right place..and how is the user getting from page one to page
2? is he or she clicking on a link or a button?
There are a couple ways, but none are automatic...you need to grab the data
on the postback to page 1 and redirect/transfer to page 2..
private void Button1_Click(o bject sender, System.EventArg s e)
{
Response.Redire ct("page2.aspx? value=" + textbox.Text);
}
or using Context.Items and Server.Transfer
and in page2 you get the value and populate the other textbox
Page_Load
TextBox.Text = Request.QuerySt ring["value"];
end
the above is pretty crappy code (no error check and stuff), but not 100%
sure what mechanism you already have in place...
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Rani" <ra***@hotmail. com> wrote in message
news:uZ******** ******@TK2MSFTN GP09.phx.gbl...
hi guys I don't know if this is the right place for it but
I created 2 pages
in page one there is a text box in which the user enters his name,
in page 2 there is a the same text box.
I would like the data to be transferred automatically to the second page
how do I do that ?
thanks