seance du 14.11.19
This commit is contained in:
parent
89f740d5f5
commit
29af9e0482
@ -1,7 +0,0 @@
|
|||||||
<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="boutique.About" %>
|
|
||||||
|
|
||||||
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
|
|
||||||
<h2><%: Title %>.</h2>
|
|
||||||
<h3>Your application description page.</h3>
|
|
||||||
<p>Use this area to provide additional information.</p>
|
|
||||||
</asp:Content>
|
|
||||||
17
boutique/About.aspx.designer.cs
generated
17
boutique/About.aspx.designer.cs
generated
@ -1,17 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// Ce code a été généré par un outil.
|
|
||||||
//
|
|
||||||
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
|
|
||||||
// le code est régénéré.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace boutique
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
public partial class About
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
@ -133,7 +133,7 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="About.aspx" />
|
<Content Include="button.aspx" />
|
||||||
<Content Include="Contact.aspx" />
|
<Content Include="Contact.aspx" />
|
||||||
<Content Include="Content\bootstrap-theme.css" />
|
<Content Include="Content\bootstrap-theme.css" />
|
||||||
<Content Include="Content\bootstrap-theme.min.css" />
|
<Content Include="Content\bootstrap-theme.min.css" />
|
||||||
@ -156,6 +156,7 @@
|
|||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<None Include="Scripts\jquery-3.3.1.intellisense.js" />
|
<None Include="Scripts\jquery-3.3.1.intellisense.js" />
|
||||||
|
<Content Include="linkbutton.aspx" />
|
||||||
<Content Include="produit2.aspx" />
|
<Content Include="produit2.aspx" />
|
||||||
<Content Include="produits.aspx" />
|
<Content Include="produits.aspx" />
|
||||||
<Content Include="Scripts\bootstrap.js" />
|
<Content Include="Scripts\bootstrap.js" />
|
||||||
@ -186,6 +187,7 @@
|
|||||||
<Content Include="Scripts\WebForms\WebForms.js" />
|
<Content Include="Scripts\WebForms\WebForms.js" />
|
||||||
<Content Include="Scripts\WebForms\WebParts.js" />
|
<Content Include="Scripts\WebForms\WebParts.js" />
|
||||||
<Content Include="Scripts\WebForms\WebUIValidation.js" />
|
<Content Include="Scripts\WebForms\WebUIValidation.js" />
|
||||||
|
<Content Include="session1.aspx" />
|
||||||
<Content Include="Site.Master" />
|
<Content Include="Site.Master" />
|
||||||
<Content Include="ViewSwitcher.ascx" />
|
<Content Include="ViewSwitcher.ascx" />
|
||||||
<Content Include="Web.config" />
|
<Content Include="Web.config" />
|
||||||
@ -194,14 +196,14 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="App_Start\BundleConfig.cs" />
|
<Compile Include="App_Start\BundleConfig.cs" />
|
||||||
<Compile Include="About.aspx.cs">
|
<Compile Include="App_Start\RouteConfig.cs" />
|
||||||
<DependentUpon>About.aspx</DependentUpon>
|
<Compile Include="button.aspx.cs">
|
||||||
|
<DependentUpon>button.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="About.aspx.designer.cs">
|
<Compile Include="button.aspx.designer.cs">
|
||||||
<DependentUpon>About.aspx</DependentUpon>
|
<DependentUpon>button.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="App_Start\RouteConfig.cs" />
|
|
||||||
<Compile Include="Contact.aspx.cs">
|
<Compile Include="Contact.aspx.cs">
|
||||||
<DependentUpon>Contact.aspx</DependentUpon>
|
<DependentUpon>Contact.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
@ -219,6 +221,13 @@
|
|||||||
<Compile Include="Global.asax.cs">
|
<Compile Include="Global.asax.cs">
|
||||||
<DependentUpon>Global.asax</DependentUpon>
|
<DependentUpon>Global.asax</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="linkbutton.aspx.cs">
|
||||||
|
<DependentUpon>linkbutton.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="linkbutton.aspx.designer.cs">
|
||||||
|
<DependentUpon>linkbutton.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="produit2.aspx.cs">
|
<Compile Include="produit2.aspx.cs">
|
||||||
<DependentUpon>produit2.aspx</DependentUpon>
|
<DependentUpon>produit2.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
@ -234,6 +243,13 @@
|
|||||||
<DependentUpon>produits.aspx</DependentUpon>
|
<DependentUpon>produits.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="session1.aspx.cs">
|
||||||
|
<DependentUpon>session1.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="session1.aspx.designer.cs">
|
||||||
|
<DependentUpon>session1.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Site.Master.cs">
|
<Compile Include="Site.Master.cs">
|
||||||
<DependentUpon>Site.Master</DependentUpon>
|
<DependentUpon>Site.Master</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
|||||||
29
boutique/button.aspx
Normal file
29
boutique/button.aspx
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="button.aspx.cs" Inherits="boutique.button" %>
|
||||||
|
|
||||||
|
<!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></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<div>
|
||||||
|
<asp:LinkButton ID="LinkButtonPromo" runat="server" OnClick="LinkButtonPromo_Click">Achat d’un produit en promotion</asp:LinkButton>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<asp:LinkButton ID="LinkButtonProduitNouveau" runat="server" OnClick="LinkButtonProduitNouveau_Click">Achat d’un produit nouveau</asp:LinkButton>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<asp:LinkButton ID="LinkButtonHorsPromotion" runat="server" OnClick="LinkButtonHorsPromotion_Click">Achat d'un produit hors promotion</asp:LinkButton>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<asp:TextBox ID="TextBoxTypeProduit" runat="server" OnTextChanged="TextBoxTypeProduit_TextChanged">Entrer un type de produit</asp:TextBox>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<asp:Label ID="LabelTypeProduit" runat="server" Text="Type de produit"></asp:Label>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
37
boutique/button.aspx.cs
Normal file
37
boutique/button.aspx.cs
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
|
namespace boutique
|
||||||
|
{
|
||||||
|
public partial class button : System.Web.UI.Page
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LinkButtonPromo_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LabelTypeProduit.Text = LinkButtonPromo.Text;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LinkButtonProduitNouveau_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LabelTypeProduit.Text = LinkButtonProduitNouveau.Text;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LinkButtonHorsPromotion_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LabelTypeProduit.Text = LinkButtonHorsPromotion.Text;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void TextBoxTypeProduit_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LabelTypeProduit.Text = LabelTypeProduit.Text + " " + TextBoxTypeProduit.Text;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
69
boutique/button.aspx.designer.cs
generated
Normal file
69
boutique/button.aspx.designer.cs
generated
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <généré automatiquement>
|
||||||
|
// Ce code a été généré par un outil.
|
||||||
|
//
|
||||||
|
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
|
||||||
|
// le code est régénéré.
|
||||||
|
// </généré automatiquement>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace boutique {
|
||||||
|
|
||||||
|
|
||||||
|
public partial class button {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle form1.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle LinkButtonPromo.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.LinkButton LinkButtonPromo;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle LinkButtonProduitNouveau.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.LinkButton LinkButtonProduitNouveau;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle LinkButtonHorsPromotion.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.LinkButton LinkButtonHorsPromotion;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle TextBoxTypeProduit.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.TextBox TextBoxTypeProduit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle LabelTypeProduit.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label LabelTypeProduit;
|
||||||
|
}
|
||||||
|
}
|
||||||
26
boutique/linkbutton.aspx
Normal file
26
boutique/linkbutton.aspx
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="linkbutton.aspx.cs" Inherits="boutique.linkbutton" %>
|
||||||
|
|
||||||
|
<!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></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<div>
|
||||||
|
<asp:LinkButton ID="LinkButtonPromo" runat="server" OnClick="LinkButtonPromo_Click">Achat d’un produit en promotion</asp:LinkButton>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<asp:LinkButton ID="LinkButtonHorsPromo" runat="server" OnClick="LinkButtonHorsPromo_Click">Achat d’un produit hors promotion</asp:LinkButton>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<asp:LinkButton ID="LinkButtonProduitNouveau" runat="server" OnClick="LinkButtonProduitNouveau_Click">Achat d’un produit nouveau</asp:LinkButton>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<asp:Label ID="LabelTypeProduit" runat="server" Text="Sélectionner un type de produit"></asp:Label>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
32
boutique/linkbutton.aspx.cs
Normal file
32
boutique/linkbutton.aspx.cs
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
|
namespace boutique
|
||||||
|
{
|
||||||
|
public partial class linkbutton : System.Web.UI.Page
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LinkButtonPromo_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LabelTypeProduit.Text = LinkButtonPromo.Text;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LinkButtonHorsPromo_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LabelTypeProduit.Text = LinkButtonHorsPromo.Text;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void LinkButtonProduitNouveau_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LabelTypeProduit.Text = LinkButtonProduitNouveau.Text;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
60
boutique/linkbutton.aspx.designer.cs
generated
Normal file
60
boutique/linkbutton.aspx.designer.cs
generated
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <généré automatiquement>
|
||||||
|
// Ce code a été généré par un outil.
|
||||||
|
//
|
||||||
|
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
|
||||||
|
// le code est régénéré.
|
||||||
|
// </généré automatiquement>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace boutique {
|
||||||
|
|
||||||
|
|
||||||
|
public partial class linkbutton {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle form1.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle LinkButtonPromo.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.LinkButton LinkButtonPromo;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle LinkButtonHorsPromo.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.LinkButton LinkButtonHorsPromo;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle LinkButtonProduitNouveau.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.LinkButton LinkButtonProduitNouveau;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle LabelTypeProduit.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label LabelTypeProduit;
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
@ -1 +1 @@
|
|||||||
b104c2d57e224fb17d7fffeb3c24c1659367d8eb
|
fc16e12974ea0de8dbd24e5985fcb97bdfd6e1dc
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -9,7 +9,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body style="text-align: center">
|
<body style="text-align: center">
|
||||||
<form id="form1" runat="server">
|
<form id="form1" runat="server">
|
||||||
<asp:RadioButtonList ID="RadioButtonListCategories" runat="server" OnSelectedIndexChanged="RadioButtonListCategories_SelectedIndexChanged" style="text-align: center" Width="1030px">
|
<asp:RadioButtonList ID="RadioButtonListCategories" runat="server" OnSelectedIndexChanged="RadioButtonListCategories_SelectedIndexChanged" style="text-align: left" align="center">
|
||||||
<asp:ListItem Value="Ecrans"></asp:ListItem>
|
<asp:ListItem Value="Ecrans"></asp:ListItem>
|
||||||
<asp:ListItem Value="Imprimantes"></asp:ListItem>
|
<asp:ListItem Value="Imprimantes"></asp:ListItem>
|
||||||
<asp:ListItem Value="Unités centrales"></asp:ListItem>
|
<asp:ListItem Value="Unités centrales"></asp:ListItem>
|
||||||
|
|||||||
@ -22,7 +22,7 @@ namespace boutique
|
|||||||
protected void ButtonChoisir_Click(object sender, EventArgs e)
|
protected void ButtonChoisir_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//LabelAfficher.Text = TextBox.Text;
|
//LabelAfficher.Text = TextBox.Text;
|
||||||
LabelAfficher.Text = RadioButtonListCategories.Text;
|
LabelAfficher.Text = RadioButtonListCategories.Text + " " + TextBox.Text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
31
boutique/session1.aspx
Normal file
31
boutique/session1.aspx
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="session1.aspx.cs" Inherits="boutique.session1" %>
|
||||||
|
|
||||||
|
<!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></title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<div>
|
||||||
|
<asp:Label ID="LabelIdentifiant" runat="server" Text="Entrer votre identifiant"></asp:Label>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<asp:TextBox ID="TextBoxIdentifiant" runat="server">identifiant</asp:TextBox>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<asp:Label ID="Label1" runat="server" Text="Entrer votre mot de passe"></asp:Label>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<input id="TextBoxPassword" type="password" /><br />
|
||||||
|
<br />
|
||||||
|
<asp:Button ID="ButtonEntrer" runat="server" OnClick="ButtonEntrer_Click" Text="Entrer" />
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<asp:LinkButton ID="LinkButtonSuite" runat="server">Suite</asp:LinkButton>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -7,11 +7,17 @@ using System.Web.UI.WebControls;
|
|||||||
|
|
||||||
namespace boutique
|
namespace boutique
|
||||||
{
|
{
|
||||||
public partial class About : Page
|
public partial class session1 : System.Web.UI.Page
|
||||||
{
|
{
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void ButtonEntrer_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Session["identifiant"] = TextBoxIdentifiant.Text;
|
||||||
|
Session["logged"]//j'en suis la
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
69
boutique/session1.aspx.designer.cs
generated
Normal file
69
boutique/session1.aspx.designer.cs
generated
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <généré automatiquement>
|
||||||
|
// Ce code a été généré par un outil.
|
||||||
|
//
|
||||||
|
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
|
||||||
|
// le code est régénéré.
|
||||||
|
// </généré automatiquement>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace boutique {
|
||||||
|
|
||||||
|
|
||||||
|
public partial class session1 {
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle form1.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle LabelIdentifiant.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label LabelIdentifiant;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle TextBoxIdentifiant.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.TextBox TextBoxIdentifiant;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle Label1.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label Label1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle ButtonEntrer.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Button ButtonEntrer;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Contrôle LinkButtonSuite.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Champ généré automatiquement.
|
||||||
|
/// Pour modifier, déplacez la déclaration de champ du fichier de concepteur dans le fichier code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.LinkButton LinkButtonSuite;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user