1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
protected void Button1_Click(object sender, EventArgs e)
{
Label2.Text = "Refreshed at " +
DateTime.Now.ToString();
}
<div id="corps" >
<table align="center">
<td>
<asp:Label ID="Label1" runat="server" Text="NOM DU SCENARIO :"></asp:Label>
<asp:DropDownList ID="Liste_Scenario" runat="server"
DataSourceID="SqlDataSource1" DataTextField="Nom_Scenario"
DataValueField="Nom_Scenario" AutoPostBack="True">
<asp:ListItem Enabled="True" Selected="True">Garage</asp:ListItem>
<asp:ListItem Enabled="True">Reveil</asp:ListItem>
<asp:ListItem Enabled="True">Lampe</asp:ListItem>
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:domo_infoConnectionString1 %>"
SelectCommand="SELECT [Nom_Scenario] FROM [Scenarios]">
</asp:SqlDataSource>
<asp:Button runat="server" Text="Jouer le scénario" />
<asp:Button runat="server" Text="Arrêter le scénario" />
</td>
</table>
<br/>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<br/>
<asp:UpdatePanel ID="UpdatePanel" runat="server" UpdateMode = "Conditional">
<ContentTemplate>
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label><br />
<asp:Button ID="Button1" runat="server" Text="Actualiser la liste"
onclick="Button1_Click" />
</ContentTemplate>
</asp:UpdatePanel> |
Partager