开发者

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

开发者 https://www.devze.com 2023-02-16 22:31 出处:网络
Excuse my newbie question, but I´m working with Silverlight 4 at client side and .Net 4 at server side.

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

精彩评论

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