Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inputmask for mmTextbox
Message
From
27/07/2010 09:13:14
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01473906
Message ID:
01474119
Views:
33
Hi Dan,

have you (or anyone else here) used this before? I have followed the instructions in the tutorial to add it to the Toolbox, then I dragged it into my aspx page and it showed up like this:
<mm:mmTextBox ID="txtSumAssured" runat="server" BindingSource="Policy" BindingSourceMember="SumAssured"
    Width="79px" AutoPostBack="True" OnTextChanged="txtSumAssured_TextChanged"></mm:mmTextBox>
<asp:MaskedEditExtender ID="txtSumAssuredEditExtender" runat="server" TargetControlID="txtSumAssured"
    Mask="9,999,999.99" MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus"
    OnInvalidCssClass="MaskedEditError" MaskType="Number" InputDirection="RightToLeft"
    AcceptNegative="Left" DisplayMoney="Left" ErrorTooltipEnabled="True">
</asp:MaskedEditExtender>
But this doesn't seem to do anything.

At the top of the page this code got added:
< % @ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" % >
Any idea what I need to do to get this to work?

>Frank,
>
>I don't think you can mask the Web controls in the way that you want. You might be able to do it with AJAX. Check out - http://www.asp.net/ajaxlibrary/act.ashx and the MaskedEdit extender.
>
>-Dan
>
>
>>>Frank,
>>>
>>>Check out Appendix D in the Developer's Guide.
>>>
>>>-Dan
>>
>>Thanks Dan,
>>
>>I'm afraid that has me a bit confused. It refers to mmTextBox.Format property which I cannot find on my textboxes. I do have a DisplayFormat property, which Itried setting like this:
>>
>>
<mm:mmTextBox ID="txtPremium" runat="server" BindingSource="Policy" BindingSourceMember="Premium"
>>                                Width="79px" DisplayFormat="N2"></mm:mmTextBox>
>>
>>Can you give me an example of what I need to do, please? Just in case the code above didn't tell you, this is an ASP.NET project.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform