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 variable between ASP.NET pages

pass variable between ASP.NET pages

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasequestionannouncement
5 Posts 4 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.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Is there any way to pass variables between asp pages other than the query string? something like what i am doing in WinForm:

    form1 myform = news form1();
    form1.myvar = "abc123";

    what i want is to pass the variale but i dont want it to be shown in the url...

    N D H 3 Replies Last reply
    0
    • J Jassim Rahma

      Is there any way to pass variables between asp pages other than the query string? something like what i am doing in WinForm:

      form1 myform = news form1();
      form1.myvar = "abc123";

      what i want is to pass the variale but i dont want it to be shown in the url...

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

      You are asking an awful lot of questions (here and in Database) which with a little bit of research you could answer yourself. The quesiton above is basic HTML stuff. Enough now. Do some work yourself.

      1 Reply Last reply
      0
      • J Jassim Rahma

        Is there any way to pass variables between asp pages other than the query string? something like what i am doing in WinForm:

        form1 myform = news form1();
        form1.myvar = "abc123";

        what i want is to pass the variale but i dont want it to be shown in the url...

        D Offline
        D Offline
        David Mujica
        wrote on last edited by
        #3

        Check this article out ... Manage ASP.NET Session Variables using the Facade Design Pattern[^]

        N 1 Reply Last reply
        0
        • D David Mujica

          Check this article out ... Manage ASP.NET Session Variables using the Facade Design Pattern[^]

          N Offline
          N Offline
          NeverHeardOfMe
          wrote on last edited by
          #4

          Better to use POST in the form's ACTION property to just pass values from one page to another.

          1 Reply Last reply
          0
          • J Jassim Rahma

            Is there any way to pass variables between asp pages other than the query string? something like what i am doing in WinForm:

            form1 myform = news form1();
            form1.myvar = "abc123";

            what i want is to pass the variale but i dont want it to be shown in the url...

            H Offline
            H Offline
            Hiren solanki
            wrote on last edited by
            #5
            • Get HTTP POST information from the source page.
            • Use session state.
            • Create public properties in the source page and access the property values in the target page.
            • Get control information in the target page from controls in the source page.

            See MSDN[^] for more details on each.

            Regards, Hiren. Microsoft Dynamics CRM

            My Recent Article: - Way to know which control have raised PostBack[^]

            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