Click here to Skip to main content
15,888,329 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello everyone i want to scroll page bottom side on button click so that my new panel show.please help me
Posted

Call a JavaScript Event onclick of that Button.

Inside that click event, write...
JavaScript
window.scrollTo(0, document.body.scrollHeight);
 
Share this answer
 
Comments
Karthik_Mahalingam 19-Dec-13 5:33am    
correct 5!
Thanks a lot karthik mahalingam01... :)
I don't think you mean scrolling.. but rather setting focus on a certain control.
You can try this..
C#
protected void btn_Click(object sender, EventArgs e)
{
    YourControl.Focus();
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900