473,324 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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

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
Nov 22 '05 #1
2 2744
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]

"Jim M" <an********@discussions.microsoft.com> wrote in message
news:u3**************@TK2MSFTNGP09.phx.gbl...
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

Nov 22 '05 #2
Jim M wrote:
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
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jim M | last post by:
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();...
15
by: Shmuel (Seymour J.) Metz | last post by:
Back in the innocent days of the last century, I would have used a mailto link in my web page to allow people to cancel me. In the era of mass harvesting of addresses by spammers and other...
2
by: Matt | last post by:
I guess the principal differences between client-side and server-side code is that client-side code is processed in web browser, and server-side code is processed in web server. In ASP.NET web...
3
by: nick | last post by:
Is possible for server side code to access the text of <asp:label> changed by client side javascript code?
5
by: Jerry Camel | last post by:
Trying to implement the following: Users is logging in They enter theire username and password and click a login button The page should then display an activity indicator (animated gif) and then...
5
by: seanmle | last post by:
Is it possible if I can call server side code without the page refreshing? Thanks, Sean
10
by: Ben | last post by:
Hi, I made an application in classic asp (reservation of books and video stuffs for students) and want to migrate to asp.net. The user has to chose a date, then pushung on a submit button. The...
14
by: javelin | last post by:
I need to fire off some server side code, but I don't want to submit the page I'm on. I know that's not technically possible (without something like AJAX, maybe?). What I thought might work is to...
0
by: OceanBreeze | last post by:
I have added a LinkButton to the web page programatically from server side code using ASP 2.0 and C# in my Page_Load method. I also associate this LinkButton with a LinkButton_ClickHandler_Edit and...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.