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. submitting a form

submitting a form

Scheduled Pinned Locked Moved ASP.NET
sysadmintutorial
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.
  • M Offline
    M Offline
    Manu81
    wrote on last edited by
    #1

    Hai.. I'm new to asp...I want to know how to submit a form to the server without using a input button of type submit...ie i have list control in my form..as soon as i select a value from the list it should get submitted to the server.. how should i do this.. Thanks in advance..

    F M 2 Replies Last reply
    0
    • M Manu81

      Hai.. I'm new to asp...I want to know how to submit a form to the server without using a input button of type submit...ie i have list control in my form..as soon as i select a value from the list it should get submitted to the server.. how should i do this.. Thanks in advance..

      F Offline
      F Offline
      frank21
      wrote on last edited by
      #2

      You should be able to do this by setting up a click event handler for this item in your form. Try double clicking within your list control while the form is in design view, a new event handler should be generate in which you can enter your code. Hope this Helps! Frank

      1 Reply Last reply
      0
      • M Manu81

        Hai.. I'm new to asp...I want to know how to submit a form to the server without using a input button of type submit...ie i have list control in my form..as soon as i select a value from the list it should get submitted to the server.. how should i do this.. Thanks in advance..

        M Offline
        M Offline
        minhpc_bk
        wrote on last edited by
        #3

        Hi there, To cause to the page to post back to the server when you select a new value from the list, you basically do two things: + Set the AutoPostBack property to true. + Create an event handler for the SelectedIndexChanged event of the control. You can simply double click on the control in design view to create the handler as frank21 said because the SelectedIndexChanged is the default event of the list control. For more information, see Responding to Changes in a List Web Server Control[^]

        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