bonjour
lorsque je met mon script sur le serveur les balises asp ne s'affichent pas ex:


<%@ Page %>
<HTML>
<HEAD>
<title>Login.aspx</title>
<Script Runat="Server">

Sub Button_Click( s As Object, e As EventArgs )
If IsValid Then
' If txtUsername.Text = "moi" And txtPassword.Text = "topsecret" Then
'FormsAuthentication.RedirectFromLoginPage( txtUsername.Text, chkRemember.Checked )
if FormsAuthentication.Authenticate( txtUsername.Text, txtPassword.Text) then
FormsAuthentication.RedirectFromLoginPage( txtUsername.Text, false)
Else
lblMessage.Text = "Nom ou mot de passe incorrect!"
End If
End If
End Sub

</Script>
</HEAD>
<body>
<form Runat="Server">
<h2><FONT face="Verdana" size="4">Accès au forum:</FONT></h2>
<hr>
<asp:Label ID="lblMessage" ForeColor="Red" Font-Bold="True" Runat="Server" />
<p>
<b><FONT face="Verdana" size="2">Nom d'utilisateur:</FONT></b>&nbsp;
<br>
<asp:TextBox ID="txtUsername" Runat="Server" />
<asp:RequiredFieldValidator ControlToValidate="txtUsername" Text="Entrez votre nom!" Runat="server" id="RequiredFieldValidator1" />
<p><STRONG><FONT face="Verdana" size="2">Mot de passe:</FONT></STRONG>
<br>
<asp:TextBox ID="txtPassword" Runat="Server" TextMode="Password" />
<asp:RequiredFieldValidator ControlToValidate="txtPassword" Text="Le mot de passe doit être renseigné!" Runat="server" id="RequiredFieldValidator2" />
<p>
<asp:CheckBox ID="chkRemember" Runat="Server" /><FONT face="Verdana" size="2">Se
souvenir du nom et du mot de passe?</FONT>
<hr>
<p>
<asp:Button Text="Valider" OnClick="Button_Click" Runat="server" id="Button1" />
</form>
</P>
</body>
</HTML>



alors qu'en html ca passe




en html



<%@ Import Namespace="System.Web.Security " %>
<HTML>
<HEAD>
<title>Login.aspx</title>
<script language="VB" runat=server>

Sub Button_Click( s As Object, e As EventArgs )
If IsValid Then
If txtUsername.Value = "moi" And txtPassword.Value = "pumaking" Then
FormsAuthentication.RedirectFromLoginPage( txtUsername.Value, chkRemember.Checked )
if FormsAuthentication.Authenticate( txtUsername.Value, txtPassword.Value) then
FormsAuthentication.RedirectFromLoginPage( txtUsername.Value, false)
Else
lblMessage.Text = "Nom ou mot de passe incorrect!"
End If
End If
End If
End Sub

</Script>
</HEAD>
<body>
<form Runat="Server">
<h2><FONT face="Verdana" size="4">Accès au forum:</FONT></h2>
<hr>
<asp:Label ID="lblMessage" ForeColor="Red" Font-Bold="True" Runat="Server" />
<p>
<b><FONT face="Verdana" size="2">Nom d'utilisateur:</FONT></b>&nbsp;
<br>
<td><input id="txtUsername"type="text" runat=server/></td>
<asp:RequiredFieldValidator ControlToValidate="txtUsername" Text="Entrez votre nom!" Runat="server" Display="Static" ErrorMessage="*" />
<p><STRONG><FONT face="Verdana" size="2">Mot de passe:</FONT></STRONG>
<br>
<td><input id="txtPassword"type="text" runat=server/></td>
<asp:RequiredFieldValidator ControlToValidate="txtPassword" Text="Le mot de passe doit être renseigné!" Runat="server" Display="Static" ErrorMessage="*" /></asp:RequiredFieldValidator>
<p>

<asp:CheckBox ID="chkRemember" Runat="Server" /><FONT face="Verdana" size="2">Se
souvenir du nom et du mot de passe?</FONT></asp:CheckBox>
<hr>
<p>
<INPUT TYPE="SUBMIT" VALUE="Validez" Runat="Server" OnServerClick="Button_Click"/><br>


</asp:Label>
</form>
</P>
</body>
</HTML>