Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 May 30th, 2010, 08:59 AM
Registered User
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Formatting Hyperlinks in an ASP Page

I have a Hyperlink field in an Access 2000 database. After entering a web address, I click the right mouse and get to the Edit Hyperlink dialog. The dialog has the following options:

1. Type Text to display
2. Type the file or Web page name

I type the page to display and the web address. For instance:
Text to display = John Doe
Web Page = http://en.wikipedia.org/wiki/John_Doe

This worked perfectly in Access but when I connected it to my webpage, the hyperlink shows as http://en.wikipedia.org/wiki/John_Doe instead of John Doe. How can I make it to display only John Doe instead of the full URL. I use Frontpage 2000 and connected to the database via the Database Result Wizard.

P.S: My ASP webpage recognises the hyperlink and it works when clicked. I just want to display the name and not the full URL.

Thanks for your assistance.
 
Old May 30th, 2010, 03:23 PM
Registered User
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Solved - Formatting Hyperlinks in an ASP Page

RESOLVED.

I have finally figured out how to solve this problem. Just like TexasWebDevelopers (in another forum) suggested, I created a text field in additon to the hyperlink field. I did not touch the query below. I left it as it is.

SELECT * FROM MyQryCategoryName WHERE (CategoryID = ::CategoryID::) ORDER BY LastName ASC

But in Frontpage, I right clicked on the text field and clicked "Hyperlink Properties", then "Parameters" then "Insert Field Value" and then selected the Hyperlink/URL field itself. That's it. When I uploaded the file, the URL for the text field appear as John Doe, instead of www.JohnDoe.com. When you click on John Doe, it still takes you to www.JohnDoe.com which is what I want.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting problem while exporting a web page in ms-excel in asp.net using C# Praveenkumar_dsrc ASP.NET 2.0 Professional 1 April 5th, 2009 08:09 AM
Excel Hyperlinks in ASP JoseLuisR Classic ASP Professional 3 December 26th, 2006 12:44 AM
Page Navigation Formatting pvasudevan Crystal Reports 2 October 19th, 2004 11:02 AM
ASP Form to Database to HTML Hyperlinks remnatch Access ASP 1 August 9th, 2004 10:38 PM





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