Remove the semicolon after the binding expression document.getElementById("<%=txtOrderNo.ClientID%>;").value=""; it should be this document.getElementById("<%=txtOrderNo.ClientID%>").value=""; The former is adding the semicolon to the id which of course can't be found in the dom.
I know the language. I've read a book. - _Madmatt