我需要asp.net的帮助 [英] I need help in asp.net

查看:68
本文介绍了我需要asp.net的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是.NET的新手。我想在我的aspx页面中显示用户系统的公共IP。

示例(登录到way2sms.com后,页面底部显示我们使用的浏览器和公共IP地址的系统)



请帮帮我....

I''m new to .NET. I want to show the public ip of the user system in my aspx page.
for Example(after login to way2sms.com, the bottom of the page shows which browser we using and public ip address of the system)

Please help me....

推荐答案

查找客户端计算机的IP地址 [ ^ ]

< a href =http://forums.asp.net/t/1520268.aspx> http://forums.asp.net/t/1520268.aspx [ ^ ]


试用:

Try out:
<script language="JavaScript">
localipinfo=java.net.InetAddress.getLocalHost();
ip=localipinfo.getHostAddress();

document.write("Your IP address is " +ip+ "<br>");
</script>





虽然它可能不适用于IE。



Though it might not work out for IE.


这篇关于我需要asp.net的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆