Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. To Transfer data from one page to another through Cookies, URL Rewriting and Session object using ASP.net

To Transfer data from one page to another through Cookies, URL Rewriting and Session object using ASP.net

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpasp-net
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    anu_sam777
    wrote on last edited by
    #1

    hi all, i m new to web d3velopment and ASp.net can anyone please guide me how to transfer data fromone page to another through Cookies, Session object and url Rewriting. thnax Faisal VH.

    i m faisal

    N 1 Reply Last reply
    0
    • A anu_sam777

      hi all, i m new to web d3velopment and ASp.net can anyone please guide me how to transfer data fromone page to another through Cookies, Session object and url Rewriting. thnax Faisal VH.

      i m faisal

      N Offline
      N Offline
      netJP12L
      wrote on last edited by
      #2

      Creating session variable to be used later on. Session.Add("userID","420") to use this session variable in another page. This is how we can access. string ID=Session["userID"].ToString(); Response.Redirect"Page2.aspx?firstName=faisal"); //this is how we pass value through URL string name=Request.QueryString["firstName"].ToString(); //Accessing the value in another page

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups