473,487 Members | 2,674 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2756
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
565
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
2044
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
1639
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
3432
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
1732
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
1453
by: seanmle | last post by:
Is it possible if I can call server side code without the page refreshing? Thanks, Sean
10
2012
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
1678
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
7524
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
3512
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
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.