<%@ Page Language="C#" AutoEventWireup="true" CodeFile="enligne.aspx.cs" Inherits="enligne" %>
<script runat="server">
    // contient le code événementiel
    void traiter_click(object sender, EventArgs e)
    {
        message.Text = "Vous avez cliqué !";
    }
    
</script>

<!-- limite entre le code C# et le code HTML -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Style en-ligne</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="message" runat="server"></asp:Label>
        <asp:Button ID="cmd" runat="server" Text="Cliquer ici" OnClick="traiter_click" />
    </div>
    </form>
</body>
</html>
