Asp.Net中后台弹出Layer浮动框以及传值

public void JSPrompt()

{

string id = 11;

ClientScript.RegisterStartupScript(this.GetType(), "", @"<script type='text/javascript'>

                                parent.layer.open({
                                    type: 2,
                                    title: '浮动框标题',
                                    shade: 0.6,  //阴影度
                                    fix: false,
                                    shadeClose: true,
                                    maxmin: false,
                                    area:['330px;','120px;'],   //窗体大小(宽,高)

                                    content:'Index.aspx?id=" + id+ "' }); </script>");

 

}

posted @ 2015-09-14 16:28  新城已无在少年  阅读(250)  评论(0编辑  收藏  举报