如何使用Ajax asp.net从页面仅发送特定控件到服务器...我尝试使用... [英] How to send only particular control(s) using ajax asp.netfrom a page to server...I tried using...

查看:76
本文介绍了如何使用Ajax asp.net从页面仅发送特定控件到服务器...我尝试使用...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<asp:ScriptManager ID="ScriptManager2" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel25" runat="server" UpdateMode="Conditional">
    <ContentTemplate >

    <asp:TextBox ID="TextBox23" runat="server"

            style="z-index: 1; left: 745px; top: 177px; position: absolute"

            ontextchanged="TextBox23_TextChanged" ></asp:TextBox>
            <asp:Label ID="Label55" runat="server" Font-Size="Small" ForeColor="Red"

            style="z-index: 1; left: 883px; top: 61px; position: absolute; height: 35px; width: 147px"

            Text="Login ID already exists. try another."></asp:Label>
    </ContentTemplate>

    </asp:UpdatePanel>



它可以工作,但是转到服务器(TextBox23).求助.



It works but goes to server (TextBox23). Plase help.

推荐答案

您期望做什么?
它使用ajax将页面发布到服务器,并且在服务器端进行更改后,它将返回并仅保留ContentTemplate中包含的部分.
And what did you expected to do?
It post the page to the server, using ajax, and after you change something on the server side it will return and refress only the part contained in the ContentTemplate.


这篇关于如何使用Ajax asp.net从页面仅发送特定控件到服务器...我尝试使用...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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