我想在给定的代码上应用ajax代码 [英] i want to apply ajax code on the given code

查看:70
本文介绍了我想在给定的代码上应用ajax代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<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>

推荐答案

您可以从此处开始.
该站点上有许多很棒的教程,易于学习和遵循.
当您在代码和实现方面遇到更具体的问题时,请问一下,经验丰富的开发人员将很乐意为您提供进一步的帮助.
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.


这篇关于我想在给定的代码上应用ajax代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆