Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
|
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 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 April 5th, 2012, 06:30 PM
Authorized User
 
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,
 
Old April 5th, 2012, 09:46 PM
Authorized User
 
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 & "">"





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 20 "LBS" exercise not populating content in fields [email protected] 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





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