.net速度慢,求解决方案
前台:
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="jyxm.aspx.cs"
Inherits="Jybg_jyxm" %>
<!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 runat="server">
<title></title>
<script language="javascript" src="../js/jquery.js" type="text/javascript"></script>
<script language="javascript" src="../js/common.js" type="text/javascript"></script>
<script language="javascript" src="../js/jyxm.js" type="text/javascript"></script>
</head>
<body style="margin: 0;">
<script language="javascript" type="text/javascript">
//获得焦点
//如果是AutoComplete则设置相关内容
function GetFocus(Name) {
var TextName;
var AutoCompleteClientId;
var ContextKey;
var AutoCompleteName;
switch (Name) {
case "TextDw":
TextName = document.getElementById("<%=TextXm.ClientID %>");
ContextKey = "检验项目/单位" + "| and 项目='" + TextName.value + "'";
AutoCompleteClientId = "<%=TextDw_AutoCompleteExtender.ClientID %>";
AutoCompleteName = $find(AutoCompleteClientId);
if (AutoCompleteName != null)
AutoCompleteName.set_contextKey(ContextKey);
break;
case "TextBz":
TextName = document.getElementById("<%=TextXm.ClientID %>");
ContextKey = "检验项目/标准" + "| and 项目='" + TextName.value + "'";
TextName = document.getElementById("<%=TextDw.ClientID %>");
ContextKey = ContextKey + " and 项目单位='" + TextName.value + "'";
AutoCompleteClientId = "<%=TextBz_AutoCompleteExtender.ClientID %>";
AutoCompleteName = $find(AutoCompleteClientId);
if (AutoCompleteName != null)
AutoCompleteName.set_contextKey(ContextKey);
break;
case "TextJybz":
TextName = document.getElementById("<%=TextXm.ClientID %>");
ContextKey = "检验项目/检验标准" + "| and 项目='" + TextName.value + "'";
TextName = document.getElementById("<%=TextDw.ClientID %>");
ContextKey = ContextKey + " and 项目单位='" + TextName.value + "'";
AutoCompleteClientId = "<%=TextJybz_AutoCompleteExtender.ClientID %>";
AutoCompleteName = $find(AutoCompleteClientId);
if (AutoCompleteName != null)
AutoCompleteName.set_contextKey(ContextKey);
break;
case "TextPdbz":
TextName = document.getElementById("<%=Text