pageload里this.Button1.Attributes.Add("onclick","yourjs");

解决方案 »

  1.   

    这样不就可以了吗<<HTML>
    <HEAD>
      <META NAME="Robots" CONTENT="noindex">
      <META content="text/html;charset=gb2312" http-equiv="Content-Type">
      <TITLE>欢迎来到CSDN新版论坛</TITLE>
      <script src="/Expert/style/get_css.js"></script>
      <SCRIPT LANGUAGE="JavaScript">
      // this page should never load inside of another frame
      if (top.location != self.location)
        {
        top.location = self.location;
        }  function InitSync()
      {
          if( "object" == typeof( top.deeptree ) && "unknown" == typeof( top.deeptree.Sync ) )
          {
            top.deeptree.Sync();
          }
      }
      </SCRIPT>
    </HEAD>
      

  2.   

    用FreeTextBox,还有源码
    http://www.ok202.com/soft/SoftView.Asp?SoftID=666
      

  3.   

    http://www.aspxboy.com/forum/common/BoardCode.aspx
    右键查看源码