Is there a way to send text to an aspcontrol via jquery
Posted
by
Garrith Graham
on Stack Overflow
See other posts from Stack Overflow
or by Garrith Graham
Published on 2011-03-16T15:29:28Z
Indexed on
2011/03/16
16:09 UTC
Read the original article
Hit count: 184
Is there a way to send data to an aspcontrol say a label called label1? Via jquery?
I know jquery only likes html but is there a way to just send the raw text to an asp control using a similar method below:
<script type="text/javascript">
$(document).ready(function ()
{
var label = $("#<%= testLabel.ClientID %>");
var div = $("<div></div>").html("content").attr('id', 'test');
var serializer = new XMLSerializer();
label.text(serializer.serializeToString(div));
});
</script>
© Stack Overflow or respective owner