1) Create MaskedEditFix.js File
(function(){try{var n=Sys.Extended.UI.MaskedEditBehavior.prototype,t=n._ExecuteNav;n._ExecuteNav=function(n){var i=n.type;i=="keydown"&&(n.type="keypress"),t.apply(this,arguments),n.type=i}}catch(i){return}})()
2) Add to .cs file
protected void Page_Init(object sender, EventArgs e)
{
if (!ClientScript.IsStartupScriptRegistered(GetType(), "MaskedEditFix"))
{
ClientScript.RegisterStartupScript(GetType(), "MaskedEditFix", String.Format("<script type='text/javascript' src='{0}'></script>", Page.ResolveUrl("../Scripts/MaskedEditFix.js")));
}
}
3) Then check
(function(){try{var n=Sys.Extended.UI.MaskedEditBehavior.prototype,t=n._ExecuteNav;n._ExecuteNav=function(n){var i=n.type;i=="keydown"&&(n.type="keypress"),t.apply(this,arguments),n.type=i}}catch(i){return}})()
2) Add to .cs file
protected void Page_Init(object sender, EventArgs e)
{
if (!ClientScript.IsStartupScriptRegistered(GetType(), "MaskedEditFix"))
{
ClientScript.RegisterStartupScript(GetType(), "MaskedEditFix", String.Format("<script type='text/javascript' src='{0}'></script>", Page.ResolveUrl("../Scripts/MaskedEditFix.js")));
}
}
3) Then check
Thank you, you solved my problem.
ReplyDeleteI love you. You are a GOD.
I hate legacy projects
Thank you so much.
ReplyDeleteits works for me.
Thank you so much.
ReplyDeleteits works for me.
Thanks
ReplyDeleteit does not work for me..could you provide the contect of MaskedEditFix.js? any steps i missed out?
ReplyDeleteyou solved my problem.
ReplyDelete