<%@ page language="C#" masterpagefile="~/RotarySevaTrust.master" autoeventwireup="true" inherits="photo_gallery, App_Web_photo gallery.aspx.cdcab7d2" title="Welcome to Rotary Seva Trust" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
    <script src="js/prototype.js" type="text/javascript"></script>
    <script src="js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
    <script src="js/lightbox.js" type="text/javascript"></script>

<form id="form1" runat="server">
    <div class="wrapper row4">
        <div id="container" class="clear">
            <!-- ####################################################################################################### -->
            <div id="wrapper_main">
                <div id="wrapper_left">
                    <h2 class="title">
                        Select Categry:</h2>
                        
                    <div id="hpage_quicklinks">
                        <ul class="clear">
                        <asp:DataList ID="DataList1" runat="server" Width="200px"
                                DataSourceID="AccessDataSource2" style="text-align: left" OnItemCommand="DataList1_ItemCommand">
                                <ItemTemplate>
                                    <table border="0">
                                        <tr>
                                            <td>
                                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Edit"
                                                    Text='<%# Eval("Category_Name", "{0}") %>'></asp:LinkButton>
                                                <hr style="color: #800000; margin-top: 0px; margin-bottom: 0px" />
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:DataList>
                            <asp:AccessDataSource ID="AccessDataSource2" runat="server" 
                                DataFile="~/App_Data/superwit.mdb" 
                                SelectCommand="SELECT [Category_Name] FROM [categories] WHERE ([Category_Name] &lt;&gt; ?) ORDER BY [Category_Name]">
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="Select" Name="Category_Name" Type="String" />
                                </SelectParameters>
                            </asp:AccessDataSource>  
                                 </ul> <br />         
                       </div>
                    
                    </div> 
<div id="wrapper_right">
                    <h2 class="title">
                        Photo Gallery:</h2>
                    <div id="hpage_latestnews">
               
                            <b></b><asp:TextBox ID="TextBox1" runat="server" Visible="False">first</asp:TextBox>
                        
                            <table>
                                <tr>
                                    <td>
                                        <asp:DataList ID="DataList2" runat="server" BackColor="#CCCCCC" 
                                            BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" 
                                            DataSourceID="AccessDataSource1" Font-Bold="False" Font-Italic="False" 
                                            Font-Overline="False" Font-Strikeout="False" Font-Underline="False" 
                                            GridLines="Both" Height="247px" HorizontalAlign="Center" 
                                            RepeatColumns="2" style="margin-right: 2px;" Width="721px" CellSpacing="2" 
                                            ForeColor="Black">
                                            <FooterStyle BackColor="#CCCCCC" />
                                            <ItemStyle BackColor="White" />
                                            <SelectedItemStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                            <ItemTemplate>
                                                <div class="style17">
                                                    <table align="left" class="style18" 
                                                        style="height: 221px;  width: 287px;">
                                                        <tr>
                                                            <td class="style30">
                                                                <a href='<%# Eval("Image", "./Gallery/{0}") %>' rel="lightbox"><asp:Image 
                                                                    ID="Image3" runat="server" Height="245px" 
                                                                    ImageUrl='<%# Eval("Image", "~/gallery/{0}") %>' 
                                                                    tooltip='<%# Eval("Image") %>' Width="292px" />
                                                                </a>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style30">
                                                                Category :<asp:Label ID="Label1" runat="server" 
                                                                    style="color: #000000" Text='<%# Eval("functiion_name", "{0}") %>'></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style30" style="font-size:11px;">
                                                                Description :<asp:Label ID="Label2" runat="server" 
                                                                    style="color: #000000" Text='<%# Eval("Description", "{0}") %>'></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                            </ItemTemplate>
                                        </asp:DataList>
                                        <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
                                            DataFile="~/App_Data/superwit.mdb" 
                                            
                                            SelectCommand="SELECT [Sr_No], [Image], [functiion_name],[Description] FROM [gallery] WHERE ([functiion_name] = ?) ORDER BY [Sr_No]">
                                            <SelectParameters>
                                                <asp:ControlParameter ControlID="TextBox1" Name="functiion_name" 
                                                    PropertyName="Text" Type="String" />
                                            </SelectParameters>
                                        </asp:AccessDataSource>
                                    </td>
                                </tr>
                            </table><br /><br /><br /><br /><br /><br />
                       </div> </div> </div> </div> </div> 
</form>
</asp:Content>

