제목 : 31.12. GroupList.ascx : 전체 그룹(Roles) 리스트 : 컨트롤 기반으로 구성
글번호:
|
|
214
|
작성자:
|
|
레드플러스
|
작성일:
|
|
2007/07/06 오후 8:43:00
|
조회수:
|
|
5339
|
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="GroupList.ascx.cs" Inherits="GroupListControl" %>
전체 그룹 리스트<br />
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="UID"
DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="UID" HeaderText="UID" InsertVisible="False" ReadOnly="True"
SortExpression="UID" />
<asp:TemplateField HeaderText="그룹아이디">
<ItemTemplate>
<a href='GroupView.aspx?UID=<%# Eval("UID") %>'>
<%# Eval("DomainID") %>
</a>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
<asp:BoundField DataField="Type" HeaderText="Type" SortExpression="Type" />
<asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DotNetNoteConnectionString %>"
SelectCommand="GetGroups" SelectCommandType="StoredProcedure"></asp:SqlDataSource>