• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 901
  • Last Modified:

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
0
DCRAPACCESS
Asked:
DCRAPACCESS
  • 3
  • 2
1 Solution
 
puru1981Commented:
you can do this using the href value with #Div

http://www.mcli.dist.maricopa.edu/tut/tut8d.html
0
 
DCRAPACCESSAuthor Commented:
It looks like something I could use, but I can first test it when I get home, but I think that it would work :-)
0
 
revaluserCommented:
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
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
DCRAPACCESSAuthor Commented:
Because, it is a list with users first and last names that should be clicked. And a button would look odd.
0
 
DCRAPACCESSAuthor Commented:
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

0
 
revaluserCommented:
Not Button its linkbutton

and in the linkbutton_Onclick you can write the required functionality
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now