matthersjr
asked on
Use ASP Convert_URL in VB6
How do I use the following ASP in VB6 as a string, yet have the asp file display it as a hyperlink?
my <a href=" & <%Convert_ChatURL(' ')%> & ">chat</a> feature
in the browser source code it should read:
my <a href="http://mychatserver/index.htm">chat</a> feature
but I'm getting <a href='<%Convert_ChatURL(' ')%>'>chat</a>
my <a href=" & <%Convert_ChatURL(' ')%> & ">chat</a> feature
in the browser source code it should read:
my <a href="http://mychatserver/index.htm">chat</a> feature
but I'm getting <a href='<%Convert_ChatURL(' ')%>'>chat</a>
i am not exactly sure what you mean but perhaps this...
my <a href="<%=Convert_ChatURL(' ')%> & ">chat</a> feature
You need to make sure your file extension is .asp and your are running it from a compatiable server (IIS... for example).
post more code if this does not help you
C
my <a href="<%=Convert_ChatURL('
You need to make sure your file extension is .asp and your are running it from a compatiable server (IIS... for example).
post more code if this does not help you
C
ASKER
I have an asp file that makes a call to a vb6 module that needs to write it as a string in the vb6 code.
strReturn = strReturn & "<a href='<%Convert_ChatURL(' ')%>'>chat</a> "
strReturn = strReturn & "<a href='<%Convert_ChatURL(' ')%>'>chat</a> "
Assuming Convert_ChatURKL (' ') is in your VB6 module
strReturn = strReturn & "<a href=""<%" & Convert_ChatURL(' ') & "%>"">chat</a> "
I am still not clear but that might do it...
C
strReturn = strReturn & "<a href=""<%" & Convert_ChatURL(' ') & "%>"">chat</a> "
I am still not clear but that might do it...
C
You can't have the ASP delimiters (ie. <% and %>) inside a string value. That doesn't make sense.
I'm not clear with what you're doing either. Is the line of code you posted coming from your ASP page or your VB .dll ??
I'm not clear with what you're doing either. Is the line of code you posted coming from your ASP page or your VB .dll ??
ASKER
dll
how would I do this in vb6?
<%Convert_ChatURL(' ')%>
how would I do this in vb6?
<%Convert_ChatURL(' ')%>
Convert_ChatURL() an ASP function or a function in your .dll??
Assuming Convert_ChatURL() is returning a formatted URL then..
strReturn = strReturn & "<a href=""" & Convert_ChatURL(' ') & """>chat</a> "
For Example If Convert_ChatURL() return "http://www.google.com" then the final string out put would be
<a href="http://www.google.com">chat</a>
Are we even getting close ?
C
strReturn = strReturn & "<a href=""" & Convert_ChatURL(' ') & """>chat</a> "
For Example If Convert_ChatURL() return "http://www.google.com" then the final string out put would be
<a href="http://www.google.com">chat</a>
Are we even getting close ?
C
ASKER
asp function
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Actually, you have another option:
Pass the result of Convert_ChatURL() into your .dll and these use it to build up the complete string. This is probably the easiest option. You simply have to add another class property of function argument somewhere in your VB module.
Pass the result of Convert_ChatURL() into your .dll and these use it to build up the complete string. This is probably the easiest option. You simply have to add another class property of function argument somewhere in your VB module.
This doesn't make any sense.
Could you try explaining your problem more clearly.