how to redirect in to a perticular panel
-
i have some panels in my default.aspx page ,say pane11 and panel 2.in the next page i have a button, when i am clicking the button it should go to panel2 in default.aspx. how to redirect in to a perticular panel in a page? "Lack of will power has caused more failure than lack of intelligence or ability. "
-
i have some panels in my default.aspx page ,say pane11 and panel 2.in the next page i have a button, when i am clicking the button it should go to panel2 in default.aspx. how to redirect in to a perticular panel in a page? "Lack of will power has caused more failure than lack of intelligence or ability. "
Lets assume that your panel2's id is "panel2". If you formatted your link as
default.aspx#panel2
when redirecting, the browser will attempt to jump to that element. If there is enough content, the browser will scroll so that the element with "panel2" is the element at the top of the page. If there is not enough content, it will scroll "panel2" as close to the top as possible. One thing to keep in mind with ASP.NET and server controls is that the id that you assign may not be the id that the browser receives. Be sure to use theClientID
property of panel2 to ensure the id is fully formed. Hope that helps. :)--Jesse
"... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
-
Lets assume that your panel2's id is "panel2". If you formatted your link as
default.aspx#panel2
when redirecting, the browser will attempt to jump to that element. If there is enough content, the browser will scroll so that the element with "panel2" is the element at the top of the page. If there is not enough content, it will scroll "panel2" as close to the top as possible. One thing to keep in mind with ASP.NET and server controls is that the id that you assign may not be the id that the browser receives. Be sure to use theClientID
property of panel2 to ensure the id is fully formed. Hope that helps. :)--Jesse
"... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi