主要是如何  <弹出对话框功能的.>
<%@ page language="vb" debug="true" %>
我用的是vb,能否给我一个vb可运行的程序呀??if Label2.text<>"the email is ok" then             
          response.write("alert('ssssssssssss');window.location.href='http://findpwd.aspx'")
      end if
此方法在编译时通过了.可为何不能弹出对话框呢.

解决方案 »

  1.   

    response.write("<script>alert('ssssssssssss');window.location.href='http://findpwd.aspx';</script>")
      

  2.   

    if Label2.text<>"the email is ok" then             
    response.write("<script>alert('ssssssssssss');window.location.href='http://findpwd.aspx';</script>")
    END IF
     error BC30081: “If”必须以匹配的“End If”结束。       if Label2.text<>"the email is ok" then             
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~             
    E:\FIRM\findpwdm2.aspx(189) : error BC30648: 字符串常数必须以双引号结束。response.write("<script>alert('ssssssssssss');window.location.href='http://findpwd.aspx';
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    为何编译时,出错这样的错误??
      

  3.   

    response.write("&lt;script&gt;alert('ssssssssssss');window.location.href='http://www.eing.com/findpwd.aspx'&lt;/script&gt;") 
    改为这样后,还是不能实现弹出对话框的功能??
      

  4.   

    if Label2.text <> "the email is ok" then             
        response.write("<script>alert('ssssssssssss');window.location.href='http://findpwd.aspx';</script>")
    END IF
      

  5.   

    要加windows.open。。你不加。别个那里晓得你弹不弹哦。
      

  6.   

    SUB Send_Click(sender as object,e as EventArgs)
     If Label2.text <> "the email is ok" Then
     Response.Write("<"+"script>alert('ssssssssssss');window.location.href='http://findpwd.aspx';</"+"script>")
    end if
    END SUB
      

  7.   

    response.write("<script>alert('ssssssssssss');window.location.href='http://findpwd.aspx';</script>")