Hi,
You need to call JavaScript function on OnBlur() event of textbox
like e.g. your string is: 01/Name-Address
<asp:textbox id="txtAutoComplete" runat="server" onblur="return validateAutoComplete(this);" tabindex="3" xmlns:asp="#unknown"></asp:textbox>
function validateAutoComplete(el) {
var str = el.value
var n = str.indexOf("/");
var l = str.indexOf("-");
if (n == -1 || l == -1) {
el.value = "";
}
else {
return true;
}
}