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. Calling HTML Form Submit from ASP.net serverside code

Calling HTML Form Submit from ASP.net serverside code

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-netdatabasesysadmin
2 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.
  • T Offline
    T Offline
    Tristan Rhodes
    wrote on last edited by
    #1

    Basicaly, i seem to be limited to manipulating my database via data objects from forms. However, I want to set it up so that i don't have to actualy click on a submit button to sumbit a form back for processing. I have an asp.net drop down menu, and on the event of a change in value, it reposts the value change to the server. However, to apply this change to a database, i need to create an invisible form, and submit it. I have the form, I have the data bound to the fields that I need inputting. But i can't call submit. What the hell do i do (please)? Cata

    S 1 Reply Last reply
    0
    • T Tristan Rhodes

      Basicaly, i seem to be limited to manipulating my database via data objects from forms. However, I want to set it up so that i don't have to actualy click on a submit button to sumbit a form back for processing. I have an asp.net drop down menu, and on the event of a change in value, it reposts the value change to the server. However, to apply this change to a database, i need to create an invisible form, and submit it. I have the form, I have the data bound to the fields that I need inputting. But i can't call submit. What the hell do i do (please)? Cata

      S Offline
      S Offline
      sivilian
      wrote on last edited by
      #2

      When you set a drop down list (I am assuming this is what you are using) to autopostback, the form its on is automatically submitted when its value changes. The event that handles this is selectedIndexChanged. In this event handler you can put database manipulation code, as it is running on the server side. There is no need for you to submit the form yourself, or to create an invisible form! hope this helps, sivilian

      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