Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


ancor tag href postback Request.QueryString

Posted on 2010-09-07
Medium Priority
Last Modified: 2012-06-27
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Accepted Solution

puru1981 earned 2000 total points
ID: 33615988
you can do this using the href value with #Div

Author Comment

ID: 33616241
It looks like something I could use, but I can first test it when I get home, but I think that it would work :-)

Expert Comment

ID: 33616272
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Author Comment

ID: 33616529
Because, it is a list with users first and last names that should be clicked. And a button would look odd.

Author Comment

ID: 33616564
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


Expert Comment

ID: 33619544
Not Button its linkbutton

and in the linkbutton_Onclick you can write the required functionality

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA:…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question