jackwang_2010

利用js打开子页面

 前台:    function OpenWin_FeedBack(userid,dealId)
     { 
          var returnValue=window.showModalDialog('Home_DealList.aspx?Page=D&UserID='+ userid,'','dialogWidth:550px;dialogHeight:400px;Left=100,top=50,toolbar=no,resizable=yes,scrollbars=yes' );
         if(returnValue=='true')
         {
           return true;
         }
         else
         {      
          return false;
         }
     }

后台:

 

        protected void gvhome_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                //文档状态
                string status = Server.HtmlDecode(e.Row.Cells[6].Text);

                ImageButton btnDealthing = (ImageButton)e.Row.FindControl("btnDealthing");
                if (btnDealthing != null)
                {
                    btnDealthing.OnClientClick = string.Format("return OpenWin_FeedBack('{0}', '{1}')", gvhome.DataKeys[e.Row.RowIndex].Value.ToString(), "");
                }...

posted on 2010-06-03 23:48  太平洋在望  阅读(337)  评论(0)    收藏  举报

导航