Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
My page Have lot controls then it obviously lengthy..All my controls are placed in UpdatePanel.. Then My problem is when i click any button it make visible a Panel That is at of end page, Is it possible to make page go that position?

Like html

Position 1

Position 2

Position 3

ddljfldjf
dkhfkldjf

Position 1
lfdjld

ldfjld
kljfld
Position 2
dkfhkldjfl
ljdflfj
ldhflkjl
Position 3
Posted
Updated 12-May-11 2:02am
v3

Even your question is not clear.. i think you should use css for this type of functionalty..
 
Share this answer
 
Comments
Bhavna v 25-Mar-11 6:37am    
That is right you shoud use css.
Rajesh Kumar Chekuri 12-May-11 8:02am    
can u explain with small piece of code...
If you are having a textbox control in the panel you can set the focus to that control(if you are redirecting to same page).
You can also use a javascript to scroll to that position.

XML
<asp:Button runat="server" ID="btn1" OnClientClick="pageScroll()" Text="Button" />
<script type="text/javascript">
function pageScroll() {
        window.scrollBy(0,50);

}
</script>


make visible a Panel That is at of end page
Hope the panel is not hidden and you want to scroll down to the panel.
If the button is used only to scroll down to the panel then you can use an anchor tag to scroll to the required position.
<a href="#link1">Position1</a>

Place <a name="link1">this in the panel or where you want to scroll.
 
Share this answer
 
v3
Comments
Rajesh Kumar Chekuri 25-Mar-11 4:45am    
may be this ll going to Work..
Rajesh Kumar Chekuri 25-Mar-11 4:55am    
it's not working...
But the function is calling and from code
here my button is inside update panel
m@dhu 25-Mar-11 7:58am    
What do you mean by not working?
here my button is inside update panel
It has nothing to do with update panel. check my updated answer.
Rajesh Kumar Chekuri 25-Mar-11 5:14am    
can any one help me...?

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