Solved

ancor tag href postback Request.QueryString

Posted on 2010-09-07
6
860 Views
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
kim
0
Comment
Question by:DCRAPACCESS
  • 3
  • 2
6 Comments
 
LVL 9

Accepted Solution

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

http://www.mcli.dist.maricopa.edu/tut/tut8d.html
0
 

Author Comment

by:DCRAPACCESS
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 :-)
0
 
LVL 3

Expert Comment

by:revaluser
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
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

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

Author Comment

by:DCRAPACCESS
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

0
 
LVL 3

Expert Comment

by:revaluser
ID: 33619544
Not Button its linkbutton

and in the linkbutton_Onclick you can write the required functionality
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 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