开发者

Get Server URL at run time from Server Side in .NET 4 - SL4

Excuse my newbie question, but I´m working with Silverlight 4 at client side and .Net 4 at server side.

My issue is that, I want get at run time servers URL. Because now we are out of production but in a month we will install our system 开发者_如何转开发in the client servers, and we don´t want have anything static (example, server URL).

Example: http://vwin-builder-01/ccars/#/ (that are server URL at builder) http://localhost/CCARS/#/ (that are server URL at my local copy)

I mean?

Please, excuse my suxs english =)

I'll be waiting for your answers!!

Thanks for your time!

Fabian


try Application.Current.Host.Source.Host

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜