help about cookies!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lousylife
    New Member
    • May 2007
    • 13

    help about cookies!!

    can anyone help me about using cookies!!!
    ahmm this is where it goes, i need to get the value of the textbox and display it to the next window using cookie!
    whenever i type in the textbox and click the submit button, the value i type should be display in the next page!! THANX FOR THE REPLY..
  • legolas936
    New Member
    • Jul 2007
    • 4

    #2
    Originally posted by lousylife
    can anyone help me about using cookies!!!
    ahmm this is where it goes, i need to get the value of the textbox and display it to the next window using cookie!
    whenever i type in the textbox and click the submit button, the value i type should be display in the next page!! THANX FOR THE REPLY..

    i would rather prefer using Session variable and believe using Session is much easier than Cookie

    in 1st page
    Session["var"]=txtbox.text;

    in 2nd page retrieve like this
    Session["var"].ToString();

    Comment

    • ilearneditonline
      Recognized Expert New Member
      • Jul 2007
      • 130

      #3
      Why in the world would you want to use any session or cookie for that. You press submit and it sends that value to the next page. You can get it by doing either....

      [CODE=asp]' if you are submitting by method="GET"
      myvalue = Request.QuerySt ring("txtText")
      ' if you are submitting by method="POST"
      myvalue = Request.Post("t xtText")[/CODE]

      Comment

      Working...