468,733 Members | 2,222 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,733 developers. It's quick & easy.

Getting current host name and port in ASP.NET Application

In Silverlight Application it's possible to query current Application's
hostname and port using namespace Windows.System and code like
below. Iused it in WCF client call.

String hostname = Application.Current.Host.Source.Host + ":" +
Application.Current.Host.Source.Port;

I tried to find out how to do this in ASP.NET Application but couldn't
succeeded.
Does anyone know how to get same result in ASP.NET Application?

Cheers,

JQ
Jun 27 '08 #1
0 4509

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by BTHOMASinOHIO | last post: by
reply views Thread by StevePBurgess | last post: by
1 post views Thread by John Q | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.