FineUI/FineUI_v6/FineUI.Examples/iframe/triggerbox_iframe_iframe.aspx.cs
三生石上 62ef818ff0 v6.0.3
2017-09-05 11:30:31 +08:00

37 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace FineUI.Examples.iframe
{
public partial class triggerbox_iframe_iframe : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string param1 = Request.QueryString["param1"];
if (!String.IsNullOrEmpty(param1))
{
TextBox1.Text = param1;
}
btnClose.OnClientClick = ActiveWindow.GetHideReference();
}
}
protected void btnSelect_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(TextBox1.Text, TextBox1.Text + " - 第二个值") + ActiveWindow.GetHideReference());
}
protected void btnClosePostBack_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
}
}