你可以用js写;
还可以在.cs页面中写.

解决方案 »

  1.   

    window.showModalDialog('Frame.aspx?Page=CFTTransaction.aspx)
    你的单引号不全啊。
      

  2.   

    OnClientClick="show();" <script language=javascript>
    function show()
    {
    window.showModalDialog("Frame.aspx?Page=CFTTransaction.aspx");
    }
    </script>
      

  3.   

    后台
    this.btnShowDetail.Attributes.Add("onclick","window.showModalDialog('Frame.aspx?Page=CFTTransaction.aspx')");03中Button控件好象没有OnClientClick这个东西吧
      

  4.   

    belldandy11(路漫漫其修远兮,吾将上CSDN求索)
    --------------------------------------------------
    this.btnShowDetail.Attributes.Add("onclick","window.showModalDialog('Frame.aspx?Page=CFTTransaction.aspx')");03中Button控件好象没有OnClientClick这个东西吧
    -------------------------------------------------------
    這個我也試過了,不行啊。PS:OnClientClick 是05的東西。