This repository has been archived by the owner on Dec 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
EditConnections.ascx
38 lines (37 loc) · 2.57 KB
/
EditConnections.ascx
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
<%@ Control Language="C#" Inherits="DNNStuff.SQLViewPro.EditConnections" CodeBehind="EditConnections.ascx.cs" AutoEventWireup="true" Explicit="True" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<div class="dnnForm dnnClear">
<div class="dnnFormItem">
<dnn:label id="lblConnections" runat="server" controlname="dgConnection" suffix=":" />
<asp:LinkButton ID="cmdAddConnection" runat="server" CssClass="CommandButton" resourcekey="cmdAddConnection" OnClick="cmdAddConnection_Click">Add Connection</asp:LinkButton>
</div>
<div class="dnnFormItem">
<asp:DataGrid ID="dgConnection" CssClass="Grid" runat="server" AutoGenerateColumns="False" Width="100%" DataKeyField="ConnectionId" OnItemCommand="dgConnection_ItemCommand" OnItemDataBound="dgConnection_ItemDataBound">
<HeaderStyle CssClass="GridHeader" />
<ItemStyle CssClass="GridItem" />
<AlternatingItemStyle CssClass="GridAltItem" />
<FooterStyle CssClass="GridFooter" />
<PagerStyle CssClass="PagerStyle" />
<Columns>
<asp:TemplateColumn ItemStyle-Width="30px">
<ItemTemplate>
<asp:LinkButton ID="cmdDeleteConnection" runat="server" Text="Del" ResourceKey="cmdDelete" CommandName="Delete" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ConnectionId") %>' Enabled='<%# DataBinder.Eval(Container.DataItem, "CanDelete") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn ItemStyle-Width="30px">
<ItemTemplate>
<asp:LinkButton ID="cmdEditConnection" runat="server" Text="Edit" ResourceKey="cmdEdit" CommandName="Edit" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ConnectionId") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="ConnectionName" HeaderText="ConnectionName"></asp:BoundColumn>
<asp:BoundColumn DataField="UsedInReportSetCount" HeaderText="UsedInReportSets"></asp:BoundColumn>
<asp:BoundColumn DataField="UsedInReportCount" HeaderText="UsedInReports"></asp:BoundColumn>
</Columns>
</asp:DataGrid>
</div>
</div>
<ul class="dnnActions dnnClear">
<li>
<asp:LinkButton class="dnnPrimaryAction" ID="cmdCloseBottom" Text="Close" runat="server" CausesValidation="False" ResourceKey="Close" OnClick="cmdClose_Click"/>
</li>
</ul>