HTML link in ASP VBSCRIPT code block

43 views
Skip to first unread message

req...@gmail.com

unread,
Aug 8, 2008, 6:48:04 PM8/8/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hey, I havnt done ASP in a LONG time and I've gotten stuck. I have the
code block below, but the a href link throws an error, if I take out
hte link section the page works fine. How do I insert the link into
the code block so no error is thrown?

<%
Dim a as string
Dim b as string
a = request.browser.browser
b = "IE"
if a <> b then
response.write( "You are using " & a & " to view this page. Please use
Internet Explorer.")
else

<a href="http://example.site.com/index.aspx">
<img src="./button.jpg" border="0">
</a>

end if
%>

Cerebrus

unread,
Aug 11, 2008, 3:15:01 PM8/11/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
This isn't a classic ASP group, but I'd hate to direct you elsewhere
for something so simple. Be advised that your best recourse is to read
up on some basic ASP tutorials. We might not be so lenient the next
time.

Here goes :

--------
<%
Dim a as string
Dim b as string
a = request.browser.browser
b = "IE"
If a <> b Then
response.write( "You are using " & a & " to view this page. Please
use
Internet Explorer.")
Else
%>
<a href="http://example.site.com/index.aspx">
<img src="./button.jpg" border="0">
</a>
<%
End If
%>
--------
Reply all
Reply to author
Forward
0 new messages