将数据从控件(Label)加载到Ajax Jquery [英] Load data from a control (Label) to Ajax Jquery
本文介绍了将数据从控件(Label)加载到Ajax Jquery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有一些文字的标签(ASP.NET C#)
00100100101001010
它放在带有Div标签的HTML页面中,用于在Label中加载文本
< asp:Label ID = lblvisible runat = 服务器 > ; < / asp:Label > ;
< div id = load runat = server > < / div >
我想得到文字** lblvisible **至#** loading **
$(文档)。ready( function (){
$( #load)。load( #lblvisible);
});
然后,它将在5s内自动加载。
i尝试但没有运气。请帮我。谢谢!!!
解决方案
( document )。ready( function (){
( #load).load( #lblvisible);
});
然后,它将在5s内自动加载。
i尝试但没有运气。请帮我。谢谢!!!
这不是.load()
的工作原理。它的参数应该是一个URL。请参阅: http://api.jquery.com/load [ ^ ]。
-SA
Hi,
I have a Label (ASP.NET C#) with some text
00100100101001010
It's put in HTML page with Div tag that to load text in Label
<asp:Label ID="lblvisible" runat="server" ></asp:Label>
<div id="load" runat="server"></div>
And i want to get text in **lblvisible** to #**load**
$(document).ready(function () {
$("#load").load("#lblvisible");
});
Then, it'll will autoload in 5s.
i try but no luck. Please help me. Thanks !!!
解决方案
(document).ready(function () {
("#load").load("#lblvisible"); });
Then, it'll will autoload in 5s.
i try but no luck. Please help me. Thanks !!!
This is not how.load()
works. It's argument is supposed to be a URL. Please see: http://api.jquery.com/load[^].
—SA
这篇关于将数据从控件(Label)加载到Ajax Jquery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文