Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET C#3.5
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.
 
<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 27-Sep-12 23:34pm
Edited 28-Sep-12 0:57am
v2
Comments
n.podbielski at 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 at 28-Sep-12 6:50am
   
for the above i want to retrieve the data in gridview..
Gopinath_Rajan at 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)

  Print Answers RSS
0 OriginalGriff 6,631
1 Sergey Alexandrovich Kryukov 6,345
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web01 | 2.8.140921.1 | Last Updated 28 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100