这个是后台绑定... <%#Eval("UserIP").ToString().Substring(0,Eval("UserIP").ToString().LastIndexOf(".")+1)+"*"%> 实现代码最后一位为空...