Jump to content

run on server side


joecool2005

Recommended Posts

How can I run this code on the server side?I know that should add runat="server", but I don't know where.<script LANGUAGE="JavaScript">var keyArray= new Array();var i=0;</script><% Set fs=Server.CreateObject("Scripting.FileSystemObject") Set f=fs.OpenTextFile(Server.MapPath("permission.txt"), 1) do while f.AtEndOfStream = false%><script> keyArray="<%= f.ReadLine%>"; i++;</script><% loop f.Close Set f=Nothing Set fs=Nothing%>

Link to comment
Share on other sites

<html>    <head>        <title></title>    </head>    <body>        <script language="JavaScript" runat="server">            response.write("<p>Hello World From Server Side JavaScript</p>")        </script>    </body></html>

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...