On Mon, 12 Jul 2004 14:36:16 +0200 in
microsoft.public.dotnet.framework.aspnet, "Mike" <no****@nospam.com>
wrote:
Hi,
I need to pass a value from one Web Form to another. In Form #1 I have set up a web control (hyperlink) that in its "Transfer" property contains the name of the Web Form to be loaded. How can I read the listIndex of a Listbox in Form #1 when the Form#2 is loaded?
Why not use Session variables?
Form1:
Session.Add("MyValue", "123");
// load form 2
Form2:
void Page_Load(object sender, System.EventArgs e)
{
string myval = Session["MyValue"].ToString();
}
Roger