I'm trying to programmatically set the property of a control on my Form AFTER I've proccessed an update command using the FormView, but it's not working.
In my example below, I have a basic FormView with only a TextBox and Label in its EditItemTemplate. The FormView uses an AccessDataSource. The TextBox is bound to the datasource, but the label is not. What I'm trying to do is update the value in the TextBox (as well as its associated data stored in the database), and then change the Text property of the Label. (*Note: that I using the label purely as an example. The point is I can't see to set any control's property after an update).
I initally thought it had something to do with the "Page.IsPostBack",
but even after trying to adjust my code for that, its still not working.
I've tried change the Text property during the Page.IsPostBack during Page_Load event. I've tried setting the Label's EnabledViewState property to True and to False. I've tried using the FormView's OnItemUpdating and OnItemUpdated events. I've tried using the DataSource's OnUpdating and OnUpdated events.
Nothing seems to work. Any suggestions?
Here's my sample code and Html:
<script language="VB" run
View Complete Post