473,320 Members | 2,161 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,320 software developers and data experts.

Accessing showModalDialog argument on server side

The showModalDialog has an argument parameter that will allow the
modaldialog to access it through the client side property:
dialogArguments.

Is there any way to access this property on the server-side?

I currently do nothing if IsPostBack is false and then on the
client-side during the onload event for the body I create a hidden
field with a value of the dialogArguments and then repost the page.
This is annoying.

Is there a way to do it without reposting the page?

Thanks in advance
Nov 18 '05 #1
2 3865
place in the url when you do the window open:

window.showModalDialog (url + '?arg=' + escape(argvalue));
-- bruce (sqlwork.com)
"IAmSoNeat" <ia*******@yahoo.com> wrote in message
news:c6**************************@posting.google.c om...
The showModalDialog has an argument parameter that will allow the
modaldialog to access it through the client side property:
dialogArguments.

Is there any way to access this property on the server-side?

I currently do nothing if IsPostBack is false and then on the
client-side during the onload event for the body I create a hidden
field with a value of the dialogArguments and then repost the page.
This is annoying.

Is there a way to do it without reposting the page?

Thanks in advance

Nov 18 '05 #2
I think you're probably doing it about the best way. Remember that web
pages are disconnected and the only way to get something back to the server
is the bane of high performance ASP.Net - the postback.

Other alternatives might include frames or iframes but that may be even more
difficult to handle than what you're doing now.

Dale
"IAmSoNeat" <ia*******@yahoo.com> wrote in message
news:c6**************************@posting.google.c om...
The showModalDialog has an argument parameter that will allow the
modaldialog to access it through the client side property:
dialogArguments.

Is there any way to access this property on the server-side?

I currently do nothing if IsPostBack is false and then on the
client-side during the onload event for the body I create a hidden
field with a value of the dialogArguments and then repost the page.
This is annoying.

Is there a way to do it without reposting the page?

Thanks in advance

Nov 18 '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();...
3
by: Charles Gamble | last post by:
Hi, I am displaying a modal dialog in JScript using window.showModalDialog passing a long string as URL - i.e. it contains variables values just like a Get request. Problem is that string is now...
2
by: Simon Storr | last post by:
Is it possible to make the parent window refresh when a modal dialog is closed? I know I can use window.opener.location.reload(true); for a 'normal' window, but this doesn't work for...
3
by: PeeBee | last post by:
I have researched the issue of setting the title of a window created with a call to showModalDialog. I have found numerous articles, but nothing that answers my particular case (Code abbreviated...
4
by: MW de Jager | last post by:
I want to call ShowModalDialog(...) from my C# code in the code behind page of my aspx page. I do not want to link this to a button, since I want to first do some checking myself before I call the...
4
by: SL | last post by:
Hi there... if I call window.showModalDialog(url,args,options) in javascript on my page, and the target url is another asp.net page, when that page loads, how can I access the data sent in the args...
1
by: dan_williams | last post by:
I'm trying to create a textbox control on an asp.net web page, that after a user has typed some text into it, another pop-up window appears with a dropdownlist populated with options related to the...
4
by: Ralf | last post by:
Here is my scenerio and what I am doing. I am open to other ways of doing this is it makes sense. I have a cell withing a row within a datagrid. When this cell is clicked (its a date field), I...
2
by: Garg | last post by:
Waht is the equivalent of Window.showModalDialog in vb.net? Please tell me....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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...
0
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

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.