Runat

Where exactly does RUNAT="Server"go in the code

View Replies


ADVERTISEMENT

RUNAT=Server

can any one tell me what does RUNAT=Server do?what if we take a way the code.any thing will happen?

<scrfipt language="vbscript" runat="server">

sub Application_OnStart
'some code
end sub

sub Application_OnEnd
'some code
end sub

sub Session_OnStart
'some code
end sub

sub Session_OnEnd
'some code
end sub

View Replies View Related

Runat=server!

The following code snippet

----------------------------------------
<script language="VBScript" runat=server>
<%
a=1
%>
</script>
<%= a %>
----------------------------------------

throws the "Expected statement" error pointing to line no. 2. Why?

View Replies View Related

#include And <script Runat="server">

There seem to be two ways to include files on the server:

1. <!-- #include file="header.inc" -->
2. <script language="VBScript" runat="server" src="header.inc"></script>

What are the differences between the two, and when to use one instead of the other?

View Replies View Related

Runat="server"

I have a BoundColumn in a DataGrid:

<asp:BoundColumn DataField="lastname" SortExpression="lastname"
ReadOnly="True" HeaderText="Last Name"></asp:BoundColumn>

Column is sorted. I am wondering why this code is working properly as there is missing the statement runat="server".then I click on a header of the column, the grid posts back to the server and sorting is done. Why does it work without runat="server"? In my books is always used runat=�server� expression. Is it a preferable way?

View Replies View Related

Runat="server"

What's the difference between runat="server" and using <%? Don't they both cause code to run at the server?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved