将XML嵌入到ASPX问题中 [英] Embedding XML into ASPX question

查看:87
本文介绍了将XML嵌入到ASPX问题中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据库中有一个XML字符串,我希望使用XSLT显示。

所有这些都像一个冠军,但我不知道如何嵌入XML <一个ASPX页面内的



例如,我有一个带有页眉用户控件和页脚的ASPX页面

用户控件。我想将转换后的XML放在中间位置。它好像这是一件应该可行的东西,但我不能完全理解这一点。有没有人这样做,如果有的话,你能指出我

朝正确的方向吗?


谢谢,

Vic Fees

I have an XML string in a database that I would like to display using XSLT.
All of that works like a champ, but I can''t figure out how to embed the XML
inside an ASPX page.

For example, I have an ASPX page with a Header User Control and a Footer
User Control. I''d like to put the transformed XML right in the middle. It
seems like this is something that should be doable, but I can''t quite
figure it out. Is anyone out there doing this, and if so, can you point me
in the right direction?

Thanks,
Vic Fees

推荐答案

将PlaceHolder或LiteralControl放在您想要XML的位置,然后将

添加到该控件。


-

HTH,


Kevin Spencer

Microsoft MVP

..Net开发人员
http://www.takempis.com

复杂的东西由很多简单的东西组成。


" Victor Fees" < VF ************ @ seventhfloorinc.com>在消息中写道

新闻:Xn ********************************** @ 207.46 .2 48.16 ...
Put a PlaceHolder or LiteralControl where you want the XML to be, and add it
to that control.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Victor Fees" <vf************@seventhfloorinc.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
我在数据库中有一个XML字符串,我希望使用
XSLT显示。所有这些都像冠军一样,但我无法弄清楚如何在ASPX页面中嵌入
XML。

例如,我有一个带头文件用户的ASPX页面控件和页脚
用户控件。我想将转换后的XML放在中间位置。
看起来这应该是可行的,但我不能完全理解它。有没有人这样做,如果有的话,你能指出我正确的方向吗?

谢谢,
Vic费用
I have an XML string in a database that I would like to display using XSLT. All of that works like a champ, but I can''t figure out how to embed the XML inside an ASPX page.

For example, I have an ASPX page with a Header User Control and a Footer
User Control. I''d like to put the transformed XML right in the middle. It seems like this is something that should be doable, but I can''t quite
figure it out. Is anyone out there doing this, and if so, can you point me in the right direction?

Thanks,
Vic Fees



Victor Fees写道:
Victor Fees wrote:
我在数据库中有一个XML字符串,我想用XSLT显示它。
所有这些都有效像一个冠军,但我不知道如何在一个ASPX页面中嵌入XML

例如,我有一个带有标题用户控件和页脚的ASPX页面
用户控制。我想将转换好的XML放在中间。
I have an XML string in a database that I would like to display using XSLT.
All of that works like a champ, but I can''t figure out how to embed the XML
inside an ASPX page.

For example, I have an ASPX page with a Header User Control and a Footer
User Control. I''d like to put the transformed XML right in the middle.



你可以把占位符< div>在他们之间填写转换结果到其内部HTML属性的


-

Oleg Tkachenko
http://www.tkachenko.com/blog

Multiconn Technologies,以色列


You can put placeholder <div> between them and fill transformation result to
its InnerHtml property.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel


Oleg Tkachenko< oleg@NO_SPAM_PLEASEtkachenko.com>写在

新闻:u9 ************** @ TK2MSFTNGP11.phx.gbl:

有点棘手。 。 。但它奏效了。谢谢。
Oleg Tkachenko <oleg@NO_SPAM_PLEASEtkachenko.com> wrote in
news:u9**************@TK2MSFTNGP11.phx.gbl:
a little tricky . . . but it worked. Thanks.


这篇关于将XML嵌入到ASPX问题中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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