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. Submit Method in ASP.NET

Submit Method in ASP.NET

Scheduled Pinned Locked Moved Web Development
questioncsharpasp-net
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.
  • P Offline
    P Offline
    Pradhip
    wrote on last edited by
    #1

    Hi: With the advent of .NET i really have not quite used Request.Form,Request.Querystring.But with zhoujun's question i think i too need to know What is the default method of submitting values to an asp.net page even if it posts back to itself.Is it Post Or Get.. Why Need Parking lots in Bars when Drunken Driving is Prohibited

    I V 2 Replies Last reply
    0
    • P Pradhip

      Hi: With the advent of .NET i really have not quite used Request.Form,Request.Querystring.But with zhoujun's question i think i too need to know What is the default method of submitting values to an asp.net page even if it posts back to itself.Is it Post Or Get.. Why Need Parking lots in Bars when Drunken Driving is Prohibited

      I Offline
      I Offline
      ian mariano
      wrote on last edited by
      #2

      By default, browsers use "get." You have to explicitly state in your <form> tag that the method="post". In ASP.NET, if the form is run server-side, I believe it uses "post."


      "The greatest danger to humanity is humanity without an open mind."
      - Ian Mariano
      http://www.ian-space.com/

      1 Reply Last reply
      0
      • P Pradhip

        Hi: With the advent of .NET i really have not quite used Request.Form,Request.Querystring.But with zhoujun's question i think i too need to know What is the default method of submitting values to an asp.net page even if it posts back to itself.Is it Post Or Get.. Why Need Parking lots in Bars when Drunken Driving is Prohibited

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        Hi Pradip, The default in normal HTML is GET. But under .NET Framework, we normally use

        and it ALWAYS uses POST. You may check out the javascript function that framework uses which is called _doPostBack() We do not do Request.Form like that. Perhaps we assign an event handler to the button and handle them. The framework manages the mappings. Check out the login page and other forms in iBuySpy Portal/Store SourceCode, which would really be very helpful to understand the flow. Deepak Kumar Vasudevan

        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