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. POST method in ASP.NET

POST method in ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharpphpasp-netquestion
3 Posts 3 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.
  • C Offline
    C Offline
    chathu03j
    wrote on last edited by
    #1

    how do you retreive the variable values that you post from one page, in the calling page? that is, in PHP you can use $variable=$_POST['control name'] is there a similar thing in ASP.NET? I want to know of a method other than passing variables with the URL.

    V G 2 Replies Last reply
    0
    • C chathu03j

      how do you retreive the variable values that you post from one page, in the calling page? that is, in PHP you can use $variable=$_POST['control name'] is there a similar thing in ASP.NET? I want to know of a method other than passing variables with the URL.

      V Offline
      V Offline
      Venkatesh Mookkan
      wrote on last edited by
      #2

      The traditional way of retrieve the posted value is (common to ASP as well as ASP.NET),

      Dim myname as String = Request.Form("Control Name")

      If you use ASP.NET's Server controls, there is no need to use the traditional way. You just retrieve on the button click event as,

      Dim myname as String = ControlName.Text

      'Assume that the Control is a TextBox

      Regards, Venkatesh Mookkan. Software Engineer, India

      1 Reply Last reply
      0
      • C chathu03j

        how do you retreive the variable values that you post from one page, in the calling page? that is, in PHP you can use $variable=$_POST['control name'] is there a similar thing in ASP.NET? I want to know of a method other than passing variables with the URL.

        G Offline
        G Offline
        GaryWoodfine
        wrote on last edited by
        #3

        If you use the Server.Transfer method to move between your pages, you can also transfer your variable values using the HttpContext

        Kind Regards, Gary


        My Website || My Blog || My Articles

        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