Link to home
Start Free TrialLog in
Avatar of DCRAPACCESS
DCRAPACCESS

asked on

ancor tag href postback Request.QueryString

Hi Experts,

I have a dynamic list with a lot of <a> with dynamic href.
When i press the <a> i need to pass a value, with lets say a QueryString. The href refers back to the same page and therefore i need to Maintain Scroll Position. Because the value from the QueryString should make a DIV or asp:panel visible.

The list contains a lot of users, and by pressing a user name a box under the name should appear with  more details. That is what I'm trying to do if any one should have a better idea?

Best regards
kim
ASKER CERTIFIED SOLUTION
Avatar of puru1981
puru1981

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DCRAPACCESS
DCRAPACCESS

ASKER

It looks like something I could use, but I can first test it when I get home, but I think that it would work :-)
in the page directive have Maintainscrollposition = true

then after the postback the page will maintain the scroll position

and why cant you use the linkbutton instead of hyperlink where on click you can check the requirement and show or hide the DIV or Panel
Because, it is a list with users first and last names that should be clicked. And a button would look odd.
Can you show how I do this you talking about, i'm not sure what to do:

in the page directive have Maintainscrollposition = true

then after the postback the page will maintain the scroll position

Not Button its linkbutton

and in the linkbutton_Onclick you can write the required functionality