Runat
Where exactly does RUNAT="Server"go in the code
View RepliesWhere exactly does RUNAT="Server"go in the code
View Repliescan 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
The following code snippet
----------------------------------------
<script language="VBScript" runat=server>
<%
a=1
%>
</script>
<%= a %>
----------------------------------------
throws the "Expected statement" error pointing to line no. 2. Why?
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?
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?
What's the difference between runat="server" and using <%? Don't they both cause code to run at the server?
View Replies View Related