Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending too long string to another asp page

Status
Not open for further replies.

avivit

Technical User
Jul 5, 2000
456
IL
I am having a problem, when calling an asp page and sending a string with it, for the string is too long, (more than 255), and therefore won't function as should.
(I am doing so through:
parent.framrName.location.href="page1.asp?myString="+myString)

I have this variable as vbscript variable and I turned it also to a javascript var.
I wondered, if there's a way to keep this string as a VBSCRIPT variable in a static frame and then use it from another frame, like in javascript, and maybe this will accept longer strings.

( I know that in javascript I can have a variable in a static frame, and then use from another frame:
parent.frameName.varName...)


Or maybe there's another solution for it?

Thanks
 
Hi,
Well, If your prob is up to static long string then its better to go for Cookies. As always sending same static string to back end. At back end you can retrive the same.
Or you can put it on session. Like if you want to show the login user name in all the pages, its better to put it on session varble. Or
Include a file in that file, place a hidden field and set the value to that static data. Include that file in all youe pages..
if this is not wat you want ignore it..
reg
suds... suds,
Nucleus Software Exports Ltd
csroy@yahoo.com
sudhakar.roy@nucleussoftware.com
 
Thanks both.

Sending the string as a hidden field is good As long as I need it to work as asp pages.
The probelm is that I convert the asp files to html files, in order them to be used in our site as static files. And that's where the problems begin when using the form like this.Frm the same reaon. session is not good, and cookies r the part I hate the most. :)

Thanks very much anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top