<%@ 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>
<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>
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
狼山资源网 Copyright www.pvsay.com
暂无“asp.net 通过指定IP地址得到当前的网络上的主机的域名”评论...