difference between <% and script

Discussion in 'C#' started by dolin88, Jul 26, 2008.

  1. #1
    Hi what is the difference between <% and script?
     
    dolin88, Jul 26, 2008 IP
  2. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #2
    I'm not sure what you mean :rolleyes:

    <% is the starting tag that define an ASP script as %> is the closing tag, similar to PHP open/starting tags <?php/?>

    The server need those tags to identify the programming language your script is written to render the proper content.

    Other this, I don't know what you mean by difference between such tag and a script.
     
    Trusted Writer, Jul 26, 2008 IP
  3. VishalVasani

    VishalVasani Peon

    Messages:
    560
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hello,

    1 .<% is used in asp for server side execution while script used for client side execution.

    2. The code within <% tag is executed by IIS server while script tags are executed by browser script engine.
     
    VishalVasani, Jul 27, 2008 IP
  4. dolin88

    dolin88 Banned

    Messages:
    322
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ok thanks.
     
    dolin88, Jul 27, 2008 IP