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. Web Development
  3. How submit form in C#.

How submit form in C#.

Scheduled Pinned Locked Moved Web Development
csharptutorialquestion
7 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.
  • V Offline
    V Offline
    VahagnSC
    wrote on last edited by
    #1

    Hello everybody!!!! I can find requisite form in my webbrowser.document. Does anybody know how to submit that? I can invoke method click of submit button, but I hope that mor proffesional way exists. Please anybody answer me!!!!

    S M 2 Replies Last reply
    0
    • V VahagnSC

      Hello everybody!!!! I can find requisite form in my webbrowser.document. Does anybody know how to submit that? I can invoke method click of submit button, but I hope that mor proffesional way exists. Please anybody answer me!!!!

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      VahagnSC wrote:

      I can invoke method click of submit button, but I hope that mor proffesional way exists.

      There should be a submit method on the form itself. And if i were you, i'd worry more about the sanity of your high-level design than the "professionalism" of the odd little steps that are used to implement it... :~

      ---- Do you see what i see? Why do we live like this? Is it because it's true... ...That ignorance is bliss?

      1 Reply Last reply
      0
      • V VahagnSC

        Hello everybody!!!! I can find requisite form in my webbrowser.document. Does anybody know how to submit that? I can invoke method click of submit button, but I hope that mor proffesional way exists. Please anybody answer me!!!!

        M Offline
        M Offline
        Malcolm Smart
        wrote on last edited by
        #3

        Profffesssionals also don't cross post. (same Question in C# forum) ;P

        "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

        P 1 Reply Last reply
        0
        • M Malcolm Smart

          Profffesssionals also don't cross post. (same Question in C# forum) ;P

          "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          I thought I saw this question in another forum...

          "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

          M 1 Reply Last reply
          0
          • P Paul Conrad

            I thought I saw this question in another forum...

            "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

            M Offline
            M Offline
            Malcolm Smart
            wrote on last edited by
            #5

            Yeah, in the C# - without the C# in the subject. I was reading the boards, looking to answer a few tonight, but the vast majority are "How do I...." and not "I've done this and that happened...". I don't know how you, CG and Luc (and a few others) keep trawling through and answering them without throwing huge amounts of sarcasm at them. Credit to you all. :cool:

            "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

            V 1 Reply Last reply
            0
            • M Malcolm Smart

              Yeah, in the C# - without the C# in the subject. I was reading the boards, looking to answer a few tonight, but the vast majority are "How do I...." and not "I've done this and that happened...". I don't know how you, CG and Luc (and a few others) keep trawling through and answering them without throwing huge amounts of sarcasm at them. Credit to you all. :cool:

              "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

              V Offline
              V Offline
              VahagnSC
              wrote on last edited by
              #6

              Ok!!! I have done webbrowser1.document.forms[0].RaiseEvent("onsubmit") and nothing happened!!! Why?? Or may be this way mshtml.HtmlDocument doc; doc = (mshtml.HtmlDocument)webbrowser1.document.domdocument; doc.InvokeMember("function_invokes_when_form_submited"); abd nothing happened again!!??? Why????

              S 1 Reply Last reply
              0
              • V VahagnSC

                Ok!!! I have done webbrowser1.document.forms[0].RaiseEvent("onsubmit") and nothing happened!!! Why?? Or may be this way mshtml.HtmlDocument doc; doc = (mshtml.HtmlDocument)webbrowser1.document.domdocument; doc.InvokeMember("function_invokes_when_form_submited"); abd nothing happened again!!??? Why????

                S Offline
                S Offline
                Shog9 0
                wrote on last edited by
                #7

                Do you want the submit event to fire, or do you want the form to be submitted? 'Cause, you seem to be trying to simulate the former. See here: http://msdn2.microsoft.com/en-us/library/ms536771.aspx[^]

                every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?

                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