u have their no need to use masked edit for this..instead of this you can use filter textbox extender
see example
<div>
<asp:scriptmanager id="ScriptManager1" runat="server" >
</asp:scriptmanager>
<asp:textbox id="TextBox1" runat="server" textmode="Password" xmlns:asp="#unknown"></asp:textbox>
<asp:filteredtextboxextender id="TextBox1_FilteredTextBoxExtender">
runat="server" Enabled="True" TargetControlID="TextBox1"
ValidChars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789">
</asp:filteredtextboxextender>
</div>
in the above example i have used ajax filtertexbox extender to filer the value as u want..
now your problem is solve
Note-
1.
Change the Textbox textmode to Password
2. set the Filter type property of filter extender to custom as i have done..
if any queries reply
thanks