A Fortify scan said I have hidden fields. I don't specify a hidden attribute on my fields BUT I do use a MaskedEditExtender. When the Response comes back on the page with the MaskedEditExtender, the field has the hidden attribute on it.
<ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator2" runat="server"
ControlExtender="MaskedEditExtender2"
ControlToValidate="txt_EndDate"
IsValidEmpty="true"
InvalidValueMessage="Date is invalid"
Display="Dynamic"
MaximumValue="01/01/2030"
MinimumValue="01/01/2000"
Font-Size="X-Small"/>
This is what's returned in the Response. You can see it has the hidden attribute on it, and Fortify complains about that:
<input name="ctl00$ContentPlaceHolder1$txt_EndDate" type="text"
id="ctl00_ContentPlaceHolder1_txt_EndDate" class="DateTextBox" AutoComplete="off" style="width:90px;" />
<input type="hidden"
name="ctl00$ContentPlaceHolder1$MaskedEditExtender2_ClientState"
id="ctl00_ContentPlaceHolder1_MaskedEditExtender2_ClientState" />
…
Also, the __VIEWSTATEGENERATOR and __EVENTVALIDATION fields are getting set to hidden in the response. Can these be unhidden as well?