Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Whats easiest way to pass viewstate data into a popup dialog

Thread Tools

Whats easiest way to pass viewstate data into a popup dialog
Posts: n/a
I am launching a popup screen in Javascript using
window.ShowmodalDialog. Is there any easy way I can pass viewstate data
(which is a class containing various members) into the popup. I also
need to be able to pass the data back out of the popup so that the
viewstate of the original page gets updated.

thanks for the help,

Reply With Quote
Posts: n/a
If I need to put ViewState - or any kind of .NET variable in a
JavaScript function - I write the function from the code behind page to
include the variables I need, like so:

Dim JS As String = "<script language='JavaScript'>alert('" &
ViewState("SomeVar") & "';</script>"

Not sure if that will help or not.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
An easiest way to pass IT exam like mcse,ccna.......and many others garv mehta Cisco 1 01-28-2013 08:58 PM
An easiest way to pass IT exams like mcse,ccna n may others garv mehta MCSD 8 07-03-2008 01:32 PM
whats the easiest way tooo... web Digital Photography 6 11-07-2005 04:59 PM
Whats the easiest way to establish a DB connection Tom Java 0 08-28-2003 06:16 PM