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:
00685715
Vues:
14
Many earlier books were written using Notepad as the editor instead of VS.NET. That could what you are seeing.

>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?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform