<%@ Import NameSpace="System.Net" %>
<script language="C#" runat=server>
protected void doClick(Object Src, EventArgs E){
IPHostEntry hostInfo = DNS.GetHostByAddr(txtIP.Text);
showmsg.Text=hostInfo.Hostname;
}
</script>
<asp:Label runat=server id=showmsg />
<form id=testForm runat=server>
要查找的IP地址:<asp:TextBox runat=server id=txtIP /><asp:Button runat=server id=do Text="查找" onClick=doClick />
</form>
声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com