KEY:PostBackUrl,PreviousPage.FindControlPage1.aspx
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<%
@ Page Language="C#" AutoEventWireup="true" %>
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
<script runat="server">![](https://www.cnblogs.com/Images/dot.gif)
protected void Button1_Click(object sender, EventArgs e)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
{
Response.Write(this.TextBox1.Text);
Response.Write(this.Calendar1.SelectedDate.ToString());
}
</script>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
</div>
<asp:Button ID="Button1" runat="server" Text="submit to itself" OnClick="Button1_Click" />
<asp:Button ID="Button2" runat="server" Text="submit to page2" PostBackUrl="~/page2.aspx" />
</form>
</body>
</html>
Page2.aspx