Solved

ancor tag href postback Request.QueryString

Posted on 2010-09-07
6
838 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now