Last post Jun 14, 2018 05:19 AM by cnranasinghe
Jun 13, 2018 05:38 AM|sripadasatpathy|LINK
This is my Code :-
txtCellPhone.Attributes.Add("onkeypress", "return formatPhoneAndFax(event,'" + txtCellPhone.ClientID + "')")
What to do.
Give me solution soon.
Jun 13, 2018 06:51 AM|jimmy69|LINK
you validation is made with jquery ?
if yes be sure that the jquery is install on the server
Jun 14, 2018 02:43 AM|Fei Han - MSFT|LINK
Firstly, please use F12 developer tools to check the html markup for your textbox “txtCellPhone” and check if the
onkeypress event is attached to it.
Secondly, please check if there are any exceptions/errors in browser developer tools
Besides, you can debug the function formatPhoneAndFax and check if it could be called/executed as expected.
Jun 14, 2018 05:19 AM|cnranasinghe|LINK
Double check the correct element ID's are in place. If your app is Webforms app then ID might change.
Go to developer tools (Press F12 on the browser), on the Console tab, You might see few script issues. You can type on the console and test the script.