i have a
<asp:HiddenField runat="server" ID="ListTwoHiddenField" />
i have some programming aspect how can i check whether hidden field is empty or not
i mean i want to check that ListTwiHiddenField.items.cout==0 or empty how can i check this
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
HiddenFields don’t have an Items collection, they just have a Value property, which is a String. So to check if it’s empty all you need is:
Or you could use
string.IsEmptyOrWhitespace, which would check whether the hidden field’s value is just [space] characters.