473,385 Members | 1,673 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,385 software developers and data experts.

showModalDialog problem when string too long - any alternatives ?

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 tool long and
showModalDialog fails. I'm aware of the DialogArguments and passing an
object to receiver but this is no good for me as the receiver needs to
access the long string in server side code and so would not know
anything about the dialogArguments class. Can anyone suggest a way for
me to show the dialog as modal and at same time get the long string into
the dialog and have the string accessable from both server side code and
client side within the dialog recever file ?

thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 22 '05 #1
3 3301
Whzere do you need those information. Could you pass a "handle" allowing to
retrive the info server side...
--

"Charles Gamble" <ch************@singularity.co.uk> a écrit dans le message
de news:%2****************@TK2MSFTNGP14.phx.gbl...
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 tool long and
showModalDialog fails. I'm aware of the DialogArguments and passing an
object to receiver but this is no good for me as the receiver needs to
access the long string in server side code and so would not know
anything about the dialogArguments class. Can anyone suggest a way for
me to show the dialog as modal and at same time get the long string into
the dialog and have the string accessable from both server side code and
client side within the dialog recever file ?

thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 22 '05 #2

Hi Could you please ellaborate more on your idea regarding a handle - a
handle to what object are you suggesting? I need to access the string
parameter from server side code in the receiving page. This is why I
can't use the DialogArguments as this relies on the server side code
knowing about the window class which I don't believe it can becuase it
is server side. Any further help appreciated!

thanks for interest.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 22 '05 #3
Do you need these values client side ? If not you don't need to transport
those values client side. Instead you could just have client side an "ID".
This ID is used server side to retrieve those values from whatever data
store best fit your needs during the next HTTP request.

You could for example :
- store those values in one or more session variables, this is then handled
for you
- store those values in a file (likely uniquely named using as GUID), client
side you'll transmit this GUID so that on the next request you know from
which file to retrieve those data
- it could be the id of a record in the database
and so on...

It all depends on wether or not you need those data client side...

Hope it's a bit clearer...

Patrice

--

"Charles Gamble" <ch************@singularity.co.uk> a écrit dans le message
de news:OT**************@TK2MSFTNGP10.phx.gbl...

Hi Could you please ellaborate more on your idea regarding a handle - a
handle to what object are you suggesting? I need to access the string
parameter from server side code in the receiving page. This is why I
can't use the DialogArguments as this relies on the server side code
knowing about the window class which I don't believe it can becuase it
is server side. Any further help appreciated!

thanks for interest.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 22 '05 #4

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

Similar topics

19
by: Mike Tyka | last post by:
Hello community, i'm fairly new to using the STL but i've been experimenting a bit with it. I tried to derive a new class say MyString from string like so: class MyString: public string{...
2
by: IAmSoNeat | last post by:
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...
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...
5
by: Tmajarov | last post by:
Haven't been able to find a clear answer to this... I am building an asp.net application and trying to enforce some work flow by displaying a form via the showmodaldialog method. I can get the...
3
by: needin4mation | last post by:
Hi, I have an asp:button that has a ShowModalDialog script attribute added to it. When the ShowModalDialog opens the user is supposed to select some data which is then sent back to the calling...
1
by: Ben Schumacher | last post by:
I keep getting a script error (Expected end of statement) when I try to add the following attribute to a <asp:Button server control. My vb.net looks as follows ... Dim sUrl As String =...
9
by: Stan B | last post by:
I create a popup window by calling window.showModalDialog Popup window has Ok button with this code attached: === string Script = "<script language=JavaScript>" + "{" + "window.close();" +...
6
by: David | last post by:
Hi all, I am opening a webform with showModalDialog. This appears to pop-up fine, though I have a problem... Inside the webform is a treeview control. When the treeview is populated, I am...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.