本帖最后由 yeqin1314 于 2011-01-25 02:20:05 编辑

解决方案 »

  1.   

    Response.Write("da");
    这个是在页面最顶部输出da
    可以在.cs中定义一个public string str=""; 在Login_Click事件中赋值,aspx中<div><%=str%></div>
    试一下吧,我也两年多不做web了本帖子的任何回复都逃不过我的法眼,因为我用《Csdn收音机》!
      

  2.   

    1。Div+Table布局
    2。弹出对话框,不用这种方式,这种会影响布局,弹出对话框好像有三种方式,用这种方式吧:
    this.RegisterStartupScript("hello","<script>alert('你好!')</script>"); 
      

  3.   

    不要用Response.Write, 这个会改变布局 的!如果想运行后执行js,可以用ScriptManager.RegisterStartupScript试试的