Search code examples
c#asp.netvisual-studio-2008ajaxcontroltoolkitmaskededitextender

Is it possible to use a Maskeditextender for IP Adress?


I'm using AjaxControlToolKit for an application and I'm using the MaskEditExtender on a TextBox. This TextBox will be use to get something like an IP address (I.E.: 999.999.999.999 OR 999.999.999.*).

I've no difficulty to make the first one (999.999.999.999) but how can it also allow the * instead of the 999? Is it possible?

Thanks to help me!


Solution

  • Perfect i found it! Here's my Maskeditextender.

    <cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server" ClearMaskOnLostFocus="False" ClearTextOnInvalid="True" Filtered="N'*'" Mask="999.999.999.NNN" TargetControlID="MyTextBox" />