joecool2005 Posted February 24, 2006 Share Posted February 24, 2006 Hi all,On ASP page ,when I use <%@ Language=Javascript%> in the 1st line, how can I add ASP code after? Anytime I try to write a ASP code, it shows me error. How can I fix it? Is there anything I need to add to go back on ASP code?Thx Joe Link to comment Share on other sites More sharing options...
netcracker Posted February 24, 2006 Share Posted February 24, 2006 <% Language=Javascript%>however, i think it's all the same if you use that statement or not. Link to comment Share on other sites More sharing options...
denny911 Posted February 24, 2006 Share Posted February 24, 2006 Hi all,On ASP page ,when I use <%@ Language=Javascript%> in the 1st line, how can I add ASP code after? Anytime I try to write a ASP code, it shows me error. How can I fix it? Is there anything I need to add to go back on ASP code?Thx Joe<{POST_SNAPBACK}> if that piece of code isn't in the 1st line of code, thaT'll cause the errortry to put it in the first line, maybe that's the solution Link to comment Share on other sites More sharing options...
Pollux Posted February 27, 2006 Share Posted February 27, 2006 You're missing some quotes: <%@ language="javascript" %> Link to comment Share on other sites More sharing options...
aspnetguy Posted February 27, 2006 Share Posted February 27, 2006 Hi all,On ASP page ,when I use <%@ Language=Javascript%> in the 1st line, how can I add ASP code after? Anytime I try to write a ASP code, it shows me error. How can I fix it? Is there anything I need to add to go back on ASP code?Thx Joe<{POST_SNAPBACK}> Are you trying to use code from the tutorials??? Those are in VBScript and cannot be used if you are choosing JavaScript as your ASP language...I would recommend you switch to VBScript because 99% of the material available about ASP is in VBScript.NOTE: Only use VBScript for ASP...not as a client scripting language because only IE knows VBSCript. Link to comment Share on other sites More sharing options...
gingerwinger Posted February 27, 2006 Share Posted February 27, 2006 You should be using <%@LANGUAGE="VBSCRIPT"%> but at the top of my pages it looks like this <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> 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