Get Value of Hidden Field in Client Side

前端 未结 6 1881
挽巷
挽巷 2021-02-07 04:04

On a button click on my server side, I assign value to the Hidden Field from a column in my table.

Dim dsGetEnquiryDetails = dbl.usp_GetEnquiryRegisterDetails(Va         


        
6条回答
  •  花落未央
    2021-02-07 04:14

    Assuming that it's not null you don't use the hiddenfield's value proprty:

    var statusFlag = '';
    var hiddenStatusFlag = document.getElementById('<%= HiddenStatusFlag.ClientID%>');
    if(hiddenStatusFlag != null)
    {
        statusFlag = hiddenStatusFlag.value;
    }
    

提交回复
热议问题