Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 22nd, 2006, 06:05 PM
Authorized User
 
Join Date: Apr 2006
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default hyperlink inside a page

Hi,

I am trying to show a FAQ questionnaire set , with set of questions and then with the answers. So I am using a repeater to show the set of questions from the database and then using a datalist to show the set of answers.

I am fine with this part. But I would like to know, how would I hyperlink the questions with the answers inside the same page.

So basically I would like to know how to create hyperlink inside the same page and the questions and answers should be showing together.

I am using C# to do that.

 
Old November 24th, 2006, 04:06 PM
Authorized User
 
Join Date: May 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

do u want to do something like this as in this url:
http://www.akaas.net/faq/asp-net-general-faqs-1.htm

when question is clicked it moves to the answer on same question

Regards,
Rashida Jabeen
http://www.akaas.net
 
Old November 27th, 2006, 11:12 AM
Authorized User
 
Join Date: Apr 2006
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes, exactly I would like to do the same thing. Can you please help me how to do that.

Thanks very much.

 
Old November 28th, 2006, 01:39 PM
Authorized User
 
Join Date: Apr 2006
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi
To show the set of questions and then followed by questions and answers , should I do the whole thing in one datagrid. Or I should use a repeater to do the questions , and then use datagrid or datalist for answers.Pls help

 
Old December 1st, 2006, 02:04 PM
Authorized User
 
Join Date: May 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://www.akaas.net/faq/asp-net-general-faqs-1.htm

open this page and right click on page and click view source to see howz it done

it is vry simple no need of grid, repeater etc.

link of questions shd be like

Code:
<a href="#1">Question No. 1 ............</a>
<a href="#2">Question No. 2 ............</a>
.
.
.
<a href="#n">Question No. n ............</a>

and when below u want to display answer before each answer give those answer the number tag that u used in the link after # sign

like:

<a name="1">
Answer 1 .............

<a name="2">
Answer 2 .............

.
.
.

<a name="n">
Answer n .............


when ever u'll click the link above the focus of page will move to the answer tag
i am not getting how to explain this but hope u'll understand it as its such a simple thing that i am not getting how to make it understandable to u

Regards,
Rashida Jabeen
http://www.akaas.net





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink on page 55 rhoss BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 July 6th, 2008 01:12 PM
Hyperlink in asp page ppenn Classic ASP Databases 2 September 27th, 2007 02:09 PM
How to Open Existing Winform inside Tab Page maulik33 C# 2 May 24th, 2007 10:05 AM
VBA inside of a Tabed page biglazy Access VBA 2 April 17th, 2006 02:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.