Standard Web Controls
Label
default.aspx
protected void Button1_Click(object sender, EventArgs e)
{
if (TextBox1.Text != "")
{
Response.Redirect("Page1.aspx?cname=" + TextBox1.Text);
}
else
{
Label2.Text = "Please enter text in textbox";
}
}
Page1.aspx
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = Request.Params["cname"];
}
No comments:
Post a Comment