Torna al Thread

<asp:GridView ID="grdShowPayments" runat="server" AutoGenerateColumns="False" DataSourceID="dsGridView" onselectedindexchanged="grdShowPayments_SelectedIndexChanged" CellPadding="4" ForeColor="#333333" GridLines="None" Width="97%" AllowPaging="True" AllowSorting="True" DataKeyNames="payments_id"> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> <Columns> <asp:CommandField ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/App_Themes/Tema1/Blue/18/arrow_right.png" /> <asp:TemplateField HeaderText="Utente" SortExpression="athletes_firstname" ControlStyle-CssClass="paymentUserCol"> <ItemTemplate> <table> <tr> <th>Atleta:</th> <td> <strong class="txlv7"> <asp:Label ID="Label1" runat="server" Text='<%# Bind("athletes_firstname") %>'></asp:Label>&nbsp; <asp:Label ID="Label2" runat="server" Text='<%# Bind("athletes_lastname") %>'></asp:Label> </strong> </td> </tr> <tr> <th>Indirizzo:</th> <td><asp:Label ID="Label4" runat="server" Text='<%# Bind("athletes_address") %>'></asp:Label></td> </tr> <tr> <th>Telefono:</th> <td><strong class="txlv7"><asp:Label ID="Label3" runat="server" Text='<%# Bind("athletes_telephone") %>'></asp:Label></strong></asp:Label></td> </tr> </table> </ItemTemplate> <ControlStyle CssClass="paymentUserCol"></ControlStyle> <ItemStyle CssClass="paymentUserCol" /> </asp:TemplateField> <asp:TemplateField HeaderText="Informazioni pagamenti" SortExpression="payments_date" ControlStyle-CssClass="paymentInfoCol"> <ItemTemplate> <table> <tr> <td colspan="4"><strong class="txlv7"><asp:Label ID="Label10" runat="server" Text='<%# Bind("causals_description") %>'></asp:Label></strong></td> </tr> <tr> <th>Effettuato il</th> <td> <asp:Label ID="Label5" runat="server" Text='<%# Bind("payments_date","{0:d}") %>'></asp:Label></td> <th>Importo</th> <td class="tar"><strong class="txlv7"><asp:Label ID="Label6" runat="server" Text='<%# Bind("payments_value") %>'></asp:Label></strong></td> </tr> <tr> <th colspan="4">Note:</th> </tr> <tr> <td colspan="4"><asp:Label ID="Label7" runat="server" Text='<%# Bind("payments_note") %>'></asp:Label></td> </tr> <tr class="txlv4"> <td>Default value:</td> <td><asp:Label ID="Label12" runat="server" Text='<%# Bind("causals_default_value") %>'></asp:Label></td> </tr> <tr class="txlv3"> <th>Registrato da:</th> <td> <asp:HiddenField ID="hddUserIdInGrdInfo" runat="server" Value='<%# Eval("payments_user_in") %>' /> <asp:SqlDataSource ID="SqlDsuserIdInGrdInfo" runat="server" ConnectionString="<%$ ConnectionStrings:AspNetDb %>" SelectCommand="GetUsernameByUserId" SelectCommandType="StoredProcedure"> <SelectParameters> <asp:ControlParameter ControlID="hddUserIdInGrdInfo" Name="UserId" PropertyName="Value" Type="Object" /> </SelectParameters> </asp:SqlDataSource> <asp:Label ID="lblUserIdInGrdInfo" runat="server" Text='<%# Eval("payments_user_in") %>' ></asp:Label></td> <th>il:</th> <td><asp:Label ID="Label9" runat="server" Text='<%# Eval("payments_date_in") %>'></asp:Label></td> </tr> </table> </ItemTemplate> <ControlStyle CssClass="paymentInfoCol"></ControlStyle> <ItemStyle CssClass="paymentInfoCol" /> </asp:TemplateField> </Columns> <EditRowStyle BackColor="#999999" /> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#E9E7E2" /> <SortedAscendingHeaderStyle BackColor="#506C8C" /> <SortedDescendingCellStyle BackColor="#FFFDF8" /> <SortedDescendingHeaderStyle BackColor="#6F8DAE" /> </asp:GridView> <asp:SqlDataSource ID="dsGridView" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="GetPaymentByAthlete" SelectCommandType="StoredProcedure"> <SelectParameters> <asp:QueryStringParameter DefaultValue="-1" Name="athlete_id" QueryStringField="athlete_id" Type="Int32" /> </SelectParameters> </asp:SqlDataSource>
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5