Control to be focused on postback
-
I have a chart control in my ASPX page. At the top of the page there are some dropdown boxes to select some parameters to draw chart control and a button. Initially the chart control is invisible. After the btton click the chart control databinding will be done and visible property is set true. How to make the Chart control to be focused where it is at the down of the page after button click. Where now after postback the user has to scroll down to view the chart.
-
I have a chart control in my ASPX page. At the top of the page there are some dropdown boxes to select some parameters to draw chart control and a button. Initially the chart control is invisible. After the btton click the chart control databinding will be done and visible property is set true. How to make the Chart control to be focused where it is at the down of the page after button click. Where now after postback the user has to scroll down to view the chart.
Check these links: http://www.bloggersentral.com/2010/10/jump-to-section-or-part-on-same-page.html[^] http://www.daniweb.com/web-development/web-design-html-and-css/code/216391/jump-to-another-part-of-a-document-on-the-same-page[^]
You have to learn to think like a computer or teach him to think like a human. -Kornfeld Eliyahu Peter
-
Check these links: http://www.bloggersentral.com/2010/10/jump-to-section-or-part-on-same-page.html[^] http://www.daniweb.com/web-development/web-design-html-and-css/code/216391/jump-to-another-part-of-a-document-on-the-same-page[^]
You have to learn to think like a computer or teach him to think like a human. -Kornfeld Eliyahu Peter
These links show when we have a hyperlink.. but i have to do it when postback i.e inside a button click event handler..
-
These links show when we have a hyperlink.. but i have to do it when postback i.e inside a button click event handler..
see this:http://stackoverflow.com/questions/6666038/asp-net-postback-scroll-to-specific-position[^]
You have to learn to think like a computer or teach him to think like a human. -Kornfeld Eliyahu Peter
-
I have a chart control in my ASPX page. At the top of the page there are some dropdown boxes to select some parameters to draw chart control and a button. Initially the chart control is invisible. After the btton click the chart control databinding will be done and visible property is set true. How to make the Chart control to be focused where it is at the down of the page after button click. Where now after postback the user has to scroll down to view the chart.
If I remember correctly, the button click event fires a postback to the server, the page is sent to the server background processing occurs on the server, here you can toggle the visible property the page is sent back to the client, and then the page loads again with new HTML the page.load event fires again so the focus should probably be in the page.load event, if page.ispostback { if yyy.visible = true { xxx.focus } } try that out.