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. How to send a form Request using asp.net?

How to send a form Request using asp.net?

Scheduled Pinned Locked Moved ASP.NET
csharpquestionasp-nettutorial
5 Posts 3 Posters 1 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
    pubududilena
    wrote on last edited by
    #1

    Hi, I need to do following Form Request in a my C# Application. So How can I do it using C#,ASP.NET

    Thanks in advance.

    N V 2 Replies Last reply
    0
    • P pubududilena

      Hi, I need to do following Form Request in a my C# Application. So How can I do it using C#,ASP.NET

      Thanks in advance.

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Is your form having runat=server tag ?

      Navaneeth My Website

      P 1 Reply Last reply
      0
      • P pubududilena

        Hi, I need to do following Form Request in a my C# Application. So How can I do it using C#,ASP.NET

        Thanks in advance.

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

        I am not sure what you exactly telling I think you want to do these html form element in the asp.net using c# and accessing it. Steps 1) add new web page to a project. 2) click on the source button, in that form tag add action and set it to https://abc/MPI 3) add the hidden html tag add attributes runat="server". Do this for all the controls. 4) now you can access the hidden control value from code behind e.g In page_load PX_VERSION.Value give the value stored in the control. I think this what you want. if you have any doubt, post back to me.

        P 1 Reply Last reply
        0
        • N N a v a n e e t h

          Is your form having runat=server tag ?

          Navaneeth My Website

          P Offline
          P Offline
          pubududilena
          wrote on last edited by
          #4

          Thanks for reply. No .I am unable to use Forms direclty.I have string field with having Form content. Is there a way to post forms contents dynamically? Thanks in advance.

          1 Reply Last reply
          0
          • V Venk259

            I am not sure what you exactly telling I think you want to do these html form element in the asp.net using c# and accessing it. Steps 1) add new web page to a project. 2) click on the source button, in that form tag add action and set it to https://abc/MPI 3) add the hidden html tag add attributes runat="server". Do this for all the controls. 4) now you can access the hidden control value from code behind e.g In page_load PX_VERSION.Value give the value stored in the control. I think this what you want. if you have any doubt, post back to me.

            P Offline
            P Offline
            pubududilena
            wrote on last edited by
            #5

            Thanks for reply. I need to send form content Dynamically and get a response. I am unable to create form and put all the code inside the form. I can get form content to a string field. Then Is there a way to post form details dynamically and get a response. Thanks in advance

            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