Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating entry in a textbox
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01026847
Message ID:
01035694
Views:
12
Dmitry;

That is good news! Glad you took care of the issue and hope you had a good vacation. I am past due for a vacation and burnt to a crispy critter! :)

Next week our daughter goes to London for advanced studies in Shakespeare. These classes are offered by UCLA. Strange to have UCLA giving classes in England. At least it is strange to me. She was there summer of last year and loves London! I will be praying more than usual! :)


Tom


>>Dmitry;
>>
>>Have you found a solution to the problem? There is an example of something similar on page 218-226 of the O'Reilly ASP.NET Cookbook that might be of help.
>>
>>Tom
>
>Tom,
>
>Sorry for the delay in replying to your message, I was on vacation last week, away from UT. First, I don't have the book you mentioned so I can't see what they have as a solution.
>
>However, the solution to my problem ended up being the following:
>
>Since the _TextChanged() method does not return true or false and it does not stop the process of the page, I had to create a property to set On/Off.
>
>
>private bool EquipmentVerified
>{
>   get
>   {
>      object o = ViewState["EquipmentVerified"];
>      if ( o == null )
>         return false;
>      return ( bool ) o;
>   }
>   set { ViewState["EquipmentVerified"] = value; }
>}
>
>// In the TextChanged event set this bool.
>
>txtEquipment_TextChanged
>{
>   EquipmentVerified = //whether or not it is verified.
>}
>
>// In the button click, check this bool
>btnSubmit_Click
>if ( EquipmentVerified )
>{
>   //the value is valid.
>   //run insert or whatever.
>}
>
>
>The above solution (which I got on ASP.NET) works very well.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform