Hi Larry,
You can pass the information two different ways in ASP.NET.
First you can use the Session object to pass the info. In Page2 you would save the info into a Session variable. In Page 1 you would use the session variable.
in Page 2:
Session["MyString"] = "my string contents";
in Page 1:
string YourString = Session["MyString"];
if (Session["MyString"] != null)
{
string Page2str = (string)Session["MyString"];
}
The other approach is to use a querystring when calling Page 1 from Page 2. This can only be done when the string would always be less than 255 characters.
in Page 2:
string Page1url = "Page1.aspx?mystring=" + "your string contents";
in Page 1:
string Page2str = Request.QueryString(["mystring"]);
>Hi,
>
>ff:
>
>Page1.aspx --> is my main PAGE
>
>Page2.aspx --> the popup web form...
> --> has a public property of STRNAME AS STRING
>
>i want to retrieve the value of Page2.aspx from Page2.aspx after the window close of Page2.aspx..
>
>
>TIA
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi