Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
Losing SelectedIndex, DataValue After Postback.
posted

I am not very experienced with the WebCombo, yet. I am using NetAdvantage 2008 vol 1.

On page load, I am successfully setting the display of the WebCombo to a full name of a company by using FindByValue and the corresponding company 'code'. That is working fine.

 After postback, though, I allow the user to edit values about the company and provide an update button. They may have selected a different company or left it the same. I am finding the SelectedIndex to be -1 after the postback and the DataValue is nothing. I wanted to resolve the company 'code' so I could send it down to the business layer to do the database update.

 How can I get the WebCombo not to be affected by the postback?