leila.net
پنج شنبه 29 فروردین 1392, 11:37 صبح
با سلام
دوستان من می خوام برای نمایش محصولاتم در asp.net listview از نحوه نمایش این قالب (http://temphaa.com/%D9%82%D8%A7%D9%84%D8%A8-html-%D9%81%D8%B1%D9%88%D8%B4%DA%AF%D8%A7%D9%87%DB%8C-%D8%A8%D8%B3%DB%8C%D8%A7%D8%B1-%D8%B2%DB%8C%D8%A8%D8%A7%DB%8C-megashop/)
استفاده کنم ولی متاسفانه کلاس های این قالب کلا به listview اعمال نمیشه !!!:متفکر:
اینم کدهای html مربوط به صفحه ام :
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta charset="utf-8"/>
<title>Megashop</title>
<!--js-->
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/common.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/ddsmoothmenu.js"></script>
<script src="js/jquery.flexslider.js"></script>
<script src="js/jquery.elastislide.js"></script>
<script src="js/jquery.jcarousel.min.js"></script>
<script src="js/jquery.accordion.js"></script>
<script src="js/light_box.js"></script>
<script type="text/javascript">$(document).ready(function () { $(".inline").colorbox({ inline: true, width: "50%" }); });</script>
<!--end js-->
<!-- Mobile Specific Metas ================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<!-- CSS ================================================== -->
<link rel="stylesheet" href="css/style.css"/>
<link rel="stylesheet" href="css/colors.css"/>
<link rel="stylesheet" href="css/skeleton.css"/>
<link rel="stylesheet" href="css/layout.css"/>
<link rel="stylesheet" href="css/ddsmoothmenu.css"/>
<link rel="stylesheet" href="css/elastislide.css"/>
<link rel="stylesheet" href="css/home_flexslider.css"/>
<link rel="stylesheet" href="css/light_box.css"/>
<link href="../../../html5shiv.googlecode.com/svn/trunk/html5.js"/>
<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<form id="form1" runat="server">
<div class="new-product-block">
<asp:ListView ID="ListView1" runat="server" EnableModelValidation="True" style="text-align: left" DataSourceID="SqlDataSource1">
<LayoutTemplate>
<div runat="server" id="Products" >
<div id="Div1" runat="server" class="header">
</div>
<div runat="server" id="groupPlaceholder">
</div>
</div>
</LayoutTemplate>
<GroupTemplate>
<div runat="server" id="ProductsGroup" >
<asp:PlaceHolder runat="server" ID="itemPlaceholder" />
</div>
</GroupTemplate>
<GroupSeparatorTemplate>
</GroupSeparatorTemplate>
<ItemTemplate>
<div class="new-product-block">
<ul class="product-grid">
<li class="">
<div class="pro-img">
<asp:Image ID="Image1" title="Freature Product" alt="Freature Product" ImageUrl='<%#Eval("pic","{0}") %>' runat="server" />
</div>
<div class="pro-content">
<p>
<asp:Label ID="Label3" runat="server" Text='<%#Eval("lname","{0}") %>'></asp:Label></p>
</div>
<div class="pro-price"> <asp:Label ID="Label4" runat="server" Text='<%#Eval("mobile","{0}") %>'></asp:Label></div>
<div class="pro-btn-block">
<a class="add-cart left" href="#" title="Add to Cart">Add to Cart</a>
<a class="add-cart right quickCart inline" href="#quick-view-container" title="Quick View">Quick View</a> </div>
<div class="pro-link-block"> <a class="add-wishlist left" href="#" title="Add to wishlist">Add to wishlist</a>
<a class="add-compare right" href="#" title="Add to Compare">Add to Compare</a>
<div class="clearfix"></div>
</div>
</li>
</ul>
</div>
</ItemTemplate>
<ItemSeparatorTemplate>
<br />
</ItemSeparatorTemplate>
</asp:ListView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT top 7 [Per_id], [mobile], [lname], [pic] FROM [PhoneBook]"></asp:SqlDataSource>
</div>
</form>
</body>
</html>
دوستان من می خوام برای نمایش محصولاتم در asp.net listview از نحوه نمایش این قالب (http://temphaa.com/%D9%82%D8%A7%D9%84%D8%A8-html-%D9%81%D8%B1%D9%88%D8%B4%DA%AF%D8%A7%D9%87%DB%8C-%D8%A8%D8%B3%DB%8C%D8%A7%D8%B1-%D8%B2%DB%8C%D8%A8%D8%A7%DB%8C-megashop/)
استفاده کنم ولی متاسفانه کلاس های این قالب کلا به listview اعمال نمیشه !!!:متفکر:
اینم کدهای html مربوط به صفحه ام :
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta charset="utf-8"/>
<title>Megashop</title>
<!--js-->
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/common.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/ddsmoothmenu.js"></script>
<script src="js/jquery.flexslider.js"></script>
<script src="js/jquery.elastislide.js"></script>
<script src="js/jquery.jcarousel.min.js"></script>
<script src="js/jquery.accordion.js"></script>
<script src="js/light_box.js"></script>
<script type="text/javascript">$(document).ready(function () { $(".inline").colorbox({ inline: true, width: "50%" }); });</script>
<!--end js-->
<!-- Mobile Specific Metas ================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<!-- CSS ================================================== -->
<link rel="stylesheet" href="css/style.css"/>
<link rel="stylesheet" href="css/colors.css"/>
<link rel="stylesheet" href="css/skeleton.css"/>
<link rel="stylesheet" href="css/layout.css"/>
<link rel="stylesheet" href="css/ddsmoothmenu.css"/>
<link rel="stylesheet" href="css/elastislide.css"/>
<link rel="stylesheet" href="css/home_flexslider.css"/>
<link rel="stylesheet" href="css/light_box.css"/>
<link href="../../../html5shiv.googlecode.com/svn/trunk/html5.js"/>
<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<form id="form1" runat="server">
<div class="new-product-block">
<asp:ListView ID="ListView1" runat="server" EnableModelValidation="True" style="text-align: left" DataSourceID="SqlDataSource1">
<LayoutTemplate>
<div runat="server" id="Products" >
<div id="Div1" runat="server" class="header">
</div>
<div runat="server" id="groupPlaceholder">
</div>
</div>
</LayoutTemplate>
<GroupTemplate>
<div runat="server" id="ProductsGroup" >
<asp:PlaceHolder runat="server" ID="itemPlaceholder" />
</div>
</GroupTemplate>
<GroupSeparatorTemplate>
</GroupSeparatorTemplate>
<ItemTemplate>
<div class="new-product-block">
<ul class="product-grid">
<li class="">
<div class="pro-img">
<asp:Image ID="Image1" title="Freature Product" alt="Freature Product" ImageUrl='<%#Eval("pic","{0}") %>' runat="server" />
</div>
<div class="pro-content">
<p>
<asp:Label ID="Label3" runat="server" Text='<%#Eval("lname","{0}") %>'></asp:Label></p>
</div>
<div class="pro-price"> <asp:Label ID="Label4" runat="server" Text='<%#Eval("mobile","{0}") %>'></asp:Label></div>
<div class="pro-btn-block">
<a class="add-cart left" href="#" title="Add to Cart">Add to Cart</a>
<a class="add-cart right quickCart inline" href="#quick-view-container" title="Quick View">Quick View</a> </div>
<div class="pro-link-block"> <a class="add-wishlist left" href="#" title="Add to wishlist">Add to wishlist</a>
<a class="add-compare right" href="#" title="Add to Compare">Add to Compare</a>
<div class="clearfix"></div>
</div>
</li>
</ul>
</div>
</ItemTemplate>
<ItemSeparatorTemplate>
<br />
</ItemSeparatorTemplate>
</asp:ListView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT top 7 [Per_id], [mobile], [lname], [pic] FROM [PhoneBook]"></asp:SqlDataSource>
</div>
</form>
</body>
</html>