Results 1 to 3 of 3

Thread: Explanation needed: RUNAT="server"

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Three Anchor Bay, Cape Town, South Africa
    Posts
    769

    Explanation needed: RUNAT="server"

    Hi,

    I have used htm pages that have script blocks in them. I know that these run on the client side. As far as I know, htm files are not processed by IIS at all and so no server side script can be run from within these pages (right?).

    I have just seen that VI6 allows a script block within an htm page with the RUNAT=server property. Does this really make the script run on the server? Can I call that function from the client side to run on the server at any time?

    Can anyone explain what this is for?

    Thanks

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    <script runat='server'>

    is nothing different than
    <%

    %>

    for asp

    it is just another way to do it and provides no special abilities.

    "Can I call that function from the client side to run on the server at any time?
    "

    No
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    As Cander says, <% %> is merely a short way of writing <script runat="server" language="????Script">, replacing ????Script with whatever you have set for the default scripting language.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width