Hi Friends,
I am getting this below error while running the page.
"htmlfile: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."
Please help me out
Thanks in Advanced...
Regards,
Sumit
Loading
Iftikar HussainPosted Aug 6, 2013, 3:15 AM
Regards,
Iftikar
Sumit BanglorkarPosted Aug 6, 2013, 3:09 AM
I think this is compilation file...
Iftikar HussainPosted Aug 6, 2013, 2:49 AM
a._deactivate();Sys.UI.DomElement.addCssClass($get(c),j)}},_setFocus:function(a){$get("__tab_"+a.get_element().id).focus()},_header_onclick:function(b){var a=this;b.preventDefault();
Sumit BanglorkarPosted Aug 6, 2013, 2:43 AM
Iftikar HussainPosted Aug 6, 2013, 1:46 AM
a.get_element().id
Regards,
Iftikar
Sumit BanglorkarPosted Aug 6, 2013, 1:44 AM
There is no specific line shown in the error, but this is the error line...
a._deactivate();Sys.UI.DomElement.addCssClass($get(c),j)}},_setFocus:function(a){$get("__tab_"+a.get_element().id).focus()},_header_onclick:function(b){var a=this;b.preventDefault();
Iftikar HussainPosted Aug 5, 2013, 11:47 PM
Regards,
Iftikar
Sumit BanglorkarPosted Aug 5, 2013, 11:26 AM
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Employee.aspx.cs" Inherits="Employee" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
ToolTip="Emp. Code" MaxLength="12" AutoPostBack="True"
ontextchanged="TextBoxEmployeeNo_TextChanged">
MaxLength="50" Width="351px" BackColor="#FFFFB9" Font-Bold="True"
ForeColor="Brown" ReadOnly="True">Arabian Industries LLC.
Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px"
ShowGridLines="True" Width="220px"
onselectionchanged="calSelectDt_SelectionChanged">
BackColor="#FAFAD3">
onclick="ButtonLike_Click"/>
CellPadding="4" onpageindexchanging="gvEmployeeDetails_PageIndexChanging"
onrowdeleting="gvEmployeeDetails_RowDeleting"
onselectedindexchanging="gvEmployeeDetails_SelectedIndexChanging"
PageSize="5" onrowupdating="gvEmployeeDetails_RowUpdating"
DataKeyNames="EMP_NO" ToolTip="Employee Master Gridview"
ForeColor="#333333" TabIndex="32">
ToolTip="Grid View Employee Master" Width="504px"
TabIndex="21" PageSize="5" ForeColor="#333333"
onpageindexchanging="gridviewEmployee_PageIndexChanging"
onrowcommand="gridviewEmployee_RowCommand">
<%--
GroupingText="Residential Details" Width="100%">
onkeypress="return restrictQuotes(event);" ToolTip="Address1" Width="290px">
onkeypress="return restrictQuotes(event);" ToolTip="Phone" Width="120px">
onkeypress="return restrictQuotes(event);" ToolTip="Fax" Width="128px">
ToolTip="Email" Width="290px">
onkeypress="return restrictQuotes(event);" ToolTip="Address1" Width="290px">
onkeypress="return restrictQuotes(event);" ToolTip="Phone" Width="120px">
onkeypress="return restrictQuotes(event);" ToolTip="Fax" Width="125px">
ToolTip="Email" Width="290px">
onkeypress="return restrictQuotes(event);" ToolTip="Address1" Width="290px">
onkeypress="return restrictQuotes(event);" ToolTip="Phone" Width="120px">
onkeypress="return restrictQuotes(event);" ToolTip="Fax" Width="125px">
ToolTip="Email" Width="290px">
Width="100%">
Width="350px">
Width="50%">
Width="50%">
ToolTip="DOB" Width="100px" AutoPostBack="True"
ontextchanged="TextBoxDOB_TextChanged">
onclick="imbDOB_Click" ToolTip="Select DOB" Width="30px" />
onkeypress="return restrictQuotes(event);" ReadOnly="True" ToolTip="Age"
Width="50px">
ReadOnly="True" ToolTip="Years" Width="50px">
onkeypress="return restrictQuotes(event);" ReadOnly="True" ToolTip="Months"
Width="50px">
GroupingText="Nationality Details" Width="100%">
onkeypress="return restrictQuotes(event);"
ontextchanged="TextBoxNationalityCode_TextChanged" ToolTip="Nationality Code"
Width="100px">
ToolTip="Nationality Code" />
onkeypress="return restrictQuotes(event);" ReadOnly="True"
ToolTip="Nationality Desc." Width="200px">
ToolTip="Country" Width="200px">
Width="100%">
ToolTip="Educational1" Width="200px">
onkeypress="return restrictQuotes(event);" ToolTip="Educational2" Width="200px">
onkeypress="return restrictQuotes(event);" ToolTip="Technical1" Width="200px">
onkeypress="return restrictQuotes(event);" ToolTip="Technical2" Width="200px">
ontextchanged="TextBoxDivCode_TextChanged">
ReadOnly="True">
ontextchanged="TextBoxDesignation_TextChanged">
ReadOnly="True">
ontextchanged="TextBoxGradeCode_TextChanged">
ReadOnly="True">
ontextchanged="TextBoxJobCode_TextChanged">
ReadOnly="True">
ontextchanged="TextBoxLocationCode_TextChanged">
ReadOnly="True">
ontextchanged="TextBoxCatCode_TextChanged">
ReadOnly="True">
ontextchanged="TextBoxSubCatCode_TextChanged">
ReadOnly="True">
ontextchanged="TextBoxWorkDiscipline_TextChanged">
ReadOnly="True">
ontextchanged="TextBoxLSB_TextChanged">
ToolTip="LSB" Width="170px" BackColor="#FFFFB9"
ReadOnly="True">
ontextchanged="TextBoxEMC_TextChanged">
ReadOnly="True">
Width="200px" Font-Size="10pt">
Width="347px">
Width="351px">
ToolTip="Enter Confirmation Date" Width="100px"
AutoPostBack="True" ontextchanged="TextBoxDivDtConfirm_TextChanged">
onclick="imbDtConf_Click"/>
ToolTip="Enter Proposed Confirmation Date" Width="117px"
AutoPostBack="True" ontextchanged="TextBoxDivPropDtConfirm_TextChanged">
ToolTip="Select Proposed Confirmation Date" onclick="imbDtProConf_Click"/>
AutoPostBack="True" ontextchanged="TextBoxDtIncrement_TextChanged">
onclick="imbDtIncr_Click"/>
ontextchanged="TextBoxDtDueOn_TextChanged">
onclick="imbDtIncrDue_Click"/>
ontextchanged="TextBoxLastPromotion_TextChanged">
onclick="imbDtLastProm_Click"/>
AutoPostBack="True" ontextchanged="TextBoxEffectiveDate_TextChanged">
ToolTip="Select Effective Date" onclick="imbDtLastEff_Click"/>
Width="100px" />
ToolTip="Enter Last Leave" Width="85px" AutoPostBack="True"
ontextchanged="TextBoxLastLeaveDt_TextChanged">
onclick="imbDtLastLv_Click"/>
ontextchanged="TextBoxLastTicketDt_TextChanged">
onclick="imbDtLastTckt_Click"/>
ontextchanged="TextBoxLastMedicalDt_TextChanged">
onclick="imbDtLastMed_Click"/>
ToolTip="Enter Last Leave Due On" Width="85px" AutoPostBack="True"
ontextchanged="TextBoxLastLeaveDtDue_TextChanged">
onclick="imbDtLastLvDue_Click"/>
ToolTip="Enter Last Ticket Due On" Width="85px"
AutoPostBack="True" ontextchanged="TextBoxLastTicketDtDue_TextChanged">
onclick="imbDtLastTcktDue_Click"/>
ToolTip="Enter Last Medical Due On" Width="85px"
AutoPostBack="True" ontextchanged="TextBoxLastMedicalDtDue_TextChanged">
onclick="imbDtLastMedDue_Click"/>
Width="100%">
Width="299px">
Width="100%">
OnTextChanged="TextBoxPaymentCurr_TextChanged" ToolTip="Payment Currency"
Width="80px">
ToolTip="Payment Curr.">
onkeypress="return restrictQuotes(event);" ReadOnly="True"
ToolTip="Payment Desc." Width="135px">
onkeypress="return restrictQuotes(event);" style="margin-left: 15px"
ToolTip="Total Amount" Width="150px">
ToolTip="Over Time" Width="299px">
ForeColor="#333333" Height="182px" HorizontalAlign="Justify" PageSize="5"
ShowFooter="True" Width="10%" onpageindexchanging="TransOnPaging"
onrowcancelingedit="TransOnCanceling" onrowediting="TransOnEditing"
onrowupdating="TransOnUpdating">
Width="90px">
Width="90px">
OnClientClick="return confirm('Do you want to Delete...?')" Text="Delete">
onkeypress="return restrictQuotes(event);"
OnTextChanged="TextBoxEmpBank_TextChanged"
ToolTip="Employee Bank" Width="160px">
ToolTip="Emp. Bank">
ReadOnly="True" style="margin-left: 15px" ToolTip="Employee Desc."
Width="160px">
style="margin-left: 15px" ToolTip="Branch" Width="160px">
style="margin-left: 15px" ToolTip="Account Bank" Width="160px">
ToolTip="Assured/Optional" Width="200px">
onkeypress="return restrictQuotes(event);" style="margin-left: 15px"
ToolTip="Remittance Amount" Width="160px">
onkeypress="return restrictQuotes(event);"
OnTextChanged="TextBoxEmpBank1_TextChanged"
ToolTip="Employee Bank" Width="160px">
ToolTip="Emp. Bank">
onkeypress="return restrictQuotes(event);" ReadOnly="True"
style="margin-left: 15px" ToolTip="Employee Desc." Width="160px">
style="margin-left: 15px" ToolTip="Branch" Width="160px">
style="margin-left: 15px" ToolTip="Account Bank" Width="160px">
ToolTip="Assured/Optional" Width="200px">
onkeypress="return restrictQuotes(event);" style="margin-left: 15px"
ToolTip="Remittance Amount" Width="160px">
onkeypress="return restrictQuotes(event);"
OnTextChanged="TextBoxEmpBank2_TextChanged"
ToolTip="Employee Bank" Width="160px">
ToolTip="Emp. Bank">
onkeypress="return restrictQuotes(event);" ReadOnly="True"
style="margin-left: 15px" ToolTip="Employee Desc." Width="160px">
style="margin-left: 15px" ToolTip="Branch" Width="160px">
style="margin-left: 15px" ToolTip="Account Bank" Width="160px">
ToolTip="Assured/Optional" Width="200px">
onkeypress="return restrictQuotes(event);" style="margin-left: 15px"
ToolTip="Remittance Amount" Width="160px">
OnTextChanged="TextBoxCompanyBank_TextChanged" style="margin-left: 3px"
ToolTip="Company Bank" Width="239px">
OnClick="ButtonCompanyBankSearch_Click" style="margin-left: 15px" Text="Search"
ToolTip="Company Bank">
onkeypress="return restrictQuotes(event);" ReadOnly="True"
style="margin-left: 14px" ToolTip="Company Bank Desc." Width="236px">
ToolTip="SS No." Width="150px">
ToolTip="SS Basic" Width="150px">
ToolTip="Date of Allotment" Width="120px" AutoPostBack="True"
ontextchanged="TextBoxDtAllot_TextChanged">
OnClick="imbDtAllot_Click" ToolTip="Select Date of Allotment" Width="30px">
ToolTip="Date of Cancellation" Width="120px" AutoPostBack="True"
ontextchanged="TextBoxDtCancel_TextChanged">
OnClick="imbDtAllotCancel_Click" ToolTip="Select Date of Cancellation"
Width="30px">
onkeypress="return restrictQuotes(event);" ToolTip="PTW LSR Date" Width="120px">
onclick="imbDtPTWLSR_Click" ToolTip="Select PTW LSR Date" width="30px" />
onkeypress="return restrictQuotes(event);" ToolTip="Man Power On" Width="150px">
ToolTip="Profession Code" Width="150px">
ToolTip="Select LCD Issue Date" onclick="imbDtLCDIssue_Click"/>
ToolTip="Select LCD Expiry Date" onclick="imbDtLCDExp_Click"/>
onclick="imbDtICIss_Click"/>
onclick="imbDtICExp_Click"/>
onclick="imbDtVisaIss_Click"/>
onclick="imbDtVisaExp_Click"/>
ToolTip="Select Passport Issue Date" onclick="imbDtBoxPPIss_Click"/>
onclick="imbDtPPExp_Click"/>
ToolTip="Select DL Issue Date"/>
onclick="imbDtRCDIssue_Click"/>
onclick="imbDtRCDExpiry_Click"/>
onclick="imbDtRPIssue_Click"/>
onclick="imbDtRPExp_Click"/>
AutoPostBack="True" ontextchanged="TextBoxPDOGatePassExpDt_TextChanged">
ToolTip="Select Gate Pass Expiry Date" onclick="imbDtGatePassExp_Click"/>
AutoPostBack="True" ontextchanged="TextBoxPDOIssDate_TextChanged">
onclick="imbDtPDOIss_Click"/>
AutoPostBack="True" ontextchanged="TextBoxPDOExpDate_TextChanged">
onclick="imbDtGPExp_Click"/>
ReadOnly="True">
Width="150px">
Font-Size = "11pt" AllowPaging ="True" ShowFooter = "True"
PageSize = "5" CellPadding="4"
Width="10%" HorizontalAlign="Justify" Height="182px" ForeColor="#333333"
onpageindexchanging="AssetsOnPaging" onrowcancelingedit="AssetsCanceling"
onrowediting="AssetsEditing" onrowupdating="AssetsUpdating">
OnClientClick="return confirm('Do you want to Delete...?')" Text="Delete">
GroupingText="Statiuary Related" Width="99%">
AutoGenerateColumns="False" CellPadding="4" Font-Names="Arial" Font-Size="11pt"
ForeColor="#333333" Height="182px" HorizontalAlign="Justify" PageSize="5"
ShowFooter="True" Width="64%">
Width="90px">
OnClientClick="return confirm('Do you want to Delete...?')" Text="Delete">
GroupingText="Provision Related" Width="100%">
AutoGenerateColumns="False" CellPadding="4" Font-Names="Arial" Font-Size="11pt"
ForeColor="#333333" Height="182px" HorizontalAlign="Justify" PageSize="5"
ShowFooter="True" Width="64%">
Width="90px">
OnClientClick="return confirm('Do you want to Delete...?')" Text="Delete">
GroupingText="Performance Related" Width="100%">
AutoGenerateColumns="False" CellPadding="4" Font-Names="Arial" Font-Size="11pt"
ForeColor="#333333" Height="182px" HorizontalAlign="Justify" PageSize="5"
ShowFooter="True" Width="64%">
Width="90px">
OnClientClick="return confirm('Do you want to Delete...?')" Text="Delete">
Width="100%">
Font-Names="Arial" Font-Size="11pt" ForeColor="#333333" Height="182px"
HorizontalAlign="Justify" PageSize="5" ShowFooter="True" Width="64%">
Width="90px">
OnClientClick="return confirm('Do you want to Delete...?')" Text="Delete">
GroupingText="Incentive Related" Width="100%">
AutoGenerateColumns="False" CellPadding="4" Font-Names="Arial" Font-Size="11pt"
ForeColor="#333333" Height="182px" HorizontalAlign="Justify" PageSize="5"
ShowFooter="True" Width="32px">
Width="90px">
OnClientClick="return confirm('Do you want to Delete...?')" Text="Delete">
Width="100%">
Width="150px" AutoPostBack="True"
ontextchanged="TextBoxMarriageDate_TextChanged">
onclick="imbDtMarriage_Click" ToolTip="Select Marriage Anniversary Date"
width="35px" />
Width="100%">
ReadOnly="True" ToolTip="User Code" Width="150px">
ToolTip="User Name" Width="150px">
ToolTip="Select" Width="100%">
ToolTip="Accept Photograph" />
Width="120px" />
Width="120px" />
onclick="ButtonAdd_Click"/>
onclick="ButtonEdit_Click"/>
onclick="ButtonSave_Click"/>
onclick="ButtonView_Click"/>
onclick="ButtonDelete_Click"/>
onclick="ButtonClear_Click"/>
TabIndex="17"/>
BackColor="#FAFAD3" ForeColor="#3333FF">
ToolTip="First Record" TabIndex="16" onclick="ImageButtonFirst_Click"
BackColor="#FAFAD3" />
ToolTip="Previous Record" TabIndex="17" onclick="ImageButtonPrevious_Click"
BackColor="#FAFAD3" />
ToolTip="Next Record" TabIndex="18" onclick="ImageButtonNext_Click"
BackColor="#FAFAD3" />
ToolTip="Last Record" TabIndex="19" onclick="ImageButtonLast_Click"
BackColor="#FAFAD3" />
ToolTip="Export to Excel" ImageUrl="~/Images/excel.png" TabIndex="25"
onclick="ImageButtonExcel_Click" />
ToolTip="Export to PDF" ImageUrl="~/Images/pdf.jpg" TabIndex="26"
onclick="ImageButtonPDF_Click"/>
Iftikar HussainPosted Aug 5, 2013, 9:56 AM
The error message clearing saying that there is control which is either hidden or disabled and trying to set the focus. Can you share the script and aspx code?
Regards,
Iftikar