想要形成5个品牌图片竖着随机显示,下面是品牌页面读取全部品牌的代码:
<a id="A1" href='<%# Globals.GetSiteUrls().UrlData.FormatUrl("brand",Eval("BrandId"))%>' runat="server"><UI:ResizeableImage Width="146" Height="50" runat="server" DataField="Logo" /></a>
SELECT TOP 5 * FROM Product ORDER BY NEWID(),具体怎么使用???求完整代码。。
------解决方案--------------------
- SQL code
--直接调用SQL脚本SELECT TOP 5 * FROM Product ORDER BY NEWID()--调用存储过程create proc procnameasbegin SELECT TOP 5 * FROM Product ORDER BY NEWID()end