首页新闻找找看学习计划

ajax 局部刷新功能 怎么实现

0
悬赏园豆:15 [待解决问题]

   <div id="content">
                        <div id="Div2">
                            <div id="div3" class="div_question" style="height: 150px">
                                <div style="margin-bottom: 5px; margin-left: 10px" class="bluefont-16px">
                                    题目: <b style="color: Red">
                                        <asp:Label ID="lalre" runat="server" BorderColor="#CC3300" Font-Bold="True"></asp:Label>
                                    </b>
                                </div>
                                <div class="div_title_question_all">
                                    <div class="div_topic_question">
                                        <div style="text-align: left; color: inherit; font-size: 20px; margin: 2px; line-height: 25px;
                                            text-indent: 20px;">
                                            <b>
                                                <asp:Label ID="index" runat="server" Text="题号"></asp:Label>
                                                <asp:Label ID="lblPageIndex" runat="server" Text="题" Visible="false"></asp:Label>
                                                .</b>
                                                                         <asp:Label ID="lblth" runat="server" Text="Label"></asp:Label>
                                            <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

 

div  id="content" 中 的 内容荣会有一个 按钮事件来控制

后台想提取 数据库中 数据 存放在DataTable 中。  dt = ViewState["dt"] as DataTable;

根据DataTable 行号 以此点击 读取。 这个局部刷新 效果怎么实现,求教了!

boyuanzhi的主页 boyuanzhi | 初学一级 | 园豆:3
提问于:2013-05-06 08:53
< >
分享
所有回答(4)
0

没太看明白。你找一下jquery ajax

jerry-Tom | 园豆:4077 (老鸟四级) | 2013-05-06 09:47
0

额 你是要JS版的无刷新呢 还是C#版的?

JS的就用jquery ajax

C#的就用updatePanel

丫的 | 园豆:1575 (小虾三级) | 2013-05-06 10:36
0

    用UpdatePanel,简单如下:

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>

     ...代码...

    </ContentTemplate>
</asp:UpdatePanel>
爱智旮旯 | 园豆:204 (菜鸟二级) | 2013-05-06 13:19
0

建议不要用asp.net自带的

weblogical | 园豆:6 (初学一级) | 2013-05-06 18:01
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册