Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
XML
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


    <table align="center">
        <tr>
            <td colspan="3">
            </td>
        </tr>
        <tr>
           <td style="width: 117px">
                <strong>Select Course</strong>
            </td>
            <td>
                <asp:DropDownList ID="ddlcoursenm" runat="server" Width="200px" AppendDataBoundItems="true"
                    AutoPostBack="true" OnSelectedIndexChanged="ddlcoursenm_SelectedIndexChanged">
                    <asp:ListItem>-Select-</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td style="width: 100px">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
            </td>
        </tr>
        <tr>
            <td style="width: 117px; height: 24px">
                <strong>Select Semester</strong></td>
            <td style="height: 24px">
                <asp:DropDownList ID="ddlsemester" runat="server"
                    Width="199px" AppendDataBoundItems="True" >
                    <asp:ListItem>-Select-</asp:ListItem>
                </asp:DropDownList></td>
            <td style="width: 100px; height: 24px">
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Label ID="lblmsg" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2">
                <asp:Button ID="btnshow" runat="server" Text="Show" OnClick="btnshow_Click" />
            </td>
        </tr>
        </table>
        <table align="center">
        <tr>
            <td colspan="3" style="width: 214px">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"

                 DataKeyNames="StudentID" Width="365px" >

                <Columns>
                <asp:CommandField ButtonType="Button" SelectText="Profile" ShowSelectButton="True" />

                    <asp:TemplateField HeaderText="StudentName">

                        <ItemTemplate>

                            <asp:Label ID="lblChapterName" runat="server" Font-Bold="false" Text='<%# Eval("FirstName") %>'></asp:Label>

                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("LastName") %>'></asp:Label>



                            </ItemTemplate>


                    </asp:TemplateField>
                </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>

</asp:Content>
Posted
Updated 4-Jul-11 22:47pm
v2
Comments
Sergey Alexandrovich Kryukov 5-Jul-11 4:06am    
Where is the problem? question?
--SA
swatijadon 6-Jul-11 5:21am    
i want to code it all....with ajax tools
dan!sh 5-Jul-11 4:13am    
OK.
R. Giskard Reventlov 5-Jul-11 4:13am    
Biscuit Hovis waffle cone flange.
Tarun.K.S 5-Jul-11 4:47am    
Good luck!

1 solution

You could start by looking here.
There are great tutorials all over that site that are easy to learn from and follow.
When you have a more specific issue with your code and implementation, ask away and the experienced developers here will be glad to help you out further.
 
Share this answer
 

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