ASP.Net: Using System.Web.UI.Control.ResolveUrl() in a shared/static function

后端 未结 3 1789
情深已故
情深已故 2020-12-24 05:50

What is the best way to use ResolveUrl() in a Shared/static function in Asp.Net? My current solution for VB.Net is:

Dim x As New System.Web.UI.Control
x.Reso         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-24 06:38

    I tend to use HttpContext.Current to get the page, then run any page/web control methods off that.

提交回复
热议问题