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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Jul 17, 2013, 11:46 AM
function SetScrollPosition()
{
......
//set the url with anchor
window.location.hash = "go-msg-local";
//set this value can disable browser auto scroll
}
Regards,
Iftikar
Sumit BanglorkarPosted Jul 18, 2013, 1:02 AM
After removing dot line from js, the problem is solved for me. Thank u very much..
Sumit
Sumit BanglorkarPosted Jul 17, 2013, 9:42 AM
<%@ 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" >
Iftikar HussainPosted Jul 17, 2013, 6:32 AM
Regards,
Iftikar
Sumit BanglorkarPosted Jul 17, 2013, 6:15 AM
I have used urs code, but still problem not solve, facing same error...
Sumit
Iftikar HussainPosted Jul 17, 2013, 1:59 AM
Try like this
onkeypress="javascript:return restrictQuotes(event)"
Regards,
Iftikar
Sumit BanglorkarPosted Jul 17, 2013, 1:52 AM
Error as follows:-
Regards,
Sumit