i hav been searching an answer for this question for ages.
i wasnt able to send data as such, however i was able to send "arguments" to the next page to load.
this is however very insecure and inefficient way.
anyone, really, anyone who could help..
Location: In front of this computer. (Where else?)
Thanked 0 Times in 0 Posts
Originally Posted by abhishek.in
right, session variables will work.
i hav a function/method in one of the pages.
so can i send am argument to it from another?
I don't think you can call a function located in another page from the page you're in presently. - unless, of course you include the page with the function. But if you are just trying to use a variable from another page, there are a number of ways to do that.
to move from the reference page to the page with the function. When you use Server.Transfer as against response.redirect, all your variables remain in memory and you can reference them as you would normally do
2. Use forms on the first page to send your variables to the page with the function.
3. Use session variables. Caution: make sure you destroy the variables immediately you're through using it or else (like ghell said) the session variables might become evil.
They become evil if you use them incorrectly. Just as a hammer is a good tool but if you use it to hit one's head, it becomes bad.
jaywhy13, session variables might be the solution to the problem. But you have to explain the background of the problem to determine if indeed using session variable is the best solution.
so.. you are saying i shudnt do that to people?... what are hammers good for then ='(
i just stay clear of them pretty much full stop, i think there is one script on my server that stores 1 byte number on them at the moment and thats it.. they sorta crap up the server if you put any moderate amount of data in them dont they?
I am looking for something similar to this.
i found a code that gets the selected text and sent it to another page using get. that's simple: it just appends the selected text after some url: