General information
Category:
The Mere Mortals .NET Framework
Tim.
I tried something similar to this and got the value to save, however, only when I reset the bindingsource and bindingsourcemember. What I want is to have the business rule be able to associate the failure of the business rule with this control so that the error icon appears when an invalid value is entered.
Whenever, I add values for these binding properties, the textbox always reverts to zero, even in your proposed solution.
>
>If the user is entering this value you don't want reset then you need to store it in a session for instance and reset it in the page_load on postback.
>
>for instance in the button click event:
>Session["myTextboxValue"] = mmTextBox1.Text;
>
>Then in the page load test for if a postback or not and reset the value the user had,
>if (IsPostBack)
> mmTextBox1.Text = (string)Session["myTextboxValue"];
>
>I hope that helps
>Tim
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only