c# - aspx page do not postback input type email data -
this question has answer here:
i have 1 aspx page(3.5) , trying use html5 validation on it.
<asp:textbox id="accountantemail" cssclass="form-control" type="email" runat="server" required />
this control after rendering looks alright me
<input name="ctl00$contentplaceholdermain$accountantemail" id="ctl00_contentplaceholdermain_accountantemail" class="form-control" type="email" required="">
browser validations work email. when try submit form required , format exceptions. however, control has no data in postback event.
it works if remove type="email"
attribute.
do need upgrade .net version? or missing anything?
i using chrome 48, , controls in update panel.
try adding programatically:
accountantemail.attributes["type"] = "email";
Comments
Post a Comment