c# - Using Javascript to check form input while using ASP.NET -


my school running project build website containts register , login . of course , level of instructors in country low , , required use javascript check inputs in form , instead of using asp.net .

so , let's question :

i'm having few inputs , :

<asp:textbox id="usname" runat="server" maxlength="20" value="שם משתמש" textmode="singleline" cssclass="usernameinput" onfocus="this.value=''"></asp:textbox>             <asp:textbox id="email" runat="server" maxlength="40" value="אימייל" textmode="singleline" cssclass="emailinput" onfocus="this.value=''"></asp:textbox>             <asp:textbox id="password" runat="server" maxlength="20" value="סיסמה" textmode="password" cssclass="passwordinput" onfocus="this.value=''"></asp:textbox>             <asp:textbox id="passwordrepeat" runat="server" maxlength="20" value="אימות סיסמה" textmode="password" cssclass="passwordrepeatpassword" onfocus="this.value=''"></asp:textbox> 

while trying identify field it's id , javascript won't recognize . can in order keep textboxes , , check input javascript ?

thanks in advance , iliya

asp.net generates own unique ids server-side controls.

you can prevent setting clientidmode property static.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -