c# - onchange attribute missing on one particular server -


i having issues asp.net webforms site seem related particular server. instance when try redirect user after successful login (as seen audit entry in database) returns them login page again. hint @ problem seems elements not rendering correctly in html.

source code:

<asp:textbox id="txtusername" runat="server" ontextchanged="txtusername_textchanged" autopostback="true" width="200px"></asp:textbox> 

view-source on bad server:

<input name="ctl00$maincontent$txtusername" type="text" id="maincontent_txtusername" /> 

view-source on development server:

<input name="ctl00$maincontent$txtusername" type="text" onchange="javascript:settimeout(&#39;__dopostback(\&#39;ctl00$maincontent$txtusername\&#39;,\&#39;\&#39;)&#39;, 0)" onkeypress="if (webform_textboxkeyhandler(event) == false) return false;" id="maincontent_txtusername" style="width:200px;" /> 

any on issue appreciated.

you're running app on different framework versions , causing problems.

make sure server .net version , .net version developing in same.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -