|
 |
aspdotnet_website_programming thread: Links within the same page problem
Message #1 by "Bob Herrmann" <bob@m...> on Thu, 6 Feb 2003 08:39:34 -0500
|
|
Hi all,
I have seen many pages on web sites where if you click a link the browser displays the content further down the page. Usually the
top of the page has a list of links that you click and then the browser postions the page at the appropiate content. Or you can
just scroll down to the content.
I want to do the following:
I have a menu which will list 6 menu options. Each of these menu options is the the same asp.net page. I would like to pass a
query string that will tell the page where to position the display. So each menu option would be the same asp.net page but with a
different parameter.
I am confused on how to do this. I would like to know: 1. the best way to pass the value of my link and 2. how in my html do I
display the page at that link.
I hope this makes sense!!
Thanks,
Bob
Message #2 by "Rajkumar" <rajms@h...> on Mon, 10 Feb 2003 12:55:00 +0530
|
|
Hi Bob,
Did you got the answer?
Read the following if you till waiting for answer.
#) Give suitable html bookmarks reference to the places you want to move the
control. Like
ex - <a name="#someMeaningfulName"></a>
#) create a hidden input field
ex - <input type="hidden" id="viewposition" name="viewposition"
runat="server">
#) In Page load of the asp.net page get your query string for position and
accordingly write the 'href' in the hidden field. Make sure you have put #
symbol at the beginning
#) At the end of asp.net page just before </body> add the following.
<script language="javascript">
location.href=document.all.viewposition.value;
</script>
Hope it will help you.
Rajkumar
-------Original Message-------
From: Website Programming with ASP.NET
Date: Thursday, February 06, 2003 07:19:08 PM
To: Website Programming with ASP.NET
Subject: [aspdotnet_website_programming] Links within the same page problem
Hi all,
I have seen many pages on web sites where if you click a link the browser
displays the content further down the page. Usually the top of the page has
a list of links that you click and then the browser postions the page at the
appropiate content. Or you can just scroll down to the content.
I want to do the following:
I have a menu which will list 6 menu options. Each of these menu options is
the the same asp.net page. I would like to pass a query string that will
tell the page where to position the display. So each menu option would be
the same asp.net page but with a different parameter.
I am confused on how to do this. I would like to know: 1. the best way to
pass the value of my link and 2. how in my html do I display the page at
that link.
I hope this makes sense!!
Thanks,
Bob
---
Professional Design Patterns in VB.NET:
Building Adaptable Applications
Want to know how design patterns bring reusable
design and adaptabilty to your applications? How
to recognize the need for a design pattern
solution? How to select, design, and implement
the right patterns? How parts of the .NET Framework
(like the .NET Data Providers and .NET Remoting)
take advantage of design patterns? This book
presents a practical approach to using design
patterns in VB.NET, by focusing on the relevance
of design patterns in the different tiers of a
distributed n-tier architecture.
http://www.wrox.com/books/1861006985.htm
.
|
|
 |