ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 7th, 2003, 07:32 PM
Ste Collins Ste Collins is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Knowsley / Liverpool
Posts: 15 Ste Collins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
URL link using asp

I am currently developing a learning resource database and want to add links on the page which point me to resources located on our Intranet server. The resource information is read from Access2000 database.

The code I am using looks like this and its the location field that needs to be a hyperlink.
Ideally, a button would be better for the link as the URL's are fairly long.

Any help greatly appreciated. Thanks.

<table align="center" border="0" height="12" width="600">
<tr>
<td width="10">&nbsp;</td>
<td width="74"><%=RS("KeyStage")%></td>
<td width="77"><%=RS("Subject")%></td>
<td height="36" width="9"><font color="#FF0000">-</font></td>
<td width="88"><%=RS("Location")%></td>
<td height="36" width="9"><font color="#FF0000">-</font></td>
<td width="179"><%=RS("Description")%></td>
<td height="36" width="120">
<div align="center"></div>
<%=RS("Date")%></td>
</tr>
</table>

Reply With Quote
  #2  
Old July 7th, 2003, 08:21 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Here's a good little primer on how to do hyperlinking: http://www.htmlgoodies.com/primers/primer_4.html. Basically, your link would look something like this:

Code:
<a href="<%=RS("Location")%>">Click here to link to wherever</a>
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old July 8th, 2003, 02:40 PM
Ste Collins Ste Collins is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Knowsley / Liverpool
Posts: 15 Ste Collins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks a lot for the code snippet, it came in handy. I am fairly new to server side scripts like ASP, php etc. but was building websites in HTML before using web design applications. Its just getting used to the syntax that takes a bit of practice.

How would I add an image link to the code you supplied rather than using a text link?

Cheers

Reply With Quote
  #4  
Old July 8th, 2003, 04:28 PM
EiSa EiSa is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Norway
Posts: 184 EiSa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 24 sec
Reputation Power: 7
If I understand your question right:

<a href="<%=RS("Location")%>"><img src="/foldername/imagename.gif" border="0" alt="Click on this image to go to this page"></a>

Reply With Quote
  #5  
Old July 8th, 2003, 04:40 PM
Ste Collins Ste Collins is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Knowsley / Liverpool
Posts: 15 Ste Collins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
yep. that works fine. Thanks a lot

Reply With Quote
  #6  
Old July 8th, 2003, 04:54 PM
Ste Collins Ste Collins is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Knowsley / Liverpool
Posts: 15 Ste Collins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Is it possible to include a Javascript rollover image within an ASP page or is it possible to make rollover using ASP?

Reply With Quote
  #7  
Old July 8th, 2003, 06:17 PM
EiSa EiSa is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Norway
Posts: 184 EiSa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 24 sec
Reputation Power: 7
No problem to use a Javascript rollover image within an ASP page.

The link will be something like this:

<a href="<%=RS("Location")%>"><img src="/foldername/imagename.gif" border="0" alt="Click on this image to go to this page" onMouseOver="Javascript MouseOver script" onMouseOut="Javascript MouseOut script"></a>

You can put all the normal stuff into a ASP page that you are used to put into a webpage. Coding is the same as long as you don't put it inside the ASP code.

You can't make a rollover in ASP since ASP is serverside. Javascript is clientside (the browser), therefor Javascript can make a rollover-function.

Reply With Quote
  #8  
Old July 9th, 2003, 04:50 AM
Ste Collins Ste Collins is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Knowsley / Liverpool
Posts: 15 Ste Collins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
OK, I created a rollover in Dreamweaver MX and replaced the href with "<%=RS("Location")%>"

I put the Javascript at the top of the ASP page between <head> tags but the rollover doesnt work.

Would I be better using a different Javascript or maybe an applet?

Reply With Quote
  #9  
Old July 9th, 2003, 04:58 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Get it all going in HTML first, THEN do the ASP stuff. Once you know the basics of HTML & JS, you won't have any problems inserting the ASP code into the right places.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > URL link using asp


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT