From the information provided it's difficult to tell why your website is running slowly. If you could give us more information on how the website is designed and hosted, we may be able to give you more help. There are two things I would suggest you look at, though.
1- Are you using a database, and how is it set up? If the tables are large, do you have the needed indexes? Database performance is usually a big killer of website performance.
2- Enabling tracing will help you narrow down what method calls are running slowly in your web forms. If you are not familiar with using tracing, a good tutorial can be found here:http://www.asp101.com/articles/robert/tracing/default.asp
If neither of these options solves you problem, give us a few more details, and we'll see what else we can figure out.
Good luck!
Hi Benners_J
thanx for the response..
Yes we are using the SQL SERVER as our backend with indexes and triggers ..
This is my one of my aspx code page
<%@. Page Language="C#" AutoEventWireup="true" CodeFile="employee.aspx.cs" Inherits="employee" %
<%@. Register src="http://pics.10026.com/?src=/controls/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@. Register src="http://pics.10026.com/?src=/controls/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<%@. Register src="http://pics.10026.com/?src=/controls/hr/employeeheader.ascx" TagName="employee" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>:: PIMS :</title>
<link href="http://links.10026.com/?link=/style/main.css" rel="stylesheet" type="text/css" />
<link href="http://links.10026.com/?link=/Scripts/calendar/popcalendar.css" type="text/css" rel="stylesheet" /
<script language="javascript" type="text/javascript" src="http://pics.10026.com/?src=/Scripts/calendar/popcalendar.js"></script
<script language="javascript" type="text/javascript" src="http://pics.10026.com/?src=Scripts/validate.js"></script
<script language="javascript" type="text/javascript">
function validateForIntNum()
{
var keyCode=event.keyCode?event.keyCode:event.which?event.which:event.charCode;
if ((keyCode>=48 && keyCode<=57) || keyCode==46)
return true;
else
return false;
}
function confirmMsg(frm)
{
// loop through all elements
for (i = 0; i < frm.length; i++)
{
// Look for our checkboxes only
if (frm.elements[i].name.indexOf("chkEmployeeCode") != - 1)
{
// If any are checked then confirm alert, otherwise nothing happens
if (frm.elements[i].checked)
return confirm('This Selection may delete related data. Are you sure you want to delete your selection(s)?')
}
}
}
function validateEmployee()
{
if (document.getElementById("<%=txtEmployeeFirstName.ClientID%>").value=="")
{
document.getElementById("txtEmployeeFirstNameVal").innerHTML="*";
document.getElementById("<%=txtEmployeeFirstName.ClientID%>").focus();
return false;
}
else
{
document.getElementById("txtEmployeeFirstNameVal").innerHTML="";
}
if(document.getElementById("<%=txtEmail.ClientID %>").value=="")
{
document.getElementById("txtEmailVal").innerHTML="*";
document.getElementById("<%=txtEmail.ClientID %>").focus();
return false;
}
else
{
document.getElementById("txtEmailVal").innerHTML="";
}
//var emailPat = /^(\".*\"|[A-Za-z]\w*)@.(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/;
var emailPat = /^([\w-]+(?:\.[\w-]+)*)@.((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
var emailid=document.getElementById("<%=txtEmail.ClientID %>").value;
var matchArray = emailid.match(emailPat);
if (matchArray == null)
{
document.getElementById("txtEmailVal").innerHTML="Your email address seems incorrect. Please try again.";
document.getElementById("<%=txtEmail.ClientID %>").focus();
return false;
}
else
{
document.getElementById("txtEmailVal").innerHTML="";
}
if (document.getElementById("<%=txtJoiningDate.ClientID%>").value=="")
{
document.getElementById("txtJoiningDateVal").innerHTML="*";
document.getElementById("<%=txtJoiningDate.ClientID%>").focus();
return false;
}
else
{
document.getElementById("txtJoiningDateVal").innerHTML="";
}
if (document.getElementById("<%=txtUserName.ClientID%>").value=="")
{
document.getElementById("txtUserNameVal").innerHTML="*";
document.getElementById("<%=txtUserName.ClientID%>").focus();
return false;
}
else
{
document.getElementById("txtUserNameVal").innerHTML="";
}
if (document.getElementById("<%=txtPassword.ClientID%>").value=="")
{
document.getElementById("lblPasswordVal").innerHTML="*";
document.getElementById("<%=txtPassword.ClientID%>").focus();
return false;
}
else
{
document.getElementById("lblPasswordVal").innerHTML="";
}
if (document.getElementById("<%=txtConfirmPassword.ClientID%>").value=="")
{
document.getElementById("lblConfirmPasswordVal").innerHTML="*";
document.getElementById("<%=txtConfirmPassword.ClientID%>").focus();
return false;
}
else
{
document.getElementById("lblConfirmPasswordVal").innerHTML="";
}
if (document.getElementById("<%=txtConfirmPassword.ClientID%>").value != document.getElementById("<%=txtPassword.ClientID%>").value)
{
document.getElementById("<%=txtPassword.ClientID%>").value ="";
document.getElementById("<%=txtConfirmPassword.ClientID%>").value ="";
document.getElementById("<%=txtPassword.ClientID%>").focus();
alert("Password typed do not match.Please Re-enter your Passwords.");
return false;
}
return true;
}
</script
</head>
<body>
<form id="form1" runat="server">
<ajax:ScriptManager ID="sEmployee" runat="server" EnablePartialRendering="true">
</ajax:ScriptManager>
<div>
<uc1:header ID="hdrEmployee" runat="Server" Select="HR" />
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<uc3:employee ID="hdrInnerEmployee" runat="Server" SelectEmployee="Employee List" />
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td align="right">
<br />
<ajax:UpdateProgress ID="uppNewEmployee" runat="server" AssociatedUpdatePanelID="uppnlNewEmployee">
<ProgressTemplate>
<img src="http://pics.10026.com/?src=/images/ajax-loader.gif" alt="Loading" />
Processing...
</ProgressTemplate>
</ajax:UpdateProgress>
</td>
</tr>
<tr>
<td>
<ajax:UpdatePanel ID="uppnlNewEmployee" runat="Server" UpdateMode="Conditional">
<ContentTemplate>
<center>
<asp:Label ID="lblInformation" runat="server" ForeColor="Red" Visible="false">
</asp:Label>
</center>
<asp:Panel ID="pnlEmployee" runat="server" Width="100%" Visible="false">
<table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="top_bar_deactive1_bg">
</td>
<td>
<img src="http://pics.10026.com/?src=/images/inactive_spacer_1a.gif" alt="spacer" /></td>
<td nowrap="nowrap" class="top_bar_inactive1">
<asp:Label ID="lblEmployeeMode" runat="server"></asp:Label>
</td>
<td class="top_bar_deactive1_bg">
<img alt="spacer" src="http://pics.10026.com/?src=/images/inactive_spacer_1c.gif" /></td>
<td class="top_bar_deactive1_bg" align="right" style="width: 100%">
<a style="color: Red">* </a>Denotes mandatory fields
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="10" cellspacing="0" class="table_crm">
<tr>
<td>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="table1">
<tr>
<td>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 15%">
<b>Employee Group :</b></td>
<td align="left" style="width: 15%">
<asp:Label ID="lblEmployeeCode" runat="server" ForeColor="#C6120F" Visible="false"></asp:Label>
</td>
<td align="right" style="width: 15%">
<asp:CheckBox ID="chkIsActive" runat="server" Text="Active" />
</td>
</tr>
<tr>
<td colspan="3" style="width: 100%">
<%-- <b>Employee Group :</b>--%>
<table width="99%" border="0" cellpadding="0" cellspacing="1" class="table2">
<tr class="dark_bg">
<td>
<asp:Panel ID="pnlPIMSGroup" runat="server">
</asp:Panel>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<b>Personal Details :</b>
<table width="98%" border="0" cellpadding="0" cellspacing="1" class="table2">
<tr class="dark_bg">
<td nowrap="nowrap">
Employee First Name :<a style="color: Red">*</a>
</td>
<td>
<asp:TextBox ID="txtEmployeeFirstName" runat="server" CssClass="input" TabIndex="1"></asp:TextBox>
<label id="txtEmployeeFirstNameVal" style="color: Red">
</label>
</td>
</tr>
<tr class="light_bg">
<td nowrap="nowrap">
Employee Last Name :
</td>
<td>
<asp:TextBox ID="txtEmployeeLastName" runat="server" CssClass="input" TabIndex="2"></asp:TextBox>
</td>
</tr>
<tr class="dark_bg">
<td>
Address :</td>
<td>
<asp:TextBox ID="txtAddress" runat="server" CssClass="input_area" TextMode="MultiLine"
TabIndex="3" Height="40px"></asp:TextBox>
</td>
</tr>
<tr class="light_bg">
<td>
Country :
</td>
<td>
<asp:DropDownList ID="ddlCountry" runat="server" CssClass="input" TabIndex="4" AutoPostBack="True"
OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged">
<asp:ListItem Text="Select" Selected="True" Enabled="true"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr class="dark_bg">
<td>
State :
</td>
<td>
<asp:TextBox ID="txtState" runat="server" CssClass="input" TabIndex="5"></asp:TextBox>
<asp:DropDownList ID="ddlState" runat="server" Width="140px" Visible="False" TabIndex="5"
CssClass="input">
</asp:DropDownList>
</td>
</tr>
<tr class="light_bg">
<td>
Zip :</td>
<td>
<asp:TextBox ID="txtZip" runat="server" CssClass="input" TabIndex="6"></asp:TextBox>
</td>
</tr>
<tr class="dark_bg">
<td>
Email :<a style="color: Red">*</a>
</td>
<td>
<asp:TextBox ID="txtEmail" runat="server" CssClass="input" TabIndex="7"></asp:TextBox>
<%--<asp:RequiredFieldValidator ID="rfvtxtEmail" runat="server" ControlToValidate="txtEmail"
ErrorMessage="*" SetFocusOnError="true" Display="Dynamic" EnableClientScript="false">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="revtxtEmail" runat="server" ErrorMessage="Email seems to be incorrect"
ValidationExpression="\w+([-+.']\w+)*@.\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail"
EnableClientScript="false" Display="Dynamic">
</asp:RegularExpressionValidator>--%>
<label id="txtEmailVal" style="color: Red">
</label>
</td>
</tr>
<tr class="light_bg">
<td>
Mobile Number :</td>
<td>
<asp:TextBox ID="txtMobileNumber" runat="server" CssClass="input" TabIndex="8"></asp:TextBox>
</td>
</tr>
<tr class="dark_bg">
<td>
Telephone :</td>
<td>
<asp:TextBox ID="txtTelephone" runat="server" CssClass="input" TabIndex="9"></asp:TextBox>
</td>
</tr>
<tr class="light_bg">
<td>
Date Of Birth :
</td>
<td>
<table cellspacing="0">
<tr>
<td>
<asp:TextBox ID="txtDateOfBirth" runat="server" CssClass="input" TabIndex="10" onBlur="if(isValidDate(this.value,'dd/mm/yyyy')==false){this.focus()}"></asp:TextBox>
<asp:Image ID="imgCalendarDateOfBirth" TabIndex="11" runat="server" ImageUrl="/Scripts/calendar/jscalendar.gif"
ImageAlign="AbsMiddle"></asp:Image>
</td>
</tr>
</table>
</td>
</tr>
<tr class="dark_bg">
<td>
Marriage Anniversary :
</td>
<td>
<table cellspacing="0">
<tr>
<td>
<asp:TextBox ID="txtMarriageAnniversary" runat="server" CssClass="input" TabIndex="12"
onBlur="if(isValidDate(this.value,'dd/mm/yyyy')==false){this.focus()}"></asp:TextBox>
<asp:Image ID="imgCalendarMarriageAnniversary" TabIndex="13" runat="server" ImageUrl="/Scripts/calendar/jscalendar.gif"
ImageAlign="AbsMiddle"></asp:Image>
</td>
</tr>
</table>
</td>
</tr>
<tr class="light_bg">
<td>
Upload Image :</td>
<td>
<asp:FileUpload ID="fuplEmployeeImage" runat="server" CssClass="input_Attachment"
TabIndex="14" />
</td>
</tr>
</table>
</td>
<td style="width: 50%">
<b>Official Details :</b>
<table width="98%" border="0" cellpadding="0" cellspacing="1" class="table2" id="tblOfficeDetails"
runat="server">
<tr class="dark_bg">
<td>
Employee Type :
</td>
<td>
<asp:DropDownList ID="ddlEmployeeType" runat="server" CssClass="input" TabIndex="15">
</asp:DropDownList>
<%-- <asp:CompareValidator ID="cvddlEmployeeType" Display="Dynamic" ErrorMessage="Select correct value"
ValueToCompare="Select" SetFocusOnError="true" ControlToValidate="ddlEmployeeType"
runat="server" Operator="NotEqual" EnableClientScript="false"></asp:CompareValidator>--%>
</td>
</tr>
<tr class="light_bg">
<td>
Department :
</td>
<td>
<asp:DropDownList ID="ddlDepartment" runat="server" CssClass="input" TabIndex="16"
OnSelectedIndexChanged="ddlDepartment_SelectedIndexChanged" AutoPostBack="true">
</asp:DropDownList>
<%--<asp:CompareValidator ID="cvddlDepartment" Display="Dynamic" ErrorMessage="Select correct value"
ValueToCompare="Select" SetFocusOnError="true" ControlToValidate="ddlDepartment"
runat="server" Operator="NotEqual" EnableClientScript="false"></asp:CompareValidator>--%>
</td>
</tr>
<tr class="dark_bg">
<td>
Unit Name:
</td>
<td>
<asp:DropDownList ID="ddlDepartmentUnit" runat="server" CssClass="input" TabIndex="17">
</asp:DropDownList>
<%--<asp:CompareValidator ID="cvddlDepartment" Display="Dynamic" ErrorMessage="Select correct value"
ValueToCompare="Select" SetFocusOnError="true" ControlToValidate="ddlDepartment"
runat="server" Operator="NotEqual" EnableClientScript="false"></asp:CompareValidator>--%>
</td>
</tr>
<tr class="light_bg">
<td>
Designation :
</td>
<td>
<asp:DropDownList ID="ddlDesignation" runat="server" CssClass="input" TabIndex="18">
</asp:DropDownList>
<%-- <asp:CompareValidator ID="cvddlDesignation" Display="Dynamic" ErrorMessage="Select correct value"
ValueToCompare="Select" SetFocusOnError="true" ControlToValidate="ddlDesignation"
runat="server" Operator="NotEqual" EnableClientScript="false"></asp:CompareValidator>--%>
</td>
</tr>
<tr class="dark_bg">
<td nowrap="nowrap">
Branch Name :
</td>
<td>
<asp:DropDownList ID="ddlBranchName" runat="server" CssClass="input" TabIndex="19">
</asp:DropDownList>
<%--<asp:CompareValidator ID="cvddlBranchName" Display="Dynamic" ErrorMessage="Select correct value"
ValueToCompare="Select" SetFocusOnError="true" ControlToValidate="ddlBranchName"
runat="server" Operator="NotEqual" EnableClientScript="false"></asp:CompareValidator>--%>
</td>
</tr>
<tr class="light_bg">
<td>
Reporting To :
</td>
<td>
<asp:DropDownList ID="ddlReportingTo" runat="server" CssClass="input" TabIndex="20">
</asp:DropDownList>
<%--<asp:CompareValidator ID="cvddlReportingTo" Display="Dynamic" ErrorMessage="Select correct value"
ValueToCompare="Select" SetFocusOnError="true" ControlToValidate="ddlReportingTo"
runat="server" Operator="NotEqual" EnableClientScript="false"></asp:CompareValidator>--%>
</td>
</tr>
<tr class="dark_bg">
<td>
Joining Date :<a style="color: Red">*</a>
</td>
<td>
<table cellspacing="0">
<tr>
<td>
<asp:TextBox ID="txtJoiningDate" runat="server" CssClass="input" TabIndex="21" onBlur="if(isValidDate(this.value,'dd/mm/yyyy')==false){this.focus()}"></asp:TextBox>
<asp:Image ID="imgCalendarJoiningDate" TabIndex="22" runat="server" ImageUrl="/Scripts/calendar/jscalendar.gif"
ImageAlign="AbsMiddle"></asp:Image>
<label id="txtJoiningDateVal" style="color: Red">
</label>
</td>
</tr>
</table>
</td>
</tr>
<tr class="light_bg">
<td>
Termination Date :
</td>
<td>
<table cellspacing="0">
<tr>
<td>
<asp:TextBox ID="txtTerminationDate" runat="server" CssClass="input" TabIndex="23"
onBlur="if(isValidDate(this.value,'dd/mm/yyyy')==false){this.focus()}"></asp:TextBox>
<asp:Image ID="imgCalendarTerminationDate" TabIndex="24" runat="server" ImageUrl="/Scripts/calendar/jscalendar.gif"
ImageAlign="AbsMiddle"></asp:Image>
</td>
</tr>
</table>
</td>
</tr>
<tr class="dark_bg">
<td>
Employee Leave :
</td>
<td>
<asp:TextBox ID="txtEmployeeLeave" runat="server" CssClass="input" TabIndex="25"></asp:TextBox>
</td>
</tr>
<tr class="light_bg" id="trResponsible" runat="server">
<td nowrap="nowrap">
Responsible For Course Module :
</td>
<td>
<asp:TextBox ID="txtResponsibleCourse" runat="server" CssClass="input" TabIndex="26"></asp:TextBox>
</td>
</tr>
<tr class="light_bg" id="trUsername" runat="server">
<td>
User Name :<a style="color: Red">*</a>
</td>
<td>
<asp:TextBox ID="txtUserName" runat="server" CssClass="input" TabIndex="27"></asp:TextBox>
<%--<asp:RequiredFieldValidator ID="rfvtxtUserName" runat="server" ControlToValidate="txtUserName"
ErrorMessage="*" SetFocusOnError="true" Display="Dynamic" EnableClientScript="false">
</asp:RequiredFieldValidator>--%>
<label id="txtUserNameVal" style="color: Red">
</label>
</td>
</tr>
<tr class="dark_bg" id="trPassword" runat="server">
<td>
Password :<a style="color: Red">*</a>
</td>
<td>
<asp:TextBox ID="txtPassword" runat="server" CssClass="input" TabIndex="28" TextMode="Password"></asp:TextBox>
<%--<asp:RequiredFieldValidator ID="rfvtxtPassword" runat="server" ControlToValidate="txtPassword"
ErrorMessage="*" SetFocusOnError="true" Display="Dynamic" EnableClientScript="false">
</asp:RequiredFieldValidator>--%>
<label id="lblPasswordVal" style="color: Red">
</label>
</td>
</tr>
<tr class="light_bg" id="trConfirmPassword" runat="server">
<td nowrap="nowrap" style="width: 35%">
Confirm Password :<a style="color: Red">*</a>
</td>
<td>
<asp:TextBox ID="txtConfirmPassword" runat="server" CssClass="input" TabIndex="29"
TextMode="Password"></asp:TextBox>
<%--<asp:RequiredFieldValidator ID="rfvtxtConfirmPassword" runat="server" ControlToValidate="txtConfirmPassword"
ErrorMessage="*" SetFocusOnError="true" Display="Dynamic" EnableClientScript="false">
</asp:RequiredFieldValidator>
<asp:CompareValidator ID="cvtxtConfirmPassword" runat="server" ControlToCompare="txtPassword"
ControlToValidate="txtConfirmPassword" Type="String" Operator="Equal" ErrorMessage="Password typed do not match.Please Re-enter your Passwords."
Display="Dynamic" EnableClientScript="false">
</asp:CompareValidator>--%>
<label id="lblConfirmPasswordVal" style="color: Red">
</label>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%">
<b>PayRoll Details :</b>
<table width="98%" border="0" cellpadding="0" cellspacing="1" class="table2" style="height: 85px">
<tr class="dark_bg">
<td nowrap="nowrap" style="width: 26%">
Pay Frequency :</td>
<td>
<asp:DropDownList ID="ddlPayFrequency" runat="server" CssClass="input" TabIndex="30">
<asp:ListItem Text="Select" Value="Select" Selected="true"></asp:ListItem>
<asp:ListItem Text="Monthly" Value="Monthly"></asp:ListItem>
<asp:ListItem Text="Semi Monthly" Value="Semi Monthly"></asp:ListItem>
<asp:ListItem Text="Fortnight" Value="Fortnight"></asp:ListItem>
<asp:ListItem Text="Weekly" Value="Weekly"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr class="light_bg">
<td>
Pay Basic :</td>
<td>
<asp:DropDownList ID="ddlPayBasic" runat="server" CssClass="input" TabIndex="31">
<asp:ListItem Text="Select" Value="Select" Selected="true"></asp:ListItem>
<asp:ListItem Text="Salary" Value="Salary"></asp:ListItem>
<asp:ListItem Text="HourlyRate" Value="HourlyRate"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>
</td>
<td>
<b></b>
<table width="98%" border="0" cellpadding="0" cellspacing="1" class="table2">
<tr class="dark_bg">
<td style="width: 35%">
Salary :
</td>
<td>
<asp:TextBox ID="txtSalary" runat="server" CssClass="input" TabIndex="32"></asp:TextBox>
</td>
</tr>
<tr class="light_bg">
<td nowrap="nowrap">
Annual Salary :</td>
<td>
<asp:TextBox ID="txtAnnualSalary" runat="server" CssClass="input" TabIndex="33"></asp:TextBox>
</td>
</tr>
<tr class="dark_bg">
<td>
Tax File Number :
</td>
<td>
<asp:TextBox ID="txtTaxFileNumber" runat="server" CssClass="input" TabIndex="34"></asp:TextBox>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 50%">
<b>Bank Details :</b>
<table width="98%" border="0" cellpadding="0" cellspacing="1" class="table2">
<tr class="dark_bg">
<td nowrap="nowrap" style="width: 26%">
Account Name :</td>
<td>
<asp:TextBox ID="txtAccountName" runat="server" CssClass="input" TabIndex="35"></asp:TextBox>
</td>
</tr>
<tr class="light_bg">
<td>
Bank Name :</td>
<td>
<asp:TextBox ID="txtBankName" runat="server" CssClass="input" TabIndex="36"></asp:TextBox>
</td>
</tr>
<tr class="dark_bg">
<td>
Bank Address :</td>
<td>
<asp:TextBox ID="txtBankAddress" runat="server" CssClass="input_area" TabIndex="37"
TextMode="MultiLine"></asp:TextBox>
</td>
</tr>
</table>
</td>
<td>
<b></b>
<table width="98%" border="0" cellpadding="0" cellspacing="1" class="table2" style="height: 100px">
<tr class="dark_bg">
<td nowrap="nowrap" style="width: 35%">
Branch Name :</td>
<td>
<asp:TextBox ID="txtBranchName" runat="server" CssClass="input" TabIndex="38"></asp:TextBox>
</td>
</tr>
<tr class="light_bg">
<td nowrap="nowrap">
Account Number :</td>
<td>
<asp:TextBox ID="txtAccountNumber" runat="server" CssClass="input" TabIndex="39"></asp:TextBox>
</td>
</tr>
<tr class="dark_bg">
<td>
Sort Code :
</td>
<td>
<asp:TextBox ID="txtSortCode" runat="server" CssClass="input" TabIndex="40"></asp:TextBox>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
</td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="right" style="width: 49%">
<asp:ImageButton ID="imgbtnSave" runat="server" CommandName="Save" ImageUrl="/images/icons/save.gif"
OnClick="imgbtnSave_Click" OnClientClick="return validateEmployee()" TabIndex="41">
</asp:ImageButton></td>
<td align="left">
<asp:ImageButton ID="imgbtnCancel" runat="server" CommandName="Cancel" ImageUrl="/images/icons/cancel.gif"
OnClick="imgbtnCancel_Click" ImageAlign="Middle" TabIndex="42"></asp:ImageButton> </td>
</tr>
</table>
</td>
</tr>
</table>
<br />
</asp:Panel>
</ContentTemplate>
<Triggers>
<ajax:PostBackTrigger ControlID="imgbtnNew" />
<ajax:PostBackTrigger ControlID="gvemployee" />
<ajax:AsyncPostBackTrigger ControlID="imgbtnDelete" />
</Triggers>
</ajax:UpdatePanel>
</td>
</tr>
<tr>
<td align="right">
<ajax:UpdateProgress ID="uppSearchEmployee" runat="server" AssociatedUpdatePanelID="uppnlSearchEmployee">
<ProgressTemplate>
<img src="http://pics.10026.com/?src=/images/ajax-loader.gif" alt="Loading" />
Processing...
</ProgressTemplate>
</ajax:UpdateProgress>
</td>
</tr>
<tr>
<td>
<ajax:UpdatePanel ID="uppnlSearchEmployee" runat="Server" UpdateMode="Conditional">
<ContentTemplate>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="top_bar_deactive1_bg">
</td>
<td>
<img src="http://pics.10026.com/?src=images/inactive_spacer_1a.gif" alt="spacer" width="8" height="26" /></td>
<td nowrap="nowrap" class="top_bar_inactive1">
Employee List</td>
<td class="top_bar_deactive1_bg" width="100%">
<img alt="spacer" height="25" src="http://pics.10026.com/?src=images/inactive_spacer_1c.gif" /></td>
<td class="top_bar_deactive1_bg" align="right" runat="server" id="tdCollapse">
<asp:ImageButton ID="imgbtnCollapse" runat="server" CommandName="Collapse" ImageUrl="/images/icons/up_arrow.gif"
OnClick="imgbtnCollapse_Click"></asp:ImageButton>
</td>
<td class="top_bar_deactive1_bg" align="right" id="tdExpend" runat="server" visible="false">
<asp:ImageButton ID="imgbtnExpend" runat="server" CommandName="Expend" ImageUrl="/images/icons/down_arrow.gif"
OnClick="imgbtnExpend_Click"></asp:ImageButton></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_crm">
<tr>
<td>
<asp:Panel ID="pnlSearchCollapse" runat="server">
<br />
<asp:Panel ID="pnlBasicSearch" runat="server" DefaultButton="imgbtnBasicSearch">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="top_bar_deactive1_crm_bg">
</td>
<td>
<img src="http://pics.10026.com/?src=images/inactive_spacer_1a.gif" alt="spacer" width="8" height="25" /></td>
<td nowrap="nowrap" class="top_bar_inactive1">
Basic Search</td>
<td nowrap="nowrap" class="top_bar_deactive1_crm_bg">
<img src="http://pics.10026.com/?src=images/inactive_spacer_1b.gif" alt="spacer" width="6" height="25" /></td>
<td nowrap="nowrap" class="top_bar_deactive1_crm">
<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" class="top_deactive_link1" onserverclick="AdvanceSearchEmployee_Click"
runat="Server" id="hrfAdvanceSearch">Advance Search</a></td>
<td class="top_bar_deactive1_crm_bg">
<img src="http://pics.10026.com/?src=images/deactive_spacer_1b.gif" alt="spacer" width="8" height="25" /></td>
<td width="100%" class="top_bar_deactive1_crm_bg">
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="10" cellspacing="0" class="table_crm">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap="nowrap">
Employee Code
</td>
<td>
<asp:TextBox ID="txtBasicSearchEmployeeCode" runat="server" CssClass="input">
</asp:TextBox>
</td>
<td nowrap="nowrap">
First Name
</td>
<td>
<asp:TextBox ID="txtBasicSearchEmployeeFName" runat="server" CssClass="input">
</asp:TextBox></td>
<td nowrap="nowrap">
Employee Type
</td>
<td>
<asp:TextBox ID="txtBasicSearchEmployeeType" runat="server" CssClass="input">
</asp:TextBox></td>
<td nowrap="nowrap">
Designation</td>
<td>
<asp:TextBox ID="txtBasicSearchEmployeeDesignation" runat="server" CssClass="input">
</asp:TextBox></td>
</tr>
</table>
<br />
<asp:ImageButton ID="imgbtnBasicSearch" runat="Server" CommandName="Search" Width="68"
Height="21" OnClick="imgbtnBasicSearch_Click" ImageUrl="/images/icons/search.gif" />
<asp:ImageButton ID="imgbtnBasicClear" runat="Server" CommandName="Clear" Width="68"
Height="21" ImageUrl="/images/icons/clear.gif" OnClick="imgbtnBasicClear_Click" />
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="pnlAdvanceSearch" runat="Server" Visible="false" DefaultButton="imgbtnAdvanceSearch">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="top_bar_deactive1_bg">
</td>
<td class="top_bar_deactive1_bg">
<img src="http://pics.10026.com/?src=images/deactive_spacer_1a.gif" alt="spacer" width="1" height="25" /></td>
<td nowrap="nowrap" class="top_bar_deactive1">
<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" class="top_inactive_link1" onserverclick="BasicSearchEmployee_Click"
runat="Server" id="hrfBasicSearch">Basic Search</a></td>
<td class="top_bar_deactive1_bg">
<img src="http://pics.10026.com/?src=images/inactive_spacer_1d.gif" alt="spacer" width="13" height="25" /></td>
<td>
<img src="http://pics.10026.com/?src=images/inactive_spacer_1a.gif" alt="spacer" width="8" height="25" /></td>
<td nowrap="nowrap" class="top_bar_inactive1">
Advanced Search</td>
<td class="top_bar_deactive1_bg">
<img src="http://pics.10026.com/?src=images/inactive_spacer_1c.gif" alt="spacer" width="2" height="25" /></td>
<td width="100%" class="top_bar_deactive1_bg">
</td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="10" cellspacing="0" class="table_crm">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap="nowrap">
First Name
</td>
<td>
<asp:TextBox ID="txtAdvanceSearchFirstName" runat="server" CssClass="input">
</asp:TextBox>
</td>
<td nowrap="nowrap">
Department
</td>
<td>
<asp:TextBox ID="txtAdvanceSearchDepartment" runat="server" CssClass="input">
</asp:TextBox></td>
<td nowrap="nowrap">
Branch Name
</td>
<td>
<asp:TextBox ID="txtAdvanceSearchBranchName" runat="server" CssClass="input">
</asp:TextBox></td>
<td nowrap="nowrap">
Reporting To</td>
<td>
<asp:TextBox ID="txtAdvanceSearchReportingTo" runat="server" CssClass="input">
</asp:TextBox></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" nowrap="nowrap">
<asp:DropDownList ID="ddlLastName" runat="server">
<asp:ListItem Value="EmployeeLName">Last Name begin with</asp:ListItem>
<asp:ListItem>--------</asp:ListItem>
</asp:DropDownList>
</td>
<td nowrap="nowrap" align="left">
<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="A" onserverclick="EmployeeALL_Click" runat="Server">A</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#"
id="B" onserverclick="EmployeeALL_Click" runat="Server">B</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="C"
onserverclick="EmployeeALL_Click" runat="Server">C</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="D" onserverclick="EmployeeALL_Click"
runat="Server">D</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="E" onserverclick="EmployeeALL_Click" runat="Server">E</a>
|<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="F" onserverclick="EmployeeALL_Click" runat="Server">F</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#"
id="G" onserverclick="EmployeeALL_Click" runat="Server">G</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="H"
onserverclick="EmployeeALL_Click" runat="Server">H</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="I" onserverclick="EmployeeALL_Click"
runat="Server">I</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="J" onserverclick="EmployeeALL_Click" runat="Server">J</a>
|<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="K" onserverclick="EmployeeALL_Click" runat="Server">K</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#"
id="L" onserverclick="EmployeeALL_Click" runat="Server">L </a>|<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="M"
onserverclick="EmployeeALL_Click" runat="Server">M </a>|<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="N" onserverclick="EmployeeALL_Click"
runat="Server">N</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="O" onserverclick="EmployeeALL_Click" runat="Server">O</a>
|<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="P" onserverclick="EmployeeALL_Click" runat="Server">P</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#"
id="Q" onserverclick="EmployeeALL_Click" runat="Server">Q</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="R"
onserverclick="EmployeeALL_Click" runat="Server">R</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="S" onserverclick="EmployeeALL_Click"
runat="Server">S</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="T" onserverclick="EmployeeALL_Click" runat="Server">T</a>
|<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="U" onserverclick="EmployeeALL_Click" runat="Server">U</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#"
id="V" onserverclick="EmployeeALL_Click" runat="Server">V</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="W"
onserverclick="EmployeeALL_Click" runat="Server">W</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="X" onserverclick="EmployeeALL_Click"
runat="Server">X</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="Y" onserverclick="EmployeeALL_Click" runat="Server">Y</a>
|<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#" id="Z" onserverclick="EmployeeALL_Click" runat="Server">Z</a> |<a href="http://links.10026.com/?link=http://forums.asp.net/AddPost.aspx?ReplyToPostID=1730393&Quote=False#"
id="ALL" onserverclick="EmployeeALL_Click" runat="Server">ALL</a>
<asp:Label ID="lblLastName" runat="server" Text="" Visible="False"></asp:Label>
</td>
</tr>
</table>
<br />
<asp:ImageButton ID="imgbtnAdvanceSearch" runat="Server" CommandName="Search" Width="68"
Height="21" OnClick="imgbtnAdvanceSearch_Click" ImageUrl="/images/icons/search.gif" />
<asp:ImageButton ID="imgbtnAdvanceClear" runat="Server" CommandName="Clear" Width="68"
Height="21" ImageUrl="/images/icons/clear.gif" OnClick="imgbtnAdvanceClear_Click" />
</td>
</tr>
</table>
</asp:Panel>
<br />
</asp:Panel>
</td>
</tr>
</table>
</td>
</tr>
</table>
</ContentTemplate>
<Triggers>
<ajax:AsyncPostBackTrigger ControlID="hrfBasicSearch" />
<ajax:AsyncPostBackTrigger ControlID="hrfAdvanceSearch" />
<ajax:AsyncPostBackTrigger ControlID="imgbtnAdvanceClear" />
<ajax:AsyncPostBackTrigger ControlID="imgbtnBasicClear" />
</Triggers>
</ajax:UpdatePanel>
</td>
</tr>
<tr>
<td align="right">
<ajax:UpdateProgress ID="uppGridEmployee" runat="server" AssociatedUpdatePanelID="uppnlGridEmployee">
<ProgressTemplate>
<img src="http://pics.10026.com/?src=/images/ajax-loader.gif" alt="Loading" />
Processing...
</ProgressTemplate>
</ajax:UpdateProgress>
</td>
</tr>
<tr>
<td>
<ajax:UpdatePanel ID="uppnlGridEmployee" runat="Server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Panel ID="pnlCollapse" runat="server">
<br />
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_crm1">
<tr>
<td>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0" class="top_bar_crm">
<tr>
<td>
<img src="http://pics.10026.com/?src=images/icons/candidate.gif" alt="Member List" width="17" height="16" /></td>
<td nowrap="nowrap">
<span class="heading">EMPLOYEE LIST</span>
</td>
<td>
<asp:ImageButton ID="imgbtnExport" runat="Server" CommandName="Export" Width="19"
Height="21" OnClick="imgbtnExport_Click" ImageUrl="/images/icons/export.gif" />
</td>
<td nowrap="nowrap">
<strong>Export</strong>
</td>
<td width="100%">
</td>
<td>
</td>
<td align="center" width="6%">
<asp:ImageButton ID="imgbtnNew" runat="server" CommandName="New" ImageUrl="/images/icons/new.gif"
OnClick="imgbtnNew_Click"></asp:ImageButton>
</td>
<td>
</td>
<td align="center" width="6%">
<asp:ImageButton ID="imgbtnDelete" runat="server" CommandName="Delete" ImageUrl="/images/icons/delete.gif"
OnClick="imgbtnDelete_Click" OnClientClick="return confirmMsg(this.form)"></asp:ImageButton>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<asp:GridView ID="gvemployee" runat="server" AutoGenerateColumns="False" CssClass="dark_bg"
Width="100%" OnRowEditing="gvemployee_RowEditCommand" OnRowCommand="gvemployee_RowCommand"
AllowPaging="true" OnPageIndexChanging="gvemployee_PageIndexChanging" GridLines="Both">
<PagerSettings Position="TopAndBottom" Mode="NextPreviousFirstLast" FirstPageText="First"
LastPageText="Last" NextPageText="Next" PreviousPageText="Prev" />
<Columns>
<asp:TemplateField>
<ItemTemplate>
<center>
<asp:CheckBox ID="chkEmployeeCode" runat="server" />
</center>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Employee ID" Visible="false">
<ItemTemplate>
<asp:Label ID="lblEmployeeID" runat="server" Text='<%# Bind("EmployeeID") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Employee Code">
<HeaderTemplate>
<asp:Label ID="lblEmployeeCode" runat="server" Text="Employee Code"></asp:Label>
<asp:ImageButton ID="imgbtnEmployeeCodeAsc" runat="Server" ImageUrl="images/icons/downDoubleArrow.gif"
Width="5" Height="10" CommandName="Down" OnClick="imgbtnEmployeeCodeAscSort_Click"
ToolTip="Sorting Asc" />
<asp:ImageButton ID="imgbtnEmployeeCodeDescSort" runat="Server" ImageUrl="images/icons/upDoubleArrow.gif"
Width="5" Height="10" CommandName="UP" OnClick="imgbtnEmployeeCodeDescSort_Click"
ToolTip="Sorting Desc" />
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblEmployeeCode" runat="server" Text='<%# Bind("EmployeeCode") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Employee Name">
<HeaderTemplate>
<asp:Label ID="lblEmployeeFName" runat="server" Text="Employee Name"></asp:Label>
<asp:ImageButton ID="imgbtnEmployeeFNameAsc" runat="Server" ImageUrl="images/icons/downDoubleArrow.gif"
Width="5" Height="10" CommandName="Down" OnClick="imgbtnEmployeeFNameAscSort_Click"
ToolTip="Sorting Asc" />
<asp:ImageButton ID="imgbtnEmployeeFNameDescSort" runat="Server" ImageUrl="images/icons/upDoubleArrow.gif"
Width="5" Height="10" CommandName="UP" OnClick="imgbtnEmployeeFNameDescSort_Click"
ToolTip="Sorting Desc" />
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblEmployeeName" runat="server" Text='<%# Bind("EmployeeName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Employee Type">
<ItemTemplate>
<asp:Label ID="lblEmployeeType" runat="server" Text='<%# Bind("EmployeeType") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Reporting To">
<ItemTemplate>
<asp:Label ID="lblReportingTo" runat="server" Text='<%# Bind("ReportingTo") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Designation">
<ItemTemplate>
<asp:Label ID="lblDesignation" runat="server" Text='<%# Bind("DesignationName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Department">
<ItemTemplate>
<asp:Label ID="lblDepartment" runat="server" Text='<%# Bind("DepartmentName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Action">
<ItemTemplate>
<center>
<asp:ImageButton ID="imgbtnEdit" runat="Server" CommandName="Edit" ImageUrl="/images/icons/edit.gif"
ToolTip="Edit" CommandArgument='<%# Bind("EmployeeID") %>' />
<asp:ImageButton ID="imgbtnView" runat="Server" CommandName="View" ImageUrl="/images/icons/view.gif"
ToolTip="View" CommandArgument='<%# Bind("EmployeeID")%>' />
</center>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerStyle CssClass="bottom" HorizontalAlign="Right" />
<HeaderStyle CssClass="head_bg_crm" />
<AlternatingRowStyle CssClass="light_bg" />
<PagerStyle HorizontalAlign="Right" CssClass="bottom" Width="30%" />
</asp:GridView>
</td>
</tr>
</table>
</asp:Panel>
</ContentTemplate>
<Triggers>
<ajax:AsyncPostBackTrigger ControlID="imgbtnDelete" EventName="Click" />
<ajax:PostBackTrigger ControlID="imgbtnSave" />
<ajax:AsyncPostBackTrigger ControlID="imgbtnCancel" />
<ajax:PostBackTrigger ControlID="gvemployee" />
<ajax:AsyncPostBackTrigger ControlID="imgbtnAdvanceSearch" />
<ajax:AsyncPostBackTrigger ControlID="imgbtnBasicSearch" />
<ajax:PostBackTrigger ControlID="imgBtnExport" />
<ajax:AsyncPostBackTrigger ControlID="imgbtnCollapse" />
<ajax:AsyncPostBackTrigger ControlID="imgbtnExpend" />
</Triggers>
</ajax:UpdatePanel>
<br />
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<uc2:footer ID="ftrEmployee" runat="Server" />
</div>
</form>
</body>
</html
I don't see anything on that part of the page that should cause performance issues, but I'm not very familiar with AJAX. A couple more questions. How slow is the page running, and when is it running slow. Is the problem with the original page load, postbacks, async callbacks, or all of the above? Also, can you post a page trace for the above page?
Thanks,
-Ben
Well, wow. First off, you REALLY need to get away from table based layouts, they add a lot to what you're sending over the wire, which can directly impact performance.
Second, you've probably got too much going on on that page to begin with.
Third, realize that the post to the server from the client w/ an update panel carries the same overhead as a normal postback. The response is lighter (only the changes) but then requires the page javascript to navigate through the DOM to insert it at the appropriate places. The more you'r ereceiving, and the more complex the DOM of your page is, the longer that'll take.
Get the js off the page as much as possible, simplify the page structure, reduce viewstate, and consdier breaking that page up into several pages.
Hello,
That page shouldn't affect the performance of your server. Try this and let us know.
After the page is fully loaded, right click and select "View Source". Now save that the file on your desktop and see how big the total size of that file is. Also, how slow is slow? Can you give us the time in second or minute?
Some of pages are much longer than yours, but the performance is still good.
He didn't say it was specifically a server performance issue. My guess is that he's responding to perceived delay / latency / lag time rather than actual server performance metrics. With a large viewstate esp. the Update panels can get pretty slow due to the amount of time that the clientside JS has to spend parsign the response and modifying the DOM.
Hello
Thanx for the response
I have tried to add Javascript code inside js file and provide the link in aspx page
but it says an error - Object Not Found...
Can u please tell me why?
Any help is greatly appreciated.
bye
one of your javascript function is missing ... download FireFox ... Firefox has an Error Console that is good for debugging JavaScript ... =)
No comments:
Post a Comment