Use hidden-field
to store the value that you set,then access it in code behind
add a hidden field
<input type="hidden" id ="hiddenfieldid" runat="server" />
.
function fileuploadvalidation() {
document.getElementById("lableid").value = "hello";
document.getElementById('hiddenfieldid').value= "hello";
}
then retrieve it in code behind
.
string abc = hiddenfieldid.value;