Passing Data between windows

gijesh

New member
Joined
Sep 7, 2004
Messages
3
Programming Experience
1-3
I have an html page(1.html) which has to load a new web application(http://localhost/Test/Test.aspx) in a new modal dilaogbox.

I need to pass on some data from 1.html to the new dialog box.
I am using the following code in 1.html to do that:
var vURL = "http://localhost/WebApplication1/WebForm1.aspx";
window.showModelessDialog(vURL,"data to be tranferred","dialogWidth:800px;dialogHeight:600px;status:no;scroll:no");

Now if try to access the dialog arguments in WebForm1.aspx as 'window.dialogArguments',i get the error 'undefined'.
if insted of the aspx page if the url is another html page,then there is no error.

Is there any solution for this?
Or is there any way in which i can pass data from an html page to a new dialog window which loads an .Net web appliction?
 
You could use session variables to store information between pages.

In the first page you would do something like this:
VB.NET:
Session("Surname")=TextBoxSurName.Text
And in the 2nd page you would retrive that informaton like this:
VB.NET:
surname=Session("Surname")
 

Latest posts

Back
Top