<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <table > <tr> <td> <asp:Panel ID="pnlSearchJobType" runat="server" GroupingText="Filter"> <table width="100%"> <tr> <td width="100"> </td> <td width="150"> Job Type </td> <td width="20"> : </td> <td> <asp:DropDownList ID="ddlobype" runat="server" AppendDataBoundItems="True" Width="135px" SkinID="DDListNormal"> <asp:ListItem Selected="True" Value="-1">--- ALL ---</asp:ListItem> </asp:DropDownList> </td> <td align="right" width="100"> <asp:Button ID="btnSearch" runat="server" Text="Search" Height="26px" /> </td> <td width="100"> </td> </tr> </table> </asp:Panel> </td> </tr> <tr> <td> <asp:Panel ID="Panel1" runat="server" Width="100%" GroupingText="Job Type List"> <asp:GridView ID="gvJobType" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataSourceID="objDsJobType" SkinID="SkinGrid" Width="100%" OnPageIndexChanging="gvJobType_PageIndexChanging" OnRowDataBound="gvJobType_RowDataBound"> <Columns> <asp:TemplateField HeaderText="JobTypeId" InsertVisible="False" SortExpression="JobTypeId" Visible="False"> <ItemTemplate> <asp:Label ID="lblItemJobTypeId" runat="server" Text='<%# Bind("JobTypeId") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Job Type" SortExpression="JobType"> <ItemTemplate> <asp:Label ID="lblItemJobType" runat="server" Text='<%# Bind("JobType") %>'></asp:Label> </ItemTemplate> <ItemStyle Width="200px" /> </asp:TemplateField> <asp:TemplateField HeaderText="Job Description" SortExpression="JobDescription"> <ItemTemplate> <asp:Label ID="lblItemDescription" runat="server" Text='<%# Bind("JobDescription") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> </Columns> <EmptyDataTemplate>    No Records found... </EmptyDataTemplate> </asp:GridView> </asp:Panel> <tr> <td> </td> </tr> </table> <asp:ObjectDataSource ID="objDsJobType" runat="server" SelectMethod="GetJobTypeDetails" UpdateMethod="UpdateJobType" OldValuesParameterFormatString="{0}"> <DeleteParameters> <asp:Parameter Name="JobTypeId" Type="Int32" /> </DeleteParameters> <UpdateParameters> <asp:Parameter Name="JobTypeId" Type="Int32" /> <asp:Parameter Name="JobType" Type="String" /> <asp:Parameter Name="JobDescription" Type="String" /> </UpdateParameters> </asp:ObjectDataSource> </ContentTemplate> </asp:UpdatePanel>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)