Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inser field in ASP

Status
Not open for further replies.

edgarv

MIS
Jul 25, 2003
248
US
Hello,
I am having some difficulties. I have a script that outputs a hyperlink, and when you click on the hyperlink it goes to the specific page.
for example and here is the asp portion
then str = " & str
GetData = "<a href=""" & str & """>" & strTitle & "</a>"
is there a way to add an extension to the hyperlink so it would show
can I add the .jpg in the asp code?
 
GetData = "<a href=""" & str & ".jpg"">" & strTitle & "</a>"

or even

str = 123
str = " & str & ".jpg"

which means
GetData = "<a href=""" & str &"">" & strTitle &"</a>
 
the problem is that if Use GetData = "<a href=""" & str & ".jpg"">" & strTitle & "</a>"
my page is not displayed, I have to put the http and .jpg in the
if ((Field.Type=203 and Right(GetData,1)="#") and Format<>FORMAT_NONE ) _
or Format = FORMAT_HYPERLINK then

' hyperlink in Access format
' # or

str = GetData
if (Right(GetData,1)="#") then
ind = InStr(1, str, "#")
strTitle = Left(str, ind-1)
str = Mid(str,ind+1,Len(str)-ind-1)
end if
if strTitle="" then strTitle=str
if InStr(1,Left(str,7),"://")=0 and Left(str,7)<>"mailto:" then str = " GetData = "<a href=""" & str & """>" & strTitle & "</a>"
end if

and even then I get this error

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top