passing variable to vb server side code using showmodaldialog (without querystrings)

  • Thread starter Thread starter Jim M
  • Start date Start date
J

Jim M

I hate to pass data on the query string. Is there a way to pass data to the
serverside vb code using the object in showmodaldialog.

var myObject = new Object();
var retVal = new Object();
myObject.calltype = "Edit"

retVal =
showModalDialog("Test.aspx",myObject,"dialogWidth:700px;dialogHeight:550px;s
tatus:0");

I can read myObject with no problem in the javascript of Text.aspx, but is
there any way to read the value in the server side vb onload module?

Thanks in advance.

Jim
 
Jim said:
I hate to pass data on the query string. Is there a way to pass data
to the serverside vb code using the object in showmodaldialog.

var myObject = new Object();
var retVal = new Object();
myObject.calltype = "Edit"

retVal =
showModalDialog("Test.aspx",myObject,"dialogWidth:700px;dialogHeight:550px;s
tatus:0");

I can read myObject with no problem in the javascript of Text.aspx,
but is there any way to read the value in the server side vb onload
module?

Thanks in advance.

Jim

Not without using an iframe on the modal page (you would need to post a form
containing the information to the page loaded in the iframe).

Of course, you could use a traditional frame on your modal page if you used
a querystring to load the page in the frame.

Bob Barrows
 
As far as i know NO :-)

however instead of passing the data on the url ( querystring )

you could use a form post (with hidden form field)

hth

M. Posseth [MCP]
 
Back
Top