Hope to get few answers thsi time atlease. I have been posting questions, but failed to get even a comment for this : http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_23914095.html
But the real question for this post is here: I have included my content page with the masterpage.
i have a textbox.The user is not supposed to enter more than 3 chars. I have set the maxlength of the textbox=3.
now i have included that in a master page. Now the above said error come, when i try to enter anything in that textbox.Here is piece of code.
Plase help..Hope to get answers SOON
<asp:Content ID="ContProduct" ContentPlaceHolderID="MainContent" Runat="Server">
if (document.getElementid('<%=txtActivityCode.ClientID%>').value.length >= 3)
alert('Activity Code Cannot be more than 3 Chars')
'this is how the textbox is :
<asp:TextBox ID="txtActivityCode" runat="server" Onkeypress= "return ValidateTxtarea()" MaxLength="3"></asp:TextBox>