【问题标题】:From the Domain Service is there any way to get the current URL?有没有办法从域服务中获取当前 URL?
【发布时间】:2011-02-08 22:17:38
【问题描述】:

在 silverlight 4.0 从域服务中,有什么方法可以获取当前 URL?

【问题讨论】:

    标签: silverlight url domainservices


    【解决方案1】:

    HttpContext.Current.Request.Url 是否适合您? Request 对象中还有其他有趣的东西。

    【讨论】:

    • 不,我不应该能够从域服务中访问它吗?
    • @Rico,我想是的,我想。我正在使用 LinqToSqlDomainService,并且确实有一个“使用”System.Web。也许您需要添加 using/imports 或完全限定它 - System.Web.HttpContext.Current.Request.Url ?您使用的是什么类型的 DomainService?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-12
    • 1970-01-01
    • 2017-04-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多