joecool2005 0 Posted February 24, 2006 Report 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 Quote Link to post Share on other sites
netcracker 1 Posted February 24, 2006 Report Share Posted February 24, 2006 <% Language=Javascript%>however, i think it's all the same if you use that statement or not. Quote Link to post Share on other sites
denny911 0 Posted February 24, 2006 Report 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 Quote Link to post Share on other sites
Pollux 0 Posted February 27, 2006 Report Share Posted February 27, 2006 You're missing some quotes: <%@ language="javascript" %> Quote Link to post Share on other sites
aspnetguy 30 Posted February 27, 2006 Report 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. Quote Link to post Share on other sites
gingerwinger 0 Posted February 27, 2006 Report 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"%> Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.