var Name_x = document.getElementsByTagName("<%= this.txtName.ClientID%> ");//this.txtName为服务器控件的名
var Name_x = document.getElementById("<%= this.txtName.ClientID%> ").value;//this.txtName为服务器控件的值