当使用vb.net来编写aspx时,如果这样的语句就会出错:
response.write("<script>alert('ok?')</script>")如果要达到这个效果应该怎么做呢?

解决方案 »

  1.   

    response.write("<script>alert('ok ?')</script>")
    //?全角
      

  2.   

    不会吧,大家都认为没有问题我想问题是用vb。net写的时候,你的script中不能再包含<script字样了
      

  3.   

    我的最新发现,这样写法只在vs2003.net中代码分离式写法中接受使用webmatrix,editplus写的代码,html合1的文件这么写是会出问题的
      

  4.   

    没问题的,我也试过了
    response.write
    改成大写 (小写是asp里的写法)
    Response.Write