Hai,我创建了一个webform和一个表。当我在浏览器中运行Web表单时,我必须使用哪个工具来显示该数据 [英] Hai, I created a webform and a table. Which tool I have to use to display that data when I run the web form in browser
问题描述
hai,我创建了一个webform和一个表。当我在浏览器中运行Web表单时,我必须使用哪个工具来显示数据
我尝试了什么:
i还没有尝试任何东西。我陷入两难境地。数据应该以有吸引力的方式显示在webform上,数据运行在底层方向,就像我们在HTML marquee中所做的那样
hai, I created a webform and a table. which tool i have to use to display that data when i run the web form in browser
What I have tried:
i hav'nt tried anything yet. I'm in a dilemma which one to use. Data should be displayed in an attractive manner over webform, with data running bottom -top direction like we do in HTML marquee
推荐答案
你可以使用gridview在网格中显示数据形成。它还可以具有分页,编辑选项和排序功能。这非常适合您的情况。
you can use gridview which displays data in grid form. It can also has paging, edit options, sorting. It is very good for your situation.
您可以使用相同的HTML选框与direction = up
You can use the same HTML marquee withdirection=up
<marquee direction="up">This text will scroll from bottom to up</marquee>
参考: HTML Marquees [ ^ ]
您可以通过放置Literal控件并将其绑定到 Page_Load()来绑定选取框的内容
事件。还有其他数据绑定元素,如 FormView
等,你也可以使用它来绑定选框的内容。
以上建议是你想要的时候绑定单个项目。如果您在选框内显示多个项目,则可以使用 Repeater
控件包围选框标记对。
参考:带有转发器控制的Marquee,其中包含数据SQLDatabase [ ^ ]
尝试这种方法,如果执行此操作有任何困难,或者您的要求是其他原因,请告诉我。
希望,它有帮助:)
Reference: HTML Marquees[^]
You can bind the content of the marquee by placing a Literal control and binding it in Page_Load()
event. There are other databound elements like FormView
etc. which you can use to bind the content of the marquee too.
The above suggestion is when you want to bind a single item. If you have multiple items to show inside the marquee then you can use Repeater
control wrapped by the marquee tag pairs.
Reference: Marquee with repeater control with data fetched from SQLDatabase[^]
Try this approach and let me know if there is any difficulties implementing this or if your requirement is something else.
Hope, it helps :)
这篇关于Hai,我创建了一个webform和一个表。当我在浏览器中运行Web表单时,我必须使用哪个工具来显示该数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!