home | create | search | help
  1. <%@ Page Language="C#" MasterPageFile="~/Forms/Common/MasterPage.master" AutoEventWireup="true"
  2.     CodeFile="ViewContacts.aspx.cs" Inherits="Forms_Contacts_ViewContacts" Title="MyScheduler :: ViewContacts" %>
  3.  
  4. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
  5.  
  6.  
  7.     <script language="javascript" type="text/javascript">
  8.     var bSelected=false;
  9.     function ChSel()
  10.     {
  11.         var theForm = document.forms['aspnetForm'];
  12.         if (!theForm) theForm = document.aspnetForm;
  13.         bSelected = true;
  14.         var i;
  15.         for (i=0;i<theForm.chkselect.length;++i) theForm.chkselect[i].checked=bSelected;
  16.     }
  17.     function ChUnSel()
  18.     {
  19.         var theForm = document.forms['aspnetForm'];
  20.         if (!theForm) theForm = document.aspnetForm;
  21.         bSelected = false;
  22.         var i;
  23.         for (i=0;i<theForm.chkselect.length;++i) theForm.chkselect[i].checked=bSelected;
  24.     }
  25.  
  26.     function a(url)
  27.     {
  28.         alert(url);
  29.     }
  30.     </script>
  31.  
  32.     <asp:UpdatePanel id="UpdatePanel1" runat="server">
  33.         <contenttemplate>
  34.         <div style="text-align: -moz-center; !text-align: ceter;">
  35.     <table style="width: 100%" class="table">
  36.         <tr>
  37.             <td colspan="3" style="height: 13px; text-align: center" class="tdtitle">
  38.                
  39.  
  40.  
  41.                 My Contacts</td>
  42.         </tr>
  43.         <tr>
  44.             <td style="width:30%; text-align: right;">
  45.                 Search contacts</td>
  46.             <td style="width:40%">
  47.                 <asp:TextBox ID="txtsearch" runat="server" Width="198px" CssClass="textbox"></asp:TextBox></td>
  48.             <td style="width:30%; text-align: left;">
  49.                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtsearch"
  50.                     Display="Dynamic" ErrorMessage="RequiredFieldValidator" ToolTip="Required" ValidationGroup="a">*</asp:RequiredFieldValidator>
  51.                 <asp:ImageButton ID="btngo" runat="server" ImageUrl="~/Designer/images/button_go.gif"
  52.                     OnClick="btngo_Click" ValidationGroup="a" />
  53.                 &nbsp;&nbsp;
  54.                 <asp:ImageButton ID="btnclear" runat="server" ImageUrl="~/Designer/images/button_clear.gif" CausesValidation="False" OnClick="btnclear_Click" />&nbsp;
  55.             </td>
  56.         </tr>
  57.         <tr>
  58.             <td style="width: 30%; text-align: right">
  59.             </td>
  60.             <td style="width: 40%">
  61.                 &nbsp;</td>
  62.             <td style="width: 30%; text-align: left">
  63.             </td>
  64.         </tr>
  65.         <tr>
  66.             <td style="width: 30%; text-align: right">
  67.             </td>
  68.             <td style="width: 40%; text-align: right">
  69.                 <a style=" -moz-user-select: none; cursor: pointer;" onclick="return ChSel();"><asp:Image ID="Image2" runat="server" ImageUrl="~/Designer/images/button_select_all.gif" /></a>
  70.                 </td>
  71.             <td style="width: 30%; text-align: left">
  72.                 &nbsp;<a  style=" -moz-user-select: none; cursor: pointer;" onclick="return ChUnSel()"><asp:Image ID="Image3" runat="server" ImageUrl="~/Designer/images/button_deselect_all.gif" /></a></td>
  73.         </tr>
  74.         </table>
  75.         <div style="text-align: -moz-center; !text-align:center;">
  76.                 <asp:GridView ID="grdcontacts" runat="server" AutoGenerateColumns="False" Width="423px" AllowPaging="True" OnPageIndexChanging="grdcontacts_PageIndexChanging" OnRowEditing="grdcontacts_RowEditing" OnSelectedIndexChanged="grdcontacts_SelectedIndexChanged" CssClass="Grid">
  77.                 <FooterStyle CssClass="GridFooter" />
  78.                                 <RowStyle CssClass="GridItem" HorizontalAlign="Center" />
  79.                                 <SelectedRowStyle CssClass="GridSelectedItem" />
  80.                                 <PagerStyle CssClass="GridPager" />
  81.                                 <HeaderStyle CssClass="GridHeader" HorizontalAlign="Left" />
  82.                                 <AlternatingRowStyle CssClass="GridAlternatingItem" />
  83.                     <Columns>
  84.                         <asp:TemplateField>
  85.                             <ItemTemplate>
  86.                                 <img id="id1" src='<%# Eval("vch_photo","Photo/{0}") %>' style=" -moz-user-select: none; cursor: pointer;" height="30px" width="30px" onclick="showPopWin('<%# Eval("vch_photo","Photo/{0}") %>', 450, 200, null);" />
  87.                             </ItemTemplate>
  88.                         </asp:TemplateField>
  89.                         <asp:BoundField DataField="num_cid" HeaderText="num_cid" Visible="False">
  90.                             <ItemStyle HorizontalAlign="Left" />
  91.                             <HeaderStyle HorizontalAlign="Left" />
  92.                         </asp:BoundField>
  93.                         <asp:BoundField DataField="vch_firstnm" HeaderText="FirstName">
  94.                             <ItemStyle HorizontalAlign="Left" />
  95.                             <HeaderStyle HorizontalAlign="Left" />
  96.                         </asp:BoundField>
  97.                         <asp:BoundField DataField="vch_lastnm" HeaderText="LastName">
  98.                             <ItemStyle HorizontalAlign="Left" />
  99.                             <HeaderStyle HorizontalAlign="Left" />
  100.                         </asp:BoundField>
  101.                         <asp:BoundField DataField="vch_email" HeaderText="EmailID">
  102.                             <ItemStyle HorizontalAlign="Left" />
  103.                             <HeaderStyle HorizontalAlign="Left" />
  104.                         </asp:BoundField>
  105.                         <asp:CommandField ShowEditButton="True">
  106.                             <HeaderStyle HorizontalAlign="Left" />
  107.                             <ItemStyle HorizontalAlign="Left" />
  108.                         </asp:CommandField>
  109.                         <asp:TemplateField HeaderText="Select">
  110.                             <ItemTemplate>
  111.                              <input type="checkbox" name="chkselect" value='<%#DataBinder.Eval(Container,"RowIndex")%>'/>
  112.                             </ItemTemplate>
  113.                         </asp:TemplateField>
  114.                     </Columns>
  115.                     <EmptyDataTemplate>
  116.                         <span style="font-size: 14pt; color: red; font-family: Verdana">No Records Found</span>
  117.                     </EmptyDataTemplate>
  118.                 </asp:GridView>
  119.                 </div>
  120.               <div style="text-align: right;">
  121.                   <img src="../../Designer/images/button_back_2col.gif" />
  122.               </div>
  123.                 <asp:ImageButton ID="btndelete" runat="server" ImageUrl="~/Designer/images/button_delete_selected.gif" OnClick="btndelete_Click" />
  124.     </div>
  125.     <div style="height: 100%; width: 100%; text-align: right;"></div>
  126.     </contenttemplate>
  127.     </asp:UpdatePanel>
  128. </asp:Content>
  129.  
  130.  
Subscribe to this code! Get Firefox! Valid XHTML Valid CSS Powered By GeSHi 413 pieces of code saved