今天在看资料的时候无疑之间看到如下代码
System.Web.UI.WebControls.IButtonControl
{
string PostBackUrl;
event System.EventHandler Click;
}
<asp:Button Id="" PostBackUrl="~/d.aspx"/>
帅啊这样你就可以让别的页来接受你的请求咯呵呵。另外也可以用ashx哦那个也是好东西
----检索原页的信息
(Request.Form[“控件名”])
if (Page.PreviousPage != null)
{
TextBox SourceTextBox = (TextBox)Page.PreviousPage.FindControl("TextBox1");
if (SourceTextBox != null)
{
Label1.Text = SourceTextBox.Text;
}
}