If you want to do things that way, that's what postback-style code is for. If you're doing AJAX-style programming instead, your client-side code is where you update your page:
$.ajax(...).then(function(data) {
$('#your-label').text(data.someValue);
});