需要在不使用控件的情况下以所需格式动态填充数据 [英] Need to populate data dynamically in required format without using control

查看:64
本文介绍了需要在不使用控件的情况下以所需格式动态填充数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在不使用控件的情况下从xml文件填充数据.我需要以以下方式显示(就像使用DetailsView控件可以实现的那样)

格式:
编号10ABC

姓名阿尔文

百货零售业

我已经掌握了如何动态地以表格形式进行操作


请帮助获取所需格式的数据.预先感谢.

解决方案

加载XML并使用Response.Write()将其作为输出推送到面板中. /blockquote>

我不明白为什么不使用数据驱动控件来做到这一点,但是您的格式似乎很简单,在发出html时在行之间插入中断. /blockquote>

I need to populate data from an xml file without using controls. I need to display in the following way (like one can achieve with using DetailsView control)

Format:
ID 10ABC

Name Alvin

Department Retail

I already got how to do it dynamically but in tabular form


Kindly help in getting data in required format.Thanks in advance.

解决方案

Load the XML and use Response.Write() to push it as output into a panel.


I don''t see why you wouldn''t do this with a data driven control, but your format seems easy enough, just put breaks between the lines when you emit the html.


这篇关于需要在不使用控件的情况下以所需格式动态填充数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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