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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Posting Forms

Posting Forms

Scheduled Pinned Locked Moved C#
question
5 Posts 2 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
    Meysam Mahfouzi
    wrote on last edited by
    #1

    How is it possible to programatically create a form, populate its fields with some data and post it somewhere?


    Don't forget, that's

    Persian Gulf

    not Arabian gulf!

    X 1 Reply Last reply
    0
    • M Meysam Mahfouzi

      How is it possible to programatically create a form, populate its fields with some data and post it somewhere?


      Don't forget, that's

      Persian Gulf

      not Arabian gulf!

      X Offline
      X Offline
      xoph
      wrote on last edited by
      #2

      What do you mean by "post it somewhere" ? You can create a form, set all its properties, add controls and so on, but not show it at once (by calling the Show or ShowDialog method) and keep it in memory until you need to display it or do whatever. Chris

      M 1 Reply Last reply
      0
      • X xoph

        What do you mean by "post it somewhere" ? You can create a form, set all its properties, add controls and so on, but not show it at once (by calling the Show or ShowDialog method) and keep it in memory until you need to display it or do whatever. Chris

        M Offline
        M Offline
        Meysam Mahfouzi
        wrote on last edited by
        #3

        I mean web application forms post it somewhere = somewhere that is specified in action attribute of form


        Don't forget, that's

        Persian Gulf

        not Arabian gulf!

        X 1 Reply Last reply
        0
        • M Meysam Mahfouzi

          I mean web application forms post it somewhere = somewhere that is specified in action attribute of form


          Don't forget, that's

          Persian Gulf

          not Arabian gulf!

          X Offline
          X Offline
          xoph
          wrote on last edited by
          #4

          I don't think it is actually possible to post a web form to a web server using a WebForm. WebForms derive from System.Web.UI.Page and are meant to be sent to a web browser and not a web server. This is the job of a browser that you would like to do programatically as I understand? If yes, you can use System.Net.WebRequest to create a web request, and specify post as the method to accomplish this.

          M 1 Reply Last reply
          0
          • X xoph

            I don't think it is actually possible to post a web form to a web server using a WebForm. WebForms derive from System.Web.UI.Page and are meant to be sent to a web browser and not a web server. This is the job of a browser that you would like to do programatically as I understand? If yes, you can use System.Net.WebRequest to create a web request, and specify post as the method to accomplish this.

            M Offline
            M Offline
            Meysam Mahfouzi
            wrote on last edited by
            #5

            Thank you! I will try it! :rose:


            Don't forget, that's

            Persian Gulf

            not Arabian gulf!

            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