Go to top of page when making Panel Visible

aoccawislifs35

New Member
I have a simple 2 panel form that I am setting up. I created this button on my aspx page:\[code\]<asp:Button runat='server' ID='NextButton' Text='Half Way There Proceed' OnClick='StepTwoPanel_Click' />\[/code\]And then this is in my aspx.cs file:\[code\]protected void StepTwoPanel_Click(object sender, EventArgs e){ StepOnePanel.Visible = false; StepTwoPanel.Visible = true;}\[/code\]When I use this, it works perfectly to go from panel one to panel two. Only one little problem. Instead of taking the user to the top of the second panel, they are near the bottom of the panel, exactly where they were on the page when they clicked the button in the first panel.My question is, when the button click makes the second panel visible, how can it also direct the page back to the top?Thanks!
 
Back
Top