Encountering an error message like the following:
'System.Web.UI.WebControls.TextBox'
doesn't have a definition for 'ClentID'
and there isn't any extension method 'ClentID'
that accepts the first argument of type 'System.Web.UI.WebControls.TextBox'
(may be missing a using directive or an assembly reference?)
Here is the portion of code causing the issue:
if (document.getElementById("<%=txt_stuname.ClientID %>").value == "") {
alert("Student Name cannot be blank");
document.getElementById("<%=txt_stuname.ClentID %>").focus();
return false;
}