Torna al Thread
<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" enableViewStateMac="false" Title="Approvazione" %>
<%@ Register Src="Utente.ascx" TagName="Utente" TagPrefix="uc1" %>
<script runat="server">
Protected Sub btnApprova_Click(ByVal sender As Object, ByVal e As System.EventArgs)
'codice commentato...
'update set status approvato where elenco id_utente da estrarre dal repeater
End Sub 'update set status approvato where elenco id_utente da estrarre dal repeater
Protected Sub btnSospendi_Click(ByVal sender As Object, ByVal e As System.EventArgs)
'update set status sospeso where elenco id_utente da estrarre dal repeater
End Sub
Protected Sub btnBlocca_Click(ByVal sender As Object, ByVal e As System.EventArgs)
'update set status bloccato where elenco id_utente da estrarre dal repeater
End Sub
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="form1">
<div>
<em><strong><span style="font-size: 14pt; color: appworkspace">Pagina di approvazione
utenti in STAND-BY<br />
</span></strong></em> <br />
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="sdsUtentiStandby">
<ItemTemplate>
<table><tr><td><asp:CheckBox ID="cbxSelezione" runat="server" /></td><td><uc1:Utente ID="Utente1" runat="server" idUtente='<%# Eval("id_utente") %>' /></td></tr></table>
</ItemTemplate>
</asp:Repeater>
<br />
<asp:Button ID="btnApprova" runat="server" OnClick="btnApprova_Click" Text="Approva" />
<asp:Button ID="btnSospendi" runat="server" OnClick="btnSospendi_Click" Text="Sospendi" />
<asp:Button ID="btnBlocca" runat="server" OnClick="btnBlocca_Click" Text="Blocca" />
<asp:SqlDataSource ID="sdsUtentiStandby" runat="server" ConnectionString="<%$ ConnectionStrings: ConnectionString2%>"
SelectCommand="SELECT [id_utente] FROM [vw_utenti] WHERE ([status_id] = @status_id) ORDER BY [utente_id]">
<SelectParameters>
<asp:Parameter DefaultValue="2" Name="status_id" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<br />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings: ConnectionString2 %>"
SelectCommand="SELECT * FROM [tbl_utente_preferenze]"></asp:SqlDataSource>
</div>
</form>
</asp:content >