大家好,我希望用户的IP地址完全在c#.net中 [英] hello every one ,i want user ip address exactly in c#.net
本文介绍了大家好,我希望用户的IP地址完全在c#.net中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友们,我想当有人用x用户名和y密码记录到帐户时显示注销消息(但已经有一些其他用户使用相同的'x'用户名和'y'密码登录)
提前感谢你
解决方案
嗯,这取决于你 - 你可以根据登录用户ID存储IP地址表明下一次
但实际上获得的IP很简单:的 Request.UserHostAddress [ ^ ]返回它。
阅读本文
我建议你阅读:
如何在ASP.NET中获取用户的客户端IP地址? [ ^
Hello friends i suppose to display logout message when some one logs with x username and y password in to account (but already some other user logged in with same 'x' username and 'y' password )
Thanking u in advance
解决方案
Well, that's up to you - You could store the IP address against the login user id and show that next time.
But actually getting the IP is simple: Request.UserHostAddress[^] returns it.
Read This
I would suggest you to read:
How to get a user's client IP address in ASP.NET?[^]
这篇关于大家好,我希望用户的IP地址完全在c#.net中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文