Reputation: 3
I'm working something in Visual Web Developer 2008 Exrepss Edition.
I have 2 aspx file, Default.aspx and Default2.aspx
In Defauly.aspx Design View i have one button, in her properties on option "PostBack URL" i choose Default2.aspx
When i run site and click on Button do not open Default2.aspx?
Can you help me! Thanks
Upvotes: 0
Views: 1089
Reputation: 61
You can also do it by click event of the button
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Default3.aspx");
}
Upvotes: 1
Reputation: 1
make sure that "UseSubmitBehavior" property for the button is set to true.
Upvotes: 0