Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 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 September 20th, 2003, 04:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default space problem in hyperlink

Space problem in Hyperlink
I am using following query to retrieve the records.

ssql="SELECT contractno,recordno,REVERSE(LEFT(REVERSE(Imagerefe rence), CHARINDEX('\', REVERSE(Imagereference)) - 1)) imagereference FROM nonarc where contractno='"& contractno& "'"

set rs=cn.Execute(ssql)

Response.Write("<td>")
Response.Write("<a href=" & (rs("imagereference")) & ">" & rs("imagereference2") & "</a>")
Response.Write("</td>")


If
Imagereference=civil avilation.tif // space between file name it not display on click
Imagereference=airport area.tif
Imagereference=city area.tif
….

There is space between file name of drawings.
It not display, also not return full path of drawings.

How can display the drawings if file name with space ?
I have thousand of records to display.

Imagereference path is \\auhtripdc\as_built\nontrip\civil aviation.tif

It only show file:\\auhtripdc\as_built\nontrip\civil path in asp page.

How it will display full path ?

Please help

Mateen
 
Old September 20th, 2003, 04:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

I think it is a question of missing quotes, try this:
Code:
Response.Write("<a href='" & (rs("imagereference")) & "'>" & rs("imagereference2") & "</a>")
or this:

Code:
Response.Write("<a href=""" & (rs("imagereference")) & """>" & rs("imagereference2") & "</a>")

 
Old September 20th, 2003, 05:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 518
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks a lot to point out the mistake


Quote:
quote:Originally posted by Jonax
 I think it is a question of missing quotes, try this:
Code:
Response.Write("<a href='" & (rs("imagereference")) & "'>" & rs("imagereference2") & "</a>")
or this:

Code:
Response.Write("<a href=""" & (rs("imagereference")) & """>" & rs("imagereference2") & "</a>")

 
Old October 17th, 2003, 03:30 AM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by mateenmohd
 Space problem in Hyperlink
I am using following query to retrieve the records.

ssql="SELECT contractno,recordno,REVERSE(LEFT(REVERSE(Imagerefe rence), CHARINDEX('\', REVERSE(Imagereference)) - 1)) imagereference FROM nonarc where contractno='"& contractno& "'"

set rs=cn.Execute(ssql)

Response.Write("<td>")
Response.Write("<a href=" & (rs("imagereference")) & ">" & rs("imagereference2") & "</a>")
Response.Write("</td>")


If
Imagereference=civil avilation.tif // space between file name it not display on click
Imagereference=airport area.tif
Imagereference=city area.tif
….

There is space between file name of drawings.
It not display, also not return full path of drawings.

How can display the drawings if file name with space ?
I have thousand of records to display.

Imagereference path is \\auhtripdc\as_built\nontrip\civil aviation.tif

It only show file:\\auhtripdc\as_built\nontrip\civil path in asp page.

How it will display full path ?

Please help

Mateen








Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Hyperlink JaffAJob Word VBA 3 August 28th, 2007 11:50 AM
HyperLink Problem monika.vasvani ASP.NET 1.0 and 1.1 Professional 2 September 30th, 2006 05:17 AM
Hyperlink Problem Lalit Pradhan ASP.NET 2.0 Professional 2 June 14th, 2006 09:36 AM
hyperlink problem Abhinav_jain_mca General .NET 3 August 27th, 2004 07:54 AM
hyperlink problem Abhinav_jain_mca SQL Server 2000 1 August 25th, 2004 01:43 PM





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