<%@ Page Language="C#" AutoEventWireup="true" CodeFile="balises_html.aspx.cs" Inherits="balises_html" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Balises HTML</title>
</head>
<body>
    <%
    /* code applicable sans l'attribut runat="server" */
    string p = Request["prenom"];
    string b = Request["bouton1"];
    if (b != null && b != "")
        Response.Write("Le prénom est "+ p);
    
%>
    <form id="form1" runat="server">
    <div>
     <input ID="prenom" type="text" name="prenom" runat="server" />
        <input type="submit" name="bouton1" value="Envoyer"  onserverclick="bouton1_click" />
    </div>
    </form>
</body>
</html>
