Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Script blocks with VB
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00685656
Message ID:
00685714
Vues:
24
Thanks. I am reading Programming ASP.NET, and all the examples so far have the script tags before the html tag.

>The script tags go inside of the HEAD tags in ASP.NET. Here is a sample page with inline script code:
>
>
>< % ERROR: @ Page language="vb"  % >
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
><html>
>  <head>
>    <title>webform1</title>
>    <meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
>    <meta name="CODE_LANGUAGE" content="vb">
>    <meta name="vs_defaultClientScript" content="javascript">
>    <meta name="vs_targetSchema"
>content="http://schemas.microsoft.com/intellisense/ie5">
>    <script runat="server" language="vb">
>       * Put your VB.NET code here
>    </script>
>  </head>
>  <body ms_positioning="gridlayout">
>    <form id="Form1" method="post" runat="server">
>    </form>
>  </body>
></html>
>
>
>>Call me anal retentive (is that hyphenated <g>?), but I am having a problem with the HTML script /script tags. For some reason, VS.NET keeps putting the script block between the HEAD /HEAD tags, rather than before the HTML tag. Is this normal?
Chris McCandless
Red Sky Software
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform