在用户控件中,如果不知道当前控件的具体使用路径,而又不能用服务器控件时,可以采用该函数。

例如:<script src='<%=ResolveUrl("~/Js/check.js") %>' type="text/javascript"></script> 

<img src='<%=ResolveUrl("~/images/index_1_45.gif") %>' alt="" /> 

相关文章:

  • 2021-07-30
  • 2021-08-02
  • 2022-12-23
  • 2022-02-13
  • 2022-01-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2021-08-04
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案