<%@ page language="vb" debug="true" %>
<%@ Import NameSpace="System.Web.Mail" %>
......
if Label2.text<>"the email is ok" then       
      
        MessageBox("ssssssssssss")
      end if   if Label2.text<>"the email is ok" then       
      
          response.redirect("http://www.eing.com/findpwd.aspx")
      end if
      希望在跳转之前能够先弹出一个对话框..

解决方案 »

  1.   

    string ds = "...........";
    Response.Write("<script>alert('"+es+"')</script>");
      

  2.   

    这个样子也行string es = "...........";
    Response.Write("<script>window.open('"+es+"')</script>");
      

  3.   

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

  4.   

    1.
    dim msg as string;
    msg = "**************";
    Response.Write("<script language=javascript>alert('"+msg+"');</script>");2.
    Page.RegisterStartupScript("showmessage","<script language=javascript>alert('"+msg+"');</script>");
      

  5.   

    error BC30648: 字符串常数必须以双引号结束。         Page.RegisterStartupScript("showmessage","<script language=javascript>alert('"+msg+"')
                                                                                                ~~~
      

  6.   

    error BC32017: 应为逗号、“)”或有效的表达式继续符。       Response.Write("<script language=javascript>alert('"SSSSSSSSSSSSSSS"');
    为何在编译时,语句后面的);</script>");不能正确实别出来呢???
      

  7.   

    if Label2.text<>"the email is ok" then             
              response.write("alert('ssssssssssss');window.location.href='http://www.eing.com/findpwd.aspx'")
          end if
    此方法在编译时通过了.可为何不能弹出对话框呢.
      

  8.   

    public void Alert2(string str_Message,string jmp_web,Page page)//弹出对话框,并带跳转页面
    {
     page.RegisterStartupScript("","<script>alert('"+str_Message+"');location='"+jmp_web+"'</script>");
    }
    调用
    Alert2("你好呀!","index.aspx",Page)
      

  9.   

    <%@ page language="vb" debug="true" %>
    我用的是vb,能否给我一个vb可运行的程序呀??
    主要是如何  <弹出对话框功能的.>
      

  10.   

    if Label2.text<>"the email is ok" then             
              response.write("alert('ssssssssssss');window.location.href='http://www.eing.com/findpwd.aspx'")
          end if
    此方法在编译时通过了.可为何不能弹出对话框呢.
    ==========================
    response.write括号里少了<script></script> 了