BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<script type="text/javascript">
function onSelected(args) {
litem = args.data.selectedText; // selected item text
$.ajax({
type: "POST",
url: "ListBoxFeatures",
content: "application/json; charset=utf-8",
dataType: "json",
data: { selectedtext: litem },
complete: function (d) {
$("#mydata").text(litem);
}
});
}
</script>
[Controller]
//Post action to get the data passed from AJAX post
[HttpPost]
public ActionResult ListBoxFeatures(string selectedtext)
{
string Listboxitem = selectedtext;
return View();
}
</code>
Simple sample prepared can be downloaded from the link below:
http://www.syncfusion.com/downloads/support/forum/118978/ListBox_f118978_(2)-1621988663.zip
Please let us know if you have any other queries.
Regards,
Ezhil S