Passing Large Amounts Of Text From One Page To Another
-
Is there another way to do as the subject says without using the command line (Request.QueryString() ), since a large amount of text would generate a ridiculously long 'URL'?
You can use Session Variables for this but they only work if the user's browser accept cookies (at least session cookies). Using session variables is quite simple: - putting value (on one page) Session("SomeString") = "This is a long long text" - getting value (on another page) Response.Write(Session("SomeString")) Regards, Tom ================== The original message was: Is there another way to do as the subject says without using the command line (Request.QueryString() ), since a large amount of text would generate a ridiculously long 'URL'?
-
You can use Session Variables for this but they only work if the user's browser accept cookies (at least session cookies). Using session variables is quite simple: - putting value (on one page) Session("SomeString") = "This is a long long text" - getting value (on another page) Response.Write(Session("SomeString")) Regards, Tom ================== The original message was: Is there another way to do as the subject says without using the command line (Request.QueryString() ), since a large amount of text would generate a ridiculously long 'URL'?
It depends. Are you passing the information through a hyperlink or through a form? If you are passing it through a hyperlink, then what Tom mentioned will work. However, if it is through a FORM, then use Request.Form(Field Name) and set your FORM METHOD to POST. Hope it helps, Tobey ================== The original message was: You can use Session Variables for this but they only work if the user's browser accept cookies (at least session cookies).
Using session variables is quite simple:
- putting value (on one page)
Session("SomeString") = "This is a long long text"
- getting value (on another page)
Response.Write(Session("SomeString"))
Regards, Tom
==================
The original message was:Is there another way to do as the subject says without using the command line (Request.QueryString() ), since a large amount of text would generate a ridiculously long 'URL'?
-
Is there another way to do as the subject says without using the command line (Request.QueryString() ), since a large amount of text would generate a ridiculously long 'URL'?
I guess another way of doing this is by using a hidden input field in a form, and having the form action as the URL of the page you want to send the data to. If you don't like having links to other pages show up as buttons then you can have the submit button as an image to make it look a little nicer...