代码的含义 [英] Meaning of the code

查看:99
本文介绍了代码的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下代码是什么意思?

What is the meaning of the following code?

Label lbl2 = (Label) Utils_ascx.Transform(MapPath("~/admin/reviews.xml"), MapPath("~/xslt/Latest-digital-cameras.xslt"));
latestDigitalCamerasMainDiv.Controls.Add(lbl2);

推荐答案

在此代码中,他们正在从用户控件 Utils_ascx &中获取标签.分配给 lbl2 对象(即标签).然后,他们将标签 lbl2 添加到DIV latestDigitalCamerasMainDiv 中.就是这样.
In this code they are getting a label from the user control Utils_ascx & assign to lbl2 object(which is label). Then they are adding the Label lbl2 to the DIV latestDigitalCamerasMainDiv. That''s all.


好不只是将Label控件附加到div.

Utils_ascx.Transform似乎用XSLT文件转换了审阅XML文档.

您可以在这里看到更多有关此方法的信息- http://aspalliance.com/1479_Using_XSLT_to_Transform_XML_Using_ASPNET.a [
Well it''s a bit more than just attaching a Label control to a div.

Utils_ascx.Transform appears to transform the reviews XML document with the XSLT file.

You can see more of this method here - http://aspalliance.com/1479_Using_XSLT_to_Transform_XML_Using_ASPNET.a[^]

Once the transform is complete it outputs as a Label then appends to the DIV.


这篇关于代码的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆