I am facing below error on textbox keypress event(single quota validation & also for numberic validation), pls check below coding & give me solutions how to handled this error. (Using Master page)
Coding :- *.aspx
Regards,
Sumit...
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 17, 2013, 7:46 AM EDT
function SetScrollPosition()
{
......
//set the url with anchor
window.location.hash = "go-msg-local";
//set this value can disable browser auto scroll
}
Regards,
Iftikar
Sumit Banglorkar38 reputationPosted Jul 16, 2013, 9:52 PM EDT
Error as follows:-
Regards,
Sumit
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 16, 2013, 9:59 PM EDT
Try like this
onkeypress="javascript:return restrictQuotes(event)"
Regards,
Iftikar
Sumit Banglorkar38 reputationPosted Jul 17, 2013, 2:15 AM EDT
I have used urs code, but still problem not solve, facing same error...
Sumit
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 17, 2013, 2:32 AM EDT
Regards,
Iftikar
Sumit Banglorkar38 reputationPosted Jul 17, 2013, 5:42 AM EDT
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CustomerMaster.aspx.cs" Inherits="CustomerMaster" EnableEventValidation="false"%>
onkeypress="return restrictQuotes(event);" MaxLength="12"
ontextchanged="TextBoxCustCode_TextChanged">
onclick="ButtonCustCodeSearch_Click" TabIndex="2" />
MaxLength="30" ontextchanged="TextBoxShortName_TextChanged">
TabIndex="6" ToolTip="Select Status">
AccessKey="k" />
DataKeyNames="GLA_CODE" ForeColor="#333333"
onpageindexchanging="gvAccount_PageIndexChanging" PageSize="5"
ToolTip="Account Group Gridview"
onrowcommand="gvAccount_RowCommand" Width="462px">
style="margin-left: 1px" Width="537px"
PageSize="5"
ToolTip="Grid View Customer Master" TabIndex="21"
DataKeyNames="SUB_CODE" ForeColor="#333333"
onpageindexchanging="gvCustomer_PageIndexChanging"
onrowdatabound="gvCustomer_RowDataBound" onrowdeleting="gvCustomer_RowDeleting"
onrowupdating="gvCustomer_RowUpdating"
onselectedindexchanging="gvCustomer_SelectedIndexChanging">
<%--
ImageUrl="~/Images/excel.png" TabIndex="22" />
ImageUrl="~/Images/pdf.jpg" TabIndex="23" />
MaxLength="12" ontextchanged="TextBoxAccountCode_TextChanged">
onclick="ButtonCACode_Click" TabIndex="8" />
ForeColor="Maroon">
Width="110px">
Width="110px">
style="text-align:right; margin-left: 0px;">
Width="162px" MaxLength="50">
onkeypress="return validate(event);" MaxLength="30">
style="margin-left: 0px" width="162px" MaxLength="50">
TabIndex="16" width="187px" MaxLength="15">
style="margin-left: 0px" width="187px" MaxLength="25">
style="margin-top: 0px" Height="10%" Visible="False">
ToolTip="User Details" style="margin-left: 8px">
BackColor="#FAFAD3">
AccessKey="a" />
onclick="ButtonEdit_Click" AccessKey="e" />
onclick="ButtonSave_Click" AccessKey="s" />
onclick="ButtonCancel_Click" AccessKey="l" />
AccessKey="v" />
onclick="ButtonDelete_Click" AccessKey="t" />
onclick="ButtonClear_Click" AccessKey="c" />
onclick="ButtonExit_Click" AccessKey="x" />
BackColor="#FAFAD3" >
ToolTip="First Record" TabIndex="30"
BackColor="#FAFAD3" onclick="ImageButtonFirst_Click" />
ToolTip="Previous Record" TabIndex="31"
BackColor="#FAFAD3" onclick="ImageButtonPrev_Click" />
ToolTip="Next Record" TabIndex="32"
BackColor="#FAFAD3" onclick="ImageButtonNext_Click" />
ToolTip="Last Record" TabIndex="33"
BackColor="#FAFAD3" onclick="ImageButtonLast_Click" />
ImageUrl="~/Images/excel.png" TabIndex="34"
onclick="ImageButtonExcel_Click" >
ImageUrl="~/Images/pdf.jpg" TabIndex="35" onclick="ImageButtonPDF_Click" >
Sumit Banglorkar38 reputationPosted Jul 17, 2013, 9:02 PM EDT
After removing dot line from js, the problem is solved for me. Thank u very much..
Sumit