<asp:Button ID="Button6" runat="server" Text="Button" OnClientClick="OnQueryClick(
this)" />
function OnQueryClick(btn)
{
var address = "default4.aspx?value="+btn.id;
var parameter1 = "";
var OpenStyle = "dialogWidth:650px;dialogHeight:550px;dialogLeft:200px;dialogTop:150px;center:yes;help:false;resizable:false;status:false";
window.showModalDialog(address,parameter1,OpenStyle);
}
//在default4.aspx页面
protected void Page_Load(object sender, EventArgs e)
{
this.Label1.Text = Request.QueryString["value"];
}
[此贴子已经被作者于2007-7-25 17:12:40编辑过]