如题

解决方案 »

  1.   

    同意楼上的
    你要不先麻烦,也可以在click的服务器事件中写
    response.write("<script>fun()</script>")
      

  2.   

    在后台里可以这样加 
    aa.Attributes["onclick"]="javascript: 函数名()";onclick 就是触发事件,可以换其他
      

  3.   

    button1.Attributes.Add("onclick", "javascript:getdate()")
      

  4.   

    button1.Attributes.Add("onclick", "javascript:getdate()")
      

  5.   

    Response.Write("<script language='javascript'>window.open( 'http://...')</"+"script>");
      

  6.   

    这些函数是不是要在.aspx文件中预先定义啊??