There are two Comboboxs, one button, and a GridView in a page.
When I click the button, the selected items of the Comboboxs should be inserted to the GridView and at the same time updated in database.
When I click the button it should not perform a postback. Users should be able to add lots ot records when hitting the submit button.
Here is what you need to do:
OnClientClickand return false from this method.http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.button.onclientclick.aspx
http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/
Add table row in jQuery
Of course you can use an
UpdatePanelbut you have to insert the combo and the grid inside, so this is not going to save you server CPU and traffic.