Dave_CARSIT
asked on
VB Net Web Page input mask
I`m working on a small internal web site using Visual Studio 2012, with VB web form page. Our users would like an input box mask for phone number entry. Drawing a complete blank, can someone help with Ajax extender or another idea to write a simple phone number input mask in VB?
This is what I have tried.
1. Added Scriptmanager to top off page
2. Dragged and dropped MaskedEditorExtender into textbox
3. Set Mask and Mask Type in properties box
However, I continue to get this error on page load:
Unhandled exception at line 67, column 5 in http://localhost:60760/WebForm1.aspx
0x800a138f - Microsoft JScript runtime error: Unable to get value of the property 'UI': object is null or undefined
And this line is highlighted yellow:
$create(Sys.Extended.UI.Ma skedEditBe havior, {"Century":2000,"ClientSta teFieldID" :"TextBox1 _MaskedEdi tExtender_ ClientStat e","Cultur eAMPMPlace holder":"A M;PM","Cul tureCurren cySymbolPl aceholder" :"$","Cult ureDateFor mat":"MDY" ,"CultureD atePlaceho lder":"/", "CultureDe cimalPlace holder":". ","Culture Name":"en- US","Cultu reThousand sPlacehold er":",","C ultureTime Placeholde r":":","Ma sk":"999-9 99-9999"," MaskType": 2,"id":"Te xtBox1_Mas kedEditExt ender"}, null, null, $get("TextBox1"));
This is what I have tried.
1. Added Scriptmanager to top off page
2. Dragged and dropped MaskedEditorExtender into textbox
3. Set Mask and Mask Type in properties box
However, I continue to get this error on page load:
Unhandled exception at line 67, column 5 in http://localhost:60760/WebForm1.aspx
0x800a138f - Microsoft JScript runtime error: Unable to get value of the property 'UI': object is null or undefined
And this line is highlighted yellow:
$create(Sys.Extended.UI.Ma
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
changing this worked.
< asp:ScriptManager ID="scriptMaster" runat="server"></asp:Scrip tManager>
to this:
< asp:ToolkitScriptManager ID="toolkitScriptMaster" runat="server">
< /asp:ToolkitScriptManager>
< asp:ScriptManager ID="scriptMaster" runat="server"></asp:Scrip
to this:
< asp:ToolkitScriptManager ID="toolkitScriptMaster" runat="server">
< /asp:ToolkitScriptManager>
Try configuring AJAXControlToolKit from Nuget - http://roopeshreddy.wordpress.com/2012/10/07/installingconfiguring-ajaxcontroltoolkit-through-nuget/
Once done, check this post - http://forums.asp.net/t/1216351.aspx/1
Hope it helps u...