<%@ Page Title="" Language="C#" MasterPageFile="~/Book/Book.master" AutoEventWireup="true" CodeBehind="Recurring.aspx.cs" Inherits="Book.Book.Recurring" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cont_form" runat="server">



    

<p>Recurring Conference</p>

<asp:GridView runat="server" ID="gv_rec"
     GridLines="None"
     CssClass="table"    
     DataKeyNames="id" 
     AutoGenerateColumns="false" 
     DataSourceID="SqlDataSource1"  >
<Columns>
 



<asp:BoundField DataField="ID" HeaderText="ID"  ItemStyle-Width=70 />
<asp:BoundField DataField="UserName" HeaderText="预订人"  ItemStyle-Width=120 />
 
<asp:TemplateField>
<ItemStyle Width=130 />
<HeaderTemplate>会议室</HeaderTemplate>
<ItemTemplate>
<%#GetRoom(Eval("roomname")) %>
</ItemTemplate>

</asp:TemplateField>

<asp:BoundField DataField="BeginTime" HeaderText="Begin"  ItemStyle-Width=120 />
<asp:BoundField DataField="EndTime" HeaderText="Emd"  ItemStyle-Width=120 />

<asp:BoundField DataField="Intro" HeaderText="Subject"  ItemStyle-Width=400 />

    <asp:CommandField ShowDeleteButton="true"  ItemStyle-Width=60px  DeleteText="<div  onclick=&quot;JavaScript:return confirm('你确认删除?')&quot;>删除<div/>" />

</Columns>
 
</asp:GridView>


    <asp:SqlDataSource ID="SqlDataSource1"
    
     DeleteCommand=" delete from book_booklist where id=@id "
       SelectCommand="select ID, username,begintime,endtime, RoomName, Intro from book_booklist where rec is not null   and userid=@uid order by id desc "
       ConnectionString='<%$ Connectionstrings:connectionstring %>'
    
     runat="server" onselecting="SqlDataSource1_Selecting">
     <SelectParameters>
     <asp:Parameter Name="uid"  DefaultValue=0 />
     </SelectParameters>
     
     </asp:SqlDataSource>
<br />
 


</asp:Content>
