|
Hi,
How can I send variables across web pages without using session or cookies?
Thanks in advance
|
|
|
|
|
This is strictly not a C# question, it belongs to ASP.NET forum.
Anyway, try this: Pass them as arguments in the url. E.g. http://www.mysite.com/?arg1=val1&arg2=val2&arg3=val3
Note than on most browsers, the length of the url is limited. Some browsers support only 2000 characters while other support upto 5000. Please use google to do some research.
modified 21-Jan-14 6:39am.
|
|
|
|
|
Psst! You forgot the query marker:
http://www.mysite.com/?arg1=val1&arg2=val2&arg3=val3
Without the '?' it's all a web address.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Fixed now. Thanks for pointing out. I'm out of tea (not coffee) today.
|
|
|
|
|
I have days like that too!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
OG, you are the man of the moment!!!!!!!
|
|
|
|
|
Rahul VB wrote:
OG, you are the man of the moment!!!!!!! He's gonna put this in his signature.
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
No he isn't!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
|
No bear today? Probably a good idea. The fur gets stuck in my teeth, too...
If you meant it's spelled with two "e"s.
How much is a "peg" of whisky? It's not a measure I am familiar with. And was it good whisky?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
oh oh yes sorry, OG you are speaking to a person who is 2 pegs down that too large(90 ml each).
Quote: The fur gets stuck in my teeth, too..
hey dont make fun of me...
one peg starts with 30ml( here we call it small).
next is 60 ml( medium).
and finally 90 ml(large).
If you want to become a hero just call the waiter say:
Quote: hey brother, one large please ....
and he will pop up another peg with "90ml". Now look around here and there people stare at you. Now to show off you finish that peg.
But when you come home you vomit like hell (just like me). So the best thing is sit at home watch TV and have your drink. My dad left me a johnnie walker black label. so i had that.
|
|
|
|
|
Roughly the same as pub measures here: 1/6 gil == 25ml, so a "large" would be a triple, maybe a little more.
Sleep well - and don;t forget to tie the room down to stop it spinning!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
haha great . I am fine, had a lemonade. Its much better. Which is your favorite scotch or whisky?
|
|
|
|
|
Depends on my mood.
A bit depressed, or angry and it's JD Green Label[^]
For a more reflective mood, it's Glenlivet 1912 (that being the year it was distilled) But I drink that very, very infrequently: the nearest bottle I know of is several hundred miles away, if indeed it still has any content left! And it costs a fortune! Worth it though...
I gave up serious drinking maybe half a dozen years back, and now I might have a glass of wine of an evening, or I might not have anything. Depends on how I feel at the time.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
|
I used the patches: from 20+ a day.
It wasn't easy, but it got easier - and I'm glad I did kick 'em in the end.
But I do know this: the only way to quit is to want to quit more than you want to smoke. If you don't have better mental reasons for quitting than you do for continuing then you won't stop - the real battle isn't the nicotine addiction (though that is pretty rough) it's the mental habit of smoking and the association of smoking with places and actions. So if you smoke when you drink beer - stop drinking beer for a few weeks; drink wine instead and don't create an association between wine and smoking.
"Wanting to quit" is what got me off drinking, smoking and several illegal narcotics...
Haven't found anything that makes me "want" to give up motorcycles or coffee though!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
|
You can use a database and store your data in a table and generate a unique key to identify the data and pass this key in the url query string. On the target page, extract the key and query the database to get the data.
Sharath Surendran wrote: <layer>is there a way we can send objects across the webpages. Yes, serialize the object and use the same technique stated above.
|
|
|
|
|
|
|
|
I have one requirement , I have a gridview where i will load details of some ip address with its credential. Currently i will perform task related to ip adresses one by one. but now we have a requirement to speed up the process. Now i want to do the task parallely. I can use multithreading and start the threads and join them but the issue is i want to process only 2 set of ip i.e threads at one given point of time.So once these two threads complete the next set of two ips from gridview should be processed parallely.is it possible using multithreading .
|
|
|
|
|
Yes, here's how I would do it:
When the user tells the program to start, add all the IP's to a Queue<string>[^]. Then create two background workers[^].
Give each background worker one of the IP's and remove them from the queue. When the background worker completes, save the data and give it another IP from the queue (remove it when done). Keep doing this for each background worker until the queue is empty.
|
|
|
|
|
can we do it using Thread class
|
|
|
|
|
Yes.
BackgroundWorker is just a wrapper for the Thread class, with progress reporting added in. It's easier to use, but it creates Thread instances for you, is all.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|