English 中文(简体)
ASP. NET 关于参考途径的起始问题
原标题:ASP.NET beginner question regarding reference path
  • 时间:2010-08-27 05:59:43
  •  标签:
  • asp.net

我想知道什么是“<%=QDAB.Constants”。 网址URL %>”是指在我的页数中以下列代码表示。 我确实 go笑,没有找到这方面的任何信息。

<td align="center" style="background-image: url(<% =QDAB.Constants.SiteURL %>images/Docs/Plans/myImage.jpg);

因此,这意味着什么?

[修订细节]

页: 1 地点 %>images/Docs/Plans/myImage.jpg;

页: 1 网址URL %>images/myImage.jpg;

我在“时间”的夹中复制了我的剂量。

为什么会从“Images”的夹BUT NOT“Images/Docs/Plans”中获取图像?

这是令人.慕的。

最佳回答

这意味着,在QDAB中定义的变量不变。 Constants par known SiteURL.

很可能是“www.xyz.com/”一类。

使用“设计”;% = 变量 姓名%> 变量值用于超文本

什么

url(<% =QDAB.Constants.SiteURL %>images/Docs/Plans/myImage.jpg); 

因此,它的确使用了变值,因此,它使变值与铺设整整整整整的类型URL的其余部分相加。

url(www.xyz.com/images/Docs/Plans/myImage.jpg); 

用于确定这种超文本标签背景的图像将位于何处。

问题回答

这里指的是一个服务器变量: QDAB.Constants.SiteURL

通过您的《QDAB法典》进行搜索 (可能是一等)

The <% = blah %> have the Value of blah changing.

我不敢肯定英特尔利斯公司在你的平台上如何运作,但这意味着,在QDAB类的固定类别或污染物类别上可能存在固定财产。 Try right PointURL, at Go to definition (or some similar).

至于为什么有人会这样做,他们希望背景形象的ur光能动。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签