Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 5th, 2012, 06:30 PM
Authorized User
Points: 147, Level: 2
Points: 147, Level: 2 Points: 147, Level: 2 Points: 147, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2011
Posts: 34
Thanks: 1
Thanked 1 Time in 1 Post
Default Create link for html using objRS.fields("server_name")

I need to create a link based off of a query string. It currently works but I need to switch it now to an "HTML" page link. We are going to be transferring files to a specific folder from all our servers. The name of the files are going to be the name of the server.html.

Code:
Response.Write "<a class=linkroll href='<%= objRS.Fields("server_name")%>."html" & "'>"
Is this possible?

Please let me know if more information is needed.

Thanks,
Reply With Quote
  #2 (permalink)  
Old April 5th, 2012, 09:46 PM
Authorized User
Points: 147, Level: 2
Points: 147, Level: 2 Points: 147, Level: 2 Points: 147, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2011
Posts: 34
Thanks: 1
Thanked 1 Time in 1 Post
Default

OK, after a lot of looking through google and trial and error, I got it to work:

Code:
Response.Write "<a class=linkroll href=" & objRS.Fields("server_name") & ".html & "">"
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 20 "LBS" exercise not populating content in fields zane@zaneparker.com Xcode 0 November 23rd, 2011 03:27 PM
Converting "TEX" equations in XML to HTML or XHTML kvbhaskar7 XSLT 1 November 2nd, 2011 04:26 AM
MSXSL gives error message for "for" inside "select" ilyaz XSLT 1 December 9th, 2010 05:02 PM
How to theme the "Browse" button of "FileUpload" control? varunbwj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 October 14th, 2009 01:22 AM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 04:56 AM



All times are GMT -4. The time now is 01:14 AM.


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