前台:
<input name="lastname" id="lastname" type="text" style="width: 200px" />
<input name="txtTags" runat="server" id="txtTags" type="text" style="width: 200px" />
JS:
var txtLastName = document.getElementById("lastname");
var txtTags = document.getElementById("ctl00_ContentPlaceHolder1_txtTags");