Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmTextBox reverts back to zero
Message
 
To
25/02/2008 19:04:41
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01296241
Message ID:
01296302
Views:
6
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
Map
View

Click here to load this message in the networking platform