日期:2014-05-17 浏览次数:20655 次
<script language=javascript> function update() { //这样不就取到了吗 var adminname= document.getElementById("Text1").value; if(adminname=="张三") { window.location.href=""; } if(adminname="李四") { window.location.href=""; } ………… else { window.location.href=""; } } </script>
------解决方案--------------------
把<%if(<%=adminusername%> == "admin"){%>改成<%if(adminusername == "admin"){%>
------解决方案--------------------
[code=C#][/code]
<head runat="server">
<title></title>
<%
if (adminusername == "admin")
{
%>
<script type="text/javascript" id="jsfile" src="../xml/navmenu.js"></script>
<%
}
else
{
%>
<script type="text/javascript" id="Script1" src="../xml/navmenusuper.js"></script>
<%
}
%>
</head>
我测试了好用啊