Wierd postback ... old values are back

H

Henrik B

I'm binding data to a DropDown through a DataSource. When I select item i get some values from database trough the SelectedIndexChanged. Values is shown in textboxes. I make changes to the values and press a button to update. After postback the oldvalues is back .... the new values is gone ... Is this a binding issue? State of dropdown works .. The selected item in dropdown is always shown after postback.

This is driving me nuts ....

Thanks in advance // Maw
 
K

Karl Seguin [MVP]

Sounds like you are inadvertently resetting the value somewhere. Are you sure you aren't resetting the textbox value on postback anywhere?

Karl

--
http://www.openmymind.net/



I'm binding data to a DropDown through a DataSource. When I select item i get some values from database trough the SelectedIndexChanged. Values is shown in textboxes. I make changes to the values and press a button to update. After postback the oldvalues is back .... the new values is gone ... Is this a binding issue? State of dropdown works .. The selected item in dropdown is always shown after postback.

This is driving me nuts ....

Thanks in advance // Maw
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top