if (document.getElementById('<%=txtUserId.ClientId %>').value == "") {
alert('Username is Mandtory');
return false;
}
from your question
<%=txtUserId.ClientId %> this statement is used to access server control ID in asp.net from javascript code & plz use this
<%=txtUserId.ClientID %>
in place of this <%=txtUserId.ClientId %> check difference
alert('Username is Mandtory');
return false;
}
from your question
<%=txtUserId.ClientId %> this statement is used to access server control ID in asp.net from javascript code & plz use this
<%=txtUserId.ClientID %>
in place of this <%=txtUserId.ClientId %> check difference
No comments:
Post a Comment