vadder85 Posted March 26, 2007 Share Posted March 26, 2007 Hello..I have one problem here regarding on putting html into aspBelow is my code<% if request("id_map") = "1" then "<img src='images/spinstar.gif'>" %>The error returned : " Syntax Error "Can someone correct the error please? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 26, 2007 Share Posted March 26, 2007 I believe it either needs to be request.form("id_map") or request.querystring("id_map"), and you also need a response.write around the string with the img tag. Link to comment Share on other sites More sharing options...
pulpfiction Posted March 26, 2007 Share Posted March 26, 2007 Code will be...<% if request.querystring("id_map") = "1" then response.write "<img src='images/spinstar.gif'>" %> Link to comment Share on other sites More sharing options...
Patrick Posted April 1, 2007 Share Posted April 1, 2007 Code will be...<% if request.querystring("id_map") = "1" then response.write "<img src='images/spinstar.gif'>" %>I'd say the problem is aswell the fact that there is no "end if".<% If Request.Querystring("id_map") = "1" Then Response.Write "<img src='images/spinstar.gif'>" end if %> Link to comment Share on other sites More sharing options...
justsomeguy Posted April 2, 2007 Share Posted April 2, 2007 If the if/then is all on one line, then you can leave off the end if, and it assumes that the single line is the only thing in the if statement. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now