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. ransfer data from one page to another

ransfer data from one page to another

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
5 Posts 5 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.
  • E Offline
    E Offline
    Enobong Adahada
    wrote on last edited by
    #1

    pls i want to transfer data from one content page to another, i use c# and asp.net 4.0 thanks alot

    T M J 3 Replies Last reply
    0
    • E Enobong Adahada

      pls i want to transfer data from one content page to another, i use c# and asp.net 4.0 thanks alot

      T Offline
      T Offline
      thatraja
      wrote on last edited by
      #2

      Search State management in Google. Passing data/parameters/values from one aspx page to another aspx page[^]

      thatraja


      My Dad had a Heart Attack on this day so don't...
      Pompeyboy3 here
      | Nobody remains a virgin, Life screws everyone :sigh:

      1 Reply Last reply
      0
      • E Enobong Adahada

        pls i want to transfer data from one content page to another, i use c# and asp.net 4.0 thanks alot

        M Offline
        M Offline
        mahmoud mohammed mansor
        wrote on last edited by
        #3

        you can do that by using session or by sending data as paramter in the request 1-in first page Session["Name"]=; Session["ID"]=; 2- in other page string x=Session["Name"].ToString(); other Soluation 1- in first page Response.redirect("Default2.aspx?Name="++"&id="+); 2-in last Page request.Get("Name"); request.Get("ID");

        S 1 Reply Last reply
        0
        • E Enobong Adahada

          pls i want to transfer data from one content page to another, i use c# and asp.net 4.0 thanks alot

          J Offline
          J Offline
          Jitendra Parida Jeetu
          wrote on last edited by
          #4

          Hi, another method is here to send data on page to another page though cookies.

          // Setting cookie :
          Response.Cookies["UserName"].Value = "Erhan";
          Response.Cookies["UserName"].Expires = DateTime.Now.AddDays(7); // Persists 1 week

          // Getting cookie :
          string username = string.Empty;
          if(Request.Cookies["UserName"] != null)
          {
          username = Server.HtmlEncode(Request.Cookies["UserName"].Value);
          }

          1 Reply Last reply
          0
          • M mahmoud mohammed mansor

            you can do that by using session or by sending data as paramter in the request 1-in first page Session["Name"]=; Session["ID"]=; 2- in other page string x=Session["Name"].ToString(); other Soluation 1- in first page Response.redirect("Default2.aspx?Name="++"&id="+); 2-in last Page request.Get("Name"); request.Get("ID");

            S Offline
            S Offline
            syamrulezzz
            wrote on last edited by
            #5

            passing values in query string is a wrong practice as it will be exposed to other users .try delegates and events.you will find lots of article regarding thin in google

            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