这种代码怎么用response.write来写? string script=@"<script>w=window.open('aa.html','a','')w.focus();</script>";Response.Write(script);这样写试试! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我改成vb的了 dim script as string script=@" <script> w=window.open('aa.html','hh','top=20,left=100,width=200,height=200') w.focus() </"+"script>" Response.Write(script)不过出错了编译错误 说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: BC30188: 需要声明。源错误: 行 3: 行 4: dim script as string行 5: script=@"行 6: <script>行 7: w=window.open('aa.html','hh','top=20,left=100,width=200,height=200') dim scriptstr as string scriptstr="<script>" + vbcrlf scriptstr=scriptstr+"window.open'aa.html','hh','top=20,left=100,width=200,height=200')"+vbcrlf scriptstr=scriptstr+"w.focus()" scriptstr=scriptstr+"</script>" Response.Write(scriptstr) 这样写:...Response.write "<script>" & vbCrLfResponse.write "w=window.open('aa.html','a','')" & vbCrLFResponse.write "w.focus" & vbCrLFResponse.write "</script>" & vbCrLF...试一试 //language=c#Response.Write ("<script> w=window.open('aa.html','a','');w.focus();</"+"script>"); <script> 和 </script> 必须折分因为代码中<% %>还有一种表示法是:<script runat=server> //code here</script> Response.Write("<script>w=window.open('aa.html','a','')w.focus();</script>"); 同意 mummy_zc(水煮鱼) ( ) //language=c#Response.Write ("<script> w=window.open('aa.html','a','');w.focus();</"+"script>");还有,我的("<script> 就从不拆分的,没有遇到过什么问题 ListBox 取不到值..........在线等 怎么用asp.net做一个收据打印页面,可以调节坐标 存储过程问题 iso-8859-1 编码问题 水晶报表登录失败问题!急!(多表联合查询填充dataset) xml最大特点是什么? 请高手帮忙看看存储过程,运行时候不报错,但是就是没有改变什么! 如何实现通过 url 加密 ? 谁推荐一本学习ASP.NET的书,要VB.NET的,中文的! [馨郁星愿]问个奇怪的问题 大家速来帮忙 为什么会出现这样的怪问题呀,大家都来看看,来者散分,回答出问题者高分送上 我很急,手头有个模块请大家帮忙,是做一个保险的管理模块,做好的1000分奖励
dim script as string
script=@"
<script>
w=window.open('aa.html','hh','top=20,left=100,width=200,height=200')
w.focus()
</"+"script>"
Response.Write(script)不过出错了编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: BC30188: 需要声明。源错误: 行 3:
行 4: dim script as string
行 5: script=@"
行 6: <script>
行 7: w=window.open('aa.html','hh','top=20,left=100,width=200,height=200')
scriptstr="<script>" + vbcrlf
scriptstr=scriptstr+"window.open'aa.html','hh','top=20,left=100,width=200,height=200')"+vbcrlf
scriptstr=scriptstr+"w.focus()"
scriptstr=scriptstr+"</script>"
Response.Write(scriptstr)
Response.write "<script>" & vbCrLf
Response.write "w=window.open('aa.html','a','')" & vbCrLF
Response.write "w.focus" & vbCrLF
Response.write "</script>" & vbCrLF
...试一试
Response.Write ("<script> w=window.open('aa.html','a','');w.focus();</"+"script>");
因为代码中<% %>还有一种表示法是:<script runat=server>
//code here
</script>
w.focus();
</script>");
//language=c#
Response.Write ("<script> w=window.open('aa.html','a','');w.focus();</"+"script>");
还有,我的("<script> 就从不拆分的,没有遇到过什么问题