您的位置:首页 > 其它

change the OWA redirection

2013-06-03 16:59 176 查看
<asp:TextBox ID="TextBox1"  runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="我被隐藏啦" style="display:none" />

// .aspx.cs
protected void Page_Load(object sender, EventArgs e)
...{
// 1.x
// TextBox1.Attributes["onclick"] = Page.GetPostBackEventReference(Button1);
// 2.0
TextBox1.Attributes["onclick"] = ClientScript.GetPostBackEventReference(Button1, null);
}

protected void Button1_Click(object sender, EventArgs e)
...{
Response.Write(DateTime.Now);
}

来源地址:http://www.dotnetsky.net/netsave/ShowTopic-92646.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: