2012-11-03 27 views
0

我想知道它是一个gridview控件还是通过使用表?或者我知道这个网格中使用的图像来自文件夹。我想开发一样的东西需要你的帮助。不知道该怎么做。我只知道如何使用gridview。感谢并等待您的回复。ASP.Net Gridview与分页和文件夹中的图像

http://www.propertyguru.com.sg/singapore-property-listing?listing_type=sale&search_type=district&property_id=&interest=&distance=1&property_type=&freetext=&districts%5B%5D=&hdb_estate=&maxprice=&maxbed=&minbed=&minsize=&searchbtn=go

+0

该网站甚至没有运行ASP.NET它在AWS/Linux上运行http://toolbar.netcraft.com/site_report?url=http://www.propertyguru .com.sg – nerdybeardo

+0

感谢您的信息。但我想在asp.net中开发一个同样的网格。我怎样才能做到这一点 ?? Plz帮助.. –

回答

0

有很多方法可以做到这一点。你可以使用ASP.NET MVC。如果你坚持使用ASP.NET Web窗体,你可以使用GridView,ListView,Repeater等。我建议使用ListView。它结合了许多GridView和Repeater的最佳功能。

下面是一个快速教程,介绍使用ListView显示产品列表(包括图像)。它看起来与你的示例不一样,但是想法是你可以使用HTML/CSS知识来设计它。

http://weblogs.asp.net/scottgu/archive/2007/08/10/the-asp-listview-control-part-1-building-a-product-listing-page-with-clean-css-ui.aspx

这里的另一篇文章描述ListView控件以及为什么它可能是一个比GridView控件更适合:

http://www.developerfusion.com/article/84471/new-trends-in-aspnet-data-binding-the-listview-control/

如果您决定坚持使用GridView的,这里有一个堆栈溢出有关从GridView显示图像的问题。有在回答一些有用的链接:

How to display images from a folder in a gridview?