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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -