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. pass parameters between pages

pass parameters between pages

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
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.
  • M Offline
    M Offline
    Mr Cooper
    wrote on last edited by
    #1

    hi ........ i'm a new ASP.Net programmer and i want to know how to pass parameters between pages, such as login information.

    P V A D 4 Replies Last reply
    0
    • M Mr Cooper

      hi ........ i'm a new ASP.Net programmer and i want to know how to pass parameters between pages, such as login information.

      P Offline
      P Offline
      Plunging_Falcon
      wrote on last edited by
      #2

      The best way is to use the Session variable (Session["username"]="whatever" saves the "whatever" string and when you pass to another page you can retrieve it). For detailed info, google it. Alex.

      1 Reply Last reply
      0
      • M Mr Cooper

        hi ........ i'm a new ASP.Net programmer and i want to know how to pass parameters between pages, such as login information.

        V Offline
        V Offline
        V 0
        wrote on last edited by
        #3

        viewstate Session objects url parameters choose your destiny :-). (I'd go for the session if it's about logon info) "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix

        1 Reply Last reply
        0
        • M Mr Cooper

          hi ........ i'm a new ASP.Net programmer and i want to know how to pass parameters between pages, such as login information.

          A Offline
          A Offline
          ABBASI_RA
          wrote on last edited by
          #4

          hi you can also do it like classes and thir public propertis. page a : class a param a1 page b : class b b1:a.a1

          1 Reply Last reply
          0
          • M Mr Cooper

            hi ........ i'm a new ASP.Net programmer and i want to know how to pass parameters between pages, such as login information.

            D Offline
            D Offline
            DELETEUSER
            wrote on last edited by
            #5

            Session object are used as intermediate storage, or use a query string. Or you can create a public property on the first form and access it through the HttpContext.Handler object from the second form. ---------- user9 A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.

            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