I am trying to run an asp page with an external JavaScript file but it is showing error like this....
Error Type:
Active Server Pages, ASP 0124 (0x80004005)
The required Language attribute of the Script tag is missing.
/ew-ii-as-8/testserverwithEJSF.asp, line 3
My both files are...
TestServerWithEJSF.asp
<html>
<head>
<script type="text/javascript" runat="server" src="EJSF.js"></script>
<%
sub vbproc(num1,num2)
Response.Write(num1*num2);
call jsproc(5,20);
end sub
%>
</head>
<body>
<p>Result: <%call vbproc(3,4)%></p>
</body>
</html>
function jsproc(num1,num2)
{
Response.Write("<br>Result :");
Response.Write(num1*num2);
}
But, when I run the asp page puting JavaScript codes into the asp page then it is running well in my server as well as clint machine. The codes of the asp page are..
TestServer.asp
<html>
<head>
<%
sub vbproc(num1,num2)
Response.Write(num1*num2)
call jsproc(5,20)
end sub
%>
<script language="javascript" runat="server">
function jsproc(num1,num2)
{
Response.Write("<br>Result :");
Response.Write(num1*num2);
}
</script>
</head>
<body>
<p>Result: <%call vbproc(3,4)%></p>
</body>
</html>
I am unable to understand how to run the asp page with an external JavaScript file which is running at asp server. Please guide me Sir/Madam.