Script - runat=server

P

Peter_G

Hi, I am updating a website for a friend of mine and it has this script
toward the top of the index.htm page. (This is not the format it is in, by
my copy and past seems to have a mind of it's own).

<SCRIPT RUNAT=Server

Language=VBScript>

SUB Session_OnStart

Session.lcid=1033

END SUB

</SCRIPT>


She says that she did not put the script in, and I certainly did not.

My question is, what does this script do?

Kind regards,

Peter
 
K

Kevin Spencer

By itself it doesn't mean anything. It is an ASP server-side script which
sets a Session value. Does the page have a .asp extension? If not, you can
remove it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
J

Jim Cheshire \(JIMCO\)

Peter_G said:
<SCRIPT RUNAT=Server

Language=VBScript>

SUB Session_OnStart

Session.lcid=1033

END SUB

</SCRIPT>


She says that she did not put the script in, and I certainly did not.

My question is, what does this script do?

That script sets the locale identifier of the current ASP session to US
English. LCID is a property of the Session object that specifies the locale
ID of the Session.

--
Jim Cheshire
JIMCO
http://www.jimcoaddins.com

Check out Spam Spoiler, our new add-in!
Add e-mail links to your Web site again
without fear of spammers!
 
P

Peter_G

Hi Guys,

Thanks for the replies.

Ok then, No, the page does not have an ASP extension, nor do any other pages
in her site.

My question now then, is how did this get here? Surely the web host does
not have access to pages on the site?

I have deleted from the page and will get her to republish.

Thank you for the help.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top