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>");
}