Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

How to use MaskedEditExtender in textbox and label

$
0
0

hi everybody,  i have one  problem when use with  MaskedEditExtender, i want to display text on Textbox form database, (my data format is numeric(18,2))

i use with syntax but not working. 

<asp:Label ID="lblCountry1" runat="server"   Text ='<%# Eval("point","{0:#,##}") %>'></asp:Label><asp:TextBox ID="TextBox22" CssClass="form-control" Text='<%# Eval("point", "{0:#,##}") %>' Visible="false" runat="server"></asp:TextBox><ajaxToolkit:MaskedEditExtender ID="mothaiba" runat="server" TargetControlID="TextBox22" MaskType="Number" Mask="9,99" /><asp:RequiredFieldValidator ID="RequiredFieldValidator11" ControlToValidate="TextBox22" ValidationGroup="hoitm" runat="server" ErrorMessage="?"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="TextBox22"
                                                                        ErrorMessage="? " ValidationExpression="^\d+(\,\d\d)?$"></asp:RegularExpressionValidator>

i want format X,XX 

thanks in advanced


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>