Click here to Skip to main content
15,887,290 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Experts ,
plz help me about my code..
I tried sooo lot but i am not getting ..

plz suggest me the c# code...
my design code is..
source code.

XML
<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">
                                        &nbsp;
                                    </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>
                                    &#160;&#160; 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>
Posted
Updated 28-Sep-12 0:57am
v2
Comments
n.podbielski 28-Sep-12 5:52am    
1. You should use proper English.
2. Ask you question with more specific information about what you trying to do exactly.
Member 9376025 28-Sep-12 6:50am    
for the above i want to retrieve the data in gridview..
Gopinath_Rajan 1-Oct-12 6:06am    
What you want actually, i didn't get your question

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900