viewstate of combo box
-
I am working with a combo box whose contents are taken from DB to populate the db. I have given in the load event to fill the combon box when page is not postbacked. But still each time the page postbacks the combobox is getting filled and so when i select a item in combo box and postback is done i always getting the first value in the combo box. i have set the enableviewstate of combo box as true Can any one tell me how to hold value in the combobox Regards Thanks in advance hari
-
I am working with a combo box whose contents are taken from DB to populate the db. I have given in the load event to fill the combon box when page is not postbacked. But still each time the page postbacks the combobox is getting filled and so when i select a item in combo box and postback is done i always getting the first value in the combo box. i have set the enableviewstate of combo box as true Can any one tell me how to hold value in the combobox Regards Thanks in advance hari
-
Do the databinding only the first time when page loads. If Not Page.IsPostBack Then DataBindings End IF
-
i have done like that only. but still its not working. Its working in locally. But fails when uploaded to server. is there anything to set in the server for this?
can you paste the code snippet here?
Regards, Sylvester G Senior Software Engineer Xoriant Solutions