added product2

This commit is contained in:
haas flavien 2019-11-04 11:50:51 +01:00
parent 4ff03c4bdc
commit 89f740d5f5
11 changed files with 28 additions and 20 deletions

Binary file not shown.

Binary file not shown.

View File

@ -156,6 +156,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="Scripts\jquery-3.3.1.intellisense.js" />
<Content Include="produit2.aspx" />
<Content Include="produits.aspx" />
<Content Include="Scripts\bootstrap.js" />
<Content Include="Scripts\bootstrap.min.js" />
@ -218,6 +219,13 @@
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Compile Include="produit2.aspx.cs">
<DependentUpon>produit2.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="produit2.aspx.designer.cs">
<DependentUpon>produit2.aspx</DependentUpon>
</Compile>
<Compile Include="produits.aspx.cs">
<DependentUpon>produits.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

View File

@ -1 +1 @@
c54f4029dc52d1154fb377bbab0d46e9c3f7cac1
b104c2d57e224fb17d7fffeb3c24c1659367d8eb

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
c54f4029dc52d1154fb377bbab0d46e9c3f7cac1
b104c2d57e224fb17d7fffeb3c24c1659367d8eb

View File

@ -7,22 +7,21 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<body style="text-align: center">
<form id="form1" runat="server">
<div>
</div>
<asp:RadioButtonList ID="RadioButtonListCategories" runat="server" OnSelectedIndexChanged="RadioButtonListCategories_SelectedIndexChanged">
<asp:RadioButtonList ID="RadioButtonListCategories" runat="server" OnSelectedIndexChanged="RadioButtonListCategories_SelectedIndexChanged" style="text-align: center" Width="1030px">
<asp:ListItem Value="Ecrans"></asp:ListItem>
<asp:ListItem Value="Imprimantes"></asp:ListItem>
<asp:ListItem Value="Unités centrales"></asp:ListItem>
</asp:RadioButtonList>
<p>
<asp:Label ID="LabelEntrerUnTexte" runat="server" Text="Entrer un texte"></asp:Label>
</p>
<asp:Button ID="ButtonChoisir" runat="server" Text="Choisir" />
<br />
<asp:TextBox ID="TextBox" runat="server">Entrez un texte</asp:TextBox>
<br />
<br />
<asp:Label ID="Label2" runat="server" Text="LabelAfficher"></asp:Label>
<asp:Button ID="ButtonChoisir" runat="server" OnClick="ButtonChoisir_Click" Text="Choisir" />
<br />
<br />
<asp:Label ID="LabelAfficher" runat="server" Text="LabelAfficher"></asp:Label>
</form>
</body>
</html>

View File

@ -18,5 +18,11 @@ namespace boutique
{
}
protected void ButtonChoisir_Click(object sender, EventArgs e)
{
//LabelAfficher.Text = TextBox.Text;
LabelAfficher.Text = RadioButtonListCategories.Text;
}
}
}

View File

@ -31,13 +31,13 @@ namespace boutique {
protected global::System.Web.UI.WebControls.RadioButtonList RadioButtonListCategories;
/// <summary>
/// Contrôle LabelEntrerUnTexte.
/// Contrôle TextBox.
/// </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 LabelEntrerUnTexte;
protected global::System.Web.UI.WebControls.TextBox TextBox;
/// <summary>
/// Contrôle ButtonChoisir.
@ -49,12 +49,12 @@ namespace boutique {
protected global::System.Web.UI.WebControls.Button ButtonChoisir;
/// <summary>
/// Contrôle Label2.
/// Contrôle LabelAfficher.
/// </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 Label2;
protected global::System.Web.UI.WebControls.Label LabelAfficher;
}
}

View File

@ -13,10 +13,5 @@ namespace boutique
{
}
protected void Button1_Click(object sender, EventArgs e)
{
labellisteproduits.Text = DropDownListeCategories.Text;
}
}
}