0

I have an ASP.Net web page that displays various chunks of data based on a user's search string. In this web page I'm using a <Panel> tag because I need to have a vertical scrollbar that displays when needed to display all of the data.

I've thought about defining an HTML page (in code behind, with all the tags and data included), and displaying that inside a <div>, inside the <Panel>.

I've also explored the possibility of displaying an ASP.Net web page with the data/tags/etc. and placing each page in its own <Iframe> element. I'm afraid that this solution would be slow to load (as compaired to the HTML method described above) especially when there's 100's of individual pages to be loaded.

My question is what's the best way to display N number of individual pages of data and have a vertical scrollbar when there's a need?

4

1 回答 1

0

我想,在 ASP.NET 页面上显示各种数据片段是一个大主题,可以使用许多方法,包括您提到的那些。

如何使用动态数据框架 .NET v2、3、4。最强大的当然是最新的。

然后,您不需要创建 100 个单独的页面,只需使用模型/上下文中使用的元表名称进行动态重定向。您的所有数据也将在适当的地方完美链接。还需要根据需要呈现的数据仔细设计模型。其控件可以是 GridView 或其他,但都在服务器端完成。

于 2012-09-06T22:03:07.227 回答