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