JS调用问题! 你可以通过ajax来实现,网上搜下 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 或者你在某个页面用document.write的方式输出,然后在html页面里用<script src="xx.aspx"></script>这样的方式调用,不过这么做的话要注意需要转义的字符 可以给点具体的代码提示吗我看过书上的AJAX类似的例子,可是做起来没效果 <script src="xx.aspx"> </script>实在不行你就用这个模式吧首先你服务器必须支持NETxx.aspx在这个页面你最后用document.write输出比如response.write("document.write('nihao')") chinmo我按照你的方法这样试了一下,没有结果输出,是哪里有什么问题吗?这是html源代码<!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> <title>无标题页</title></head><body>here:<script type="text/javascript" src=“test2.aspx”></script></body></html>这是aspx.cs代码public partial class test2 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { Response.Write("document.write('nihao')"); }} public partial class test2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Response.Write("document.write('nihao')"); } } 这里有问题啊Response.Write("document.write('nihao')");response.end();这样试一下 如何让setTimeout暂停? 请教以下这行JS怎么改成FIREFOX兼容? JS控制h:selectManyCheckbox复选框 文本框的离开事件(在线等) js做算术 找JS高人帮忙解释一下 一段10行左右的JS代码. 谢谢~ 怎么样让这些input的disabled=false? JavaScript解的数学建模题!高手们帮忙重构一下! 怎样匹配一个字符串中的多个非法字符,比如',-等等 js获取图片宽度 JS如何获取MF浏览其中li里面的a标签的连接 怎样在客户端存储数据减少对SERVER的访问
我看过书上的AJAX类似的例子,可是做起来没效果
这是html源代码
<!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>
<title>无标题页</title>
</head>
<body>
here:<script type="text/javascript" src=“test2.aspx”></script>
</body>
</html>
这是aspx.cs代码
public partial class test2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("document.write('nihao')");
}
}
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("document.write('nihao')");
}
}
这里有问题啊
Response.Write("document.write('nihao')");
response.end();
这样试一下