control state
I have a page with some textboxes that are populated from a table during the page_load process...but I have a button on the page that calls an ONclick(object sender, eventargs e) server side event to update those values, the problem is that the page_load event fires bfore the button_onclick event, thus wiping out the textbox values with the old ones in the table, then running the update call, updating the table...the the values that are already there. The only exception to that is that the dropdownlist.selectedvalue items are actually getting updated correctly in the table so i'm assuming that they retain their state on the page through the lifecycle.
SO the question is, how do I get the page to keep the values....(about 11 textboxes). I guess on postback..I can.....do something? make my loaddata a function instead of code with in the Page_load event or?
Grrr
|