我现在在作的一个项目就是:
在后台处理逻辑那里,如果满足一定的条件,那么就需要用户填写一些其他信息的
这样就需要弹出一个对话框来给用户,
问题的关键:要在处理过程中弹出对话框来,这个处理过程是在App_Code的某个类文件.cs或者.vb吧的某段代码,
谢谢,拉,这个问题如果解决不了,那就挂了,

解决方案 »

  1.   

    类要继承这个
    System.Web.UI.Page
    或者直接System.Web.HttpContext.Current.Reponse.Write(处理html的内容);
      

  2.   

    System.Web.HttpContext.Current.Reponse.Write("<script>alert('出错!');</script>");
      

  3.   

    solve it by javascript ,such as the example of glamorsunny(魅力阳光).
      

  4.   

    里面可以加个config!里面填写需要弹出的提示!这个方法我是刚到公司去学到了1挺爽的!要你你自己JS也行
      

  5.   


    System.Web.HttpContext.Current.Reponse.Write("<script>alert('Deleting?');</script>");
      

  6.   

    也可以在类方法里使用这样的方法
    public void  Alert(System.Web.UI.Page page,string msg)
    {
     page.RegisterClientScriptBlock("js","<script>alert('"+msg+"')</script>");
    }
      

  7.   

    System.Web.HttpContext.Current.Reponse.Write("<script>alert('Deleting?');</script>");
      

  8.   

    Reponse.Write 会白屏RegisterClientScriptBlock不会白屏自己选
      

  9.   

    if you are careful,you will found that.some bbs use "alert()" to show a dialog to user,such as response of csdn's download,and bbs of qq news .
    so you should choose a useful and easy method,not a method which is used to show your ability !