easylearning

路漫漫其修远兮 吾将上下而求索

博客园 首页 新随笔 联系 订阅 管理

Button  Attribute属性:
在Page_Load 中加入以下代码:
private void Page_Load(object sender, System.EventArgs e)
{
    this.Tbtn.Attributes .Add ("onclick","window.open('pop.aspx?  rec=TxtBegin','newwin','toolbar=no,menubar=no,status=no,location=no,resizable=no,scrollbars=no,width=218,height=400,top=190,left=300');return false;");
}

点击此按钮就会弹出一自定义网页(pop.aspx);

posted on 2005-12-08 15:30  Tony_yrb  阅读(237)  评论(0编辑  收藏  举报