Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formating TextBox
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00725586
Message ID:
00727691
Views:
26
The code I gave you for the Regular Expression was for C#. Here is the VB.NET equivalent. You should need to use all the parameters to get the expression as you want it.
cevent.Value = Regex.Replace(CStr(cevent.Value), "(\d{3})(\d{2})(\d{4})", "$1-$2-$3")
>Cathi:
>
>Before we go more further, the value was already sent to the regex.replace command before I add to the control? Maybe the Regex.replace command have problem and is sending a null value. Remember that I am sending a space(1) when I initialize the row. Also I dont know if I told you but my regex.replace command reject the (string), I have to formated with only three parameter instead of four like your example. Let me know if this is the problem.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform