当前位置:编程学习 > C#/ASP.NET >>

谁能帮我把这个asp的代码改成用js可以调用asp的代码?

<!--#include file="inc/const.asp"-->
<!--#include file="inc/common.asp"--> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>控制面板</title>
<style type="text/css">
<!--
body,td,th {
 font-size: 12px;
background:#f1f6fc;
}
a:link {
 color: #666666;
 text-decoration: none;
}
a:visited {
 text-decoration: none;
 color: #666666;
}
a:hover {
 text-decoration: underline;
 color: #FF0000;
}
a:active {
 text-decoration: none;
}
 
-->
</style>

</head>
 
<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> 
<% if request.cookies(NewAsp.CookiesName)("username")="" then%>
本站文章需要会员查看,不是本站会员,请先<a href="/users/reg.asp" target=_blank>注册</a>,若已注册请<a href="/users/login.asp" target=_blank  >登陆</a>
<%else
response.write "欢迎光临" &  request.cookies(NewAsp.CookiesName)("username") & ",您还有点数:" & request.cookies(NewAsp.CookiesName)("pointnum") & "点." & "<a href='index.asp' target=_blank>控制面板</a> | <a href='logout.asp' target=_top>退出登陆</a>" 
end if
%>
 
</body>
</html> --------------------编程问答-------------------- js调用asp?

那要用ajax了, --------------------编程问答-------------------- 上面这段代码是1.asp文件里的代码,我想在用新云cms建的站的首页调用这个文件,可以用iframe调用 <iframe frameborder="0"  style=" margin-top:3px"  scrolling="no"  src="/users/1.asp" width=500 height=20 ></iframe>,但我想用js调用<script src="/users/1.asp" ></script>不知道要怎么修改这个1.asp文件了
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,