Problem in dispalying images in Product List pageHi,<br><br>I want to display the images in the Product List page. I modified the code in ProductList.aspx.<br><br>Here is my code snippet<br><br>                    &lt;asp:HyperLink ID=&quot;ImageURL&quot; runat=&quot;server&quot; EnableViewState=&quot;false&quot;<br>                                        NavigateUrl='&lt;%# this.GetItemUrlString(Container.DataItem) %&gt;'&gt;<br>                     &lt;asp:Image runat=&quot;server&quot; ImageUrl='&lt;%# ((Microsoft.CommerceServer.Catalog.CatalogItemsDataSet.CatalogItem)Container.DataItem)[&quot;Image_filename&quot;].ToString()%&gt;'<br>                            AlternateText=&quot;&lt;%# Eval(DisplayNameColumnName) %&gt;&quot; width=&quot;130&quot; height=&quot;113&quot; /&gt;<br>                     &lt;/asp:HyperLink&gt;<br><br>This Code complies correctly.<br><br>But the Problem is,<br><br>I have given the imagefilepath value as &quot;./Images/&lt;filename&gt;&quot;. This is how they have given for other images in the starter site. Thats why the images are displayed in the product detail page(which lies in the root folder).<br><br>This gives me the problem.<br><br>Because the ProductList page lies in Control folder. So the image path is coming as &quot;http://localhost/StarterSite/Controls/images/&lt;filename&gt;&quot;. So the image is not getting dispalyed.<br><br>Kindly help me out in this issue.<br>© 2009 Microsoft Corporation. All rights reserved.Thu, 09 Oct 2008 17:56:33 Z1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1http://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1http://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1HariPhttp://social.msdn.microsoft.com/Profile/en-US/?user=HariPProblem in dispalying images in Product List pageHi,<br><br>I want to display the images in the Product List page. I modified the code in ProductList.aspx.<br><br>Here is my code snippet<br><br>                    &lt;asp:HyperLink ID=&quot;ImageURL&quot; runat=&quot;server&quot; EnableViewState=&quot;false&quot;<br>                                        NavigateUrl='&lt;%# this.GetItemUrlString(Container.DataItem) %&gt;'&gt;<br>                     &lt;asp:Image runat=&quot;server&quot; ImageUrl='&lt;%# ((Microsoft.CommerceServer.Catalog.CatalogItemsDataSet.CatalogItem)Container.DataItem)[&quot;Image_filename&quot;].ToString()%&gt;'<br>                            AlternateText=&quot;&lt;%# Eval(DisplayNameColumnName) %&gt;&quot; width=&quot;130&quot; height=&quot;113&quot; /&gt;<br>                     &lt;/asp:HyperLink&gt;<br><br>This Code complies correctly.<br><br>But the Problem is,<br><br>I have given the imagefilepath value as &quot;./Images/&lt;filename&gt;&quot;. This is how they have given for other images in the starter site. Thats why the images are displayed in the product detail page(which lies in the root folder).<br><br>This gives me the problem.<br><br>Because the ProductList page lies in Control folder. So the image path is coming as &quot;http://localhost/StarterSite/Controls/images/&lt;filename&gt;&quot;. So the image is not getting dispalyed.<br><br>Kindly help me out in this issue.<br>Tue, 07 Aug 2007 15:27:37 Z2007-09-21T05:50:04Zhttp://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#c5f7c5cf-6228-449e-b333-8d5df54e169ehttp://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#c5f7c5cf-6228-449e-b333-8d5df54e169eHooniushttp://social.msdn.microsoft.com/Profile/en-US/?user=HooniusProblem in dispalying images in Product List page<font size=2><span style="font-family:Tahoma">try setting them as </span></font><span><span class=txt4 id="_ctl0_MainContent__ctl0_PostForm_ReplyBody"><font size=2><span style="font-family:Tahoma">&quot;~/Images/&lt;filename&gt;&quot; in imagefilepath</span><br style="font-family:Tahoma"><br style="font-family:Tahoma"><span style="font-family:Tahoma">the ~ normally indicates the root directory in asp.net apps.</span><br style="font-family:Tahoma"><br style="font-family:Tahoma"><span style="font-family:Tahoma">alternatively, there is a CommerceServer function for this as well</span><br style="font-family:Tahoma"><br style="font-family:Tahoma"><span style="font-family:Tahoma">CommerceComponents.Common.ComponentCommon.ConvertApplicationUrl(&quot;~/Images/hoonzcrazyimage.gif&quot;)</span><br style="font-family:Tahoma"><br style="font-family:Tahoma"><span style="font-family:Tahoma">should provide the information as well</span><br style="font-family:Tahoma"><br style="font-family:Tahoma"><span style="font-family:Tahoma">hope this helps</span></font><br></span></span>Wed, 08 Aug 2007 11:46:52 Z2007-09-21T05:50:04Zhttp://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#cfcbead2-5134-40cc-931d-0eb3414053bahttp://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#cfcbead2-5134-40cc-931d-0eb3414053baHariPhttp://social.msdn.microsoft.com/Profile/en-US/?user=HariPProblem in dispalying images in Product List pageHi <span>Hoonius<br><br></span><span>If i do that, t</span><span>he images are displayed in the product list page but the image is not getting displayed in the Product details page.<br> <br>There, the image path is rendered like http://localhost/StarterSite/~/images/sleepingbags03.gif<br><br>Thank you,<br>Regards,<br>Hari<br><br></span>Wed, 08 Aug 2007 16:34:31 Z2007-08-08T16:34:31Zhttp://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#3931249d-4cfc-4768-86c3-124e2813f5e6http://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#3931249d-4cfc-4768-86c3-124e2813f5e6Hooniushttp://social.msdn.microsoft.com/Profile/en-US/?user=HooniusProblem in dispalying images in Product List page<font size=2><span style="font-family:Tahoma">does the same thing happen with<br><br></span></font><span id="_ctl0_MainContent_PostFlatView"><span><span><span class=txt4 id="_ctl0_MainContent__ctl0_PostForm_ReplyBody"><font size=2><span style="font-family:Tahoma">CommerceComponents.Common.ComponentCommon.ConvertApplicationUrl(imagefilepath)?</span></font></span></span></span></span>Thu, 09 Aug 2007 09:24:28 Z2007-08-09T09:24:28Zhttp://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#33567cd2-03b4-44b7-bea2-223dad221eb9http://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#33567cd2-03b4-44b7-bea2-223dad221eb9HariPhttp://social.msdn.microsoft.com/Profile/en-US/?user=HariPProblem in dispalying images in Product List pageThanks Hoonius,<br><br>It worked. <br><br>I gave the image path as ~/images/&lt;filename&gt; in the Catalog manager and modified the code in the ControlLibraray-&gt; ProductDetails.cs as CommerceComponents.Common.ComponentCommon.ConvertApplicationUrl(imageSource) for image source.<br>Fri, 21 Sep 2007 05:52:30 Z2007-09-21T05:52:30Zhttp://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#92a1ce0a-ee45-4f07-9ced-d9346c8b81a5http://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#92a1ce0a-ee45-4f07-9ced-d9346c8b81a5Ms cshttp://social.msdn.microsoft.com/Profile/en-US/?user=Ms%20csProblem in dispalying images in Product List page<font face=Arial size=2> <p align=left><font face=Arial size=2></font> </p> <p><span>Hi,<br><br>I want to display the images in the Product List page in starter site. I modified the code in ProductList.ascx.<br><br>Here is my code snippet<br><br>                    &lt;asp:HyperLink ID=&quot;ImageURL&quot; runat=&quot;server&quot; EnableViewState=&quot;false&quot;<br>                                        NavigateUrl='&lt;%# this.GetItemUrlString(Container.DataItem) %&gt;'&gt;<br>                     &lt;asp:Image runat=&quot;server&quot; ImageUrl='&lt;%# ((Microsoft.CommerceServer.Catalog.CatalogItemsDataSet.CatalogItem)Container.DataItem)[&quot;Image_filename&quot;].ToString()%&gt;'<br>                            AlternateText=&quot;&lt;%# Eval(DisplayNameColumnName) %&gt;&quot; width=&quot;130&quot; height=&quot;113&quot; /&gt;<br>                     &lt;/asp:HyperLink&gt;</span></p><span> <p align=left> </p> <p align=left> </p> <p align=left> it throws this error   :    Column 'Image_filename' does not belong to table CatalogItems. </p> <p align=left> but 'Image_filename'  exist in table.</p> <p align=left> </p> <p align=left>Kindly help me out in this issue.<br><br><br></p></span></font>Tue, 26 Feb 2008 14:55:38 Z2008-02-26T14:55:38Zhttp://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#09635fdc-6db8-46b1-9cbf-c45fa8b0f01fhttp://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#09635fdc-6db8-46b1-9cbf-c45fa8b0f01fJ-P Souliereshttp://social.msdn.microsoft.com/Profile/en-US/?user=J-P%20SoulieresProblem in dispalying images in Product List page<p align=left><font face=Arial size=2></font> </p> <p>Hi,</p> <p align=left> </p> <p align=left>The StarterSite by default does not specify this property (Image_FileName) in it's propertiesToReturn (when calling the CS API). Easy way to fix this is simply to the column via the web.config.:</p> <p align=left>...</p><font color="#0000ff" size=2> <p>&lt;</font><font color="#a31515" size=2>commerceSite</font><font color="#0000ff" size=2> </font><font color="#ff0000" size=2></font></p> <p align=left><font color="#ff0000">...</font><font size=2></p></font><font color="#0000ff" size=2> <p></font><font color="#ff0000" size=2>propertiesToReturn</font><font color="#0000ff" size=2>=</font><font size=2>&quot;</font><font color="#0000ff" size=2>CategoryName,ProductID,CatalogName,i_ClassType,DisplayName,cy_list_price,<strong>Image_FileName</strong></font><font size=2>&quot;</font><font color="#0000ff" size=2>&gt;</p> <p></p> <p>...</p> <p align=left> </p> <p align=left><font color="#000000">In the site code (SiteConfigurationClass), you could also change the default. This is what it is currently. </font></p><font size=2> <p align=left></font><font color="#808080" size=2> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div> <p align=left><font color="#808080" size=2>///</font><font color="#008000" size=2> </font><font color="#808080" size=2>&lt;summary&gt;</p></font><font size=2> <p align=left></font><font color="#808080" size=2>///</font><font color="#008000" size=2> Gets or sets the additional properties to return during product browsing and search.</p></font><font size=2> <p align=left></font><font color="#808080" size=2>///</font><font color="#008000" size=2> </font><font color="#808080" size=2>&lt;/summary&gt;</p></font><font size=2> <p align=left>[</p> <p align=left></font><font color="#2b91af" size=2>ConfigurationProperty</font><font size=2>(PropertiesToReturnAttributeName,</p> <p align=left>DefaultValue =</p> <p align=left></font><font color="#a31515" size=2>&quot;CategoryName,ProductID,CatalogName,i_ClassType,DisplayName,cy_list_price&quot;</font><font size=2>)]</p> <p align=left></font><font color="#0000ff" size=2>public</font><font size=2> </font><font color="#0000ff" size=2>string</font><font size=2> PropertiesToReturn</p> <p align=left>{</p> <p align=left></font><font color="#0000ff" size=2>get</p></font><font size=2> <p align=left>{</p> <p align=left></font><font color="#0000ff" size=2>return</font><font size=2> (</font><font color="#0000ff" size=2>string</font><font size=2>)</font><font color="#0000ff" size=2>this</font><font size=2>[PropertiesToReturnAttributeName];</p> <p align=left>}</p> <p align=left></font><font color="#0000ff" size=2>set</p></font><font size=2> <p align=left>{</p> <p align=left></font><font color="#0000ff" size=2>this</font><font size=2>[PropertiesToReturnAttributeName] = </font><font color="#0000ff" size=2>value</font><font size=2>;</p> <p align=left>}</p> <p align=left>}</p></font> <p align=left> </p></div></div> <p align=left> </p></font> <p></p><font size=2> <p align=left> </p> <p align=left><font color="#000000">Hope this helps</font></p> <p align=left><font color="#000000"></font> </p> <p align=left><font color="#000000">J-P</font></p></font></font>Wed, 27 Feb 2008 13:05:39 Z2008-02-27T13:05:39Zhttp://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#e4972391-bb45-49c0-a657-ed250edbca38http://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#e4972391-bb45-49c0-a657-ed250edbca38Ms cshttp://social.msdn.microsoft.com/Profile/en-US/?user=Ms%20csProblem in dispalying images in Product List page<span id="_ctl0_MainContent_PostFlatView" style="color:rgb(153,51,0)"><span>Thanks JP,<br><br>It worked. <img src="http://forums.microsoft.com/MSDN/WebResource.axd?d=NySzF1eivP_rMoc50GQJzcvS4MHMOEKwYrCIgDtzuzlw7GsNki3H_INlfYaLgkxFdA4ESFRtesEUXj11MHjIL5WMBvm3Pubiu_iWcnqAaGQ1&amp;amp;t=633337194230757564"></span></span><span><b><span style="color:rgb(255,102,0)"></span></b><span id="_ctl0_MainContent__ctl0_PostForm_ReplyPostedByDate"></span></span>Wed, 27 Feb 2008 14:39:02 Z2008-02-27T14:39:02Zhttp://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#9a0cf1b5-67f7-473e-91e9-8c3a477929b3http://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#9a0cf1b5-67f7-473e-91e9-8c3a477929b3Ms cshttp://social.msdn.microsoft.com/Profile/en-US/?user=Ms%20csProblem in dispalying images in Product List page<font size=2><span style="font-family:Arial">Now in starter site dynamic  images are displaying in a vertical line in product list page. here  grid is used  for displaying the images.....<br> <br> <br>like:<br> <br>image1<br>image2<br>image3<br>image4<br>image5<br>image6<br> <br>code for above images:<br><br><br></span></font> <div style="text-align:left"><font size=2><span style="font-family:Arial"> <div class=codeseg> <div class=codecontent>&lt;asp:GridView ID=&quot;SearchResults&quot; runat=&quot;Server&quot; AutoGenerateColumns=&quot;false&quot; EnableViewState=&quot;false&quot;<br>    AllowPaging=&quot;true&quot;&gt;<br><br>    &lt;Columns&gt;<br><br> &lt;asp:TemplateField&gt;<br>    &lt;ItemTemplate&gt;<br>            <br>             &lt;asp:HyperLink ID=&quot;ImageURL&quot; runat=&quot;server&quot; EnableViewState=&quot;false&quot;<br>                                        NavigateUrl='&lt;%# this.GetItemUrlString(Container.DataItem) %&gt;'&gt;<br>                     &lt;asp:Image ID=&quot;Image1&quot; runat=&quot;server&quot; ImageUrl='&lt;%# ((Microsoft.CommerceServer.Catalog.CatalogItemsDataSet.CatalogItem)Container.DataItem)<br>                    [&quot;Image_filename&quot;].ToString()%&gt;'<br>                            AlternateText=&quot;&lt;%# Eval(DisplayNameColumnName) %&gt;&quot; width=&quot;130&quot; height=&quot;113&quot; /&gt;<br>                     &lt;/asp:HyperLink&gt;<br>    <br>    &lt;/ItemTemplate&gt;<br>    <br>    <br>    &lt;/asp:TemplateField&gt;<br>    &lt;/Columns&gt;<br>&lt;/asp:GridView&gt;<br></div></div></span></font></div><font size=2><span style="font-family:Arial"></span></font><br><font size=2><span style="font-family:Arial">   </span></font><font size=2><span style="font-family:Arial"><br></span></font><font size=2><span style="font-family:Arial"> <br>but i want images like:<br> <br>image1       image2         image3<br> <br>image4        image5         image6<br> <br>I want to use table itself for displaying images like above.<br> <br> <br>http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1984043&amp;SiteID=1<br> <br> <br>Kindly help me........</span></font>Thu, 28 Feb 2008 07:57:01 Z2008-02-28T07:57:01Zhttp://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#a1bdbc30-a592-447c-ad4c-d3ab86b5a4f1http://social.msdn.microsoft.com/Forums/en-US/commserver2007/thread/1eb7e5ca-ea82-4ee4-8ad3-a108a297c2c1#a1bdbc30-a592-447c-ad4c-d3ab86b5a4f1Ms cshttp://social.msdn.microsoft.com/Profile/en-US/?user=Ms%20csProblem in dispalying images in Product List page<span id="_ctl0_MainContent_PostFlatView"><span><font style="color:rgb(153,51,102)" size=2><span style="font-family:Arial">I did  same thing with datlist as what is in starter site  datagrid in productlist.ascx page. means </span></font><font style="color:rgb(153,51,102)" size=2><span style="font-family:Arial">I replace the datagrid by datalist.</span></font><br style="color:rgb(153,51,102)"><font size=2><span style="font-family:Arial"><br style="color:rgb(153,51,102)"><span style="color:rgb(153,51,102)">But that datalist is not appearing when we run the products.aspx page.</span><br style="color:rgb(153,51,102)"><br style="color:rgb(153,51,102)"><span style="color:rgb(153,51,102)">or i have to write some extra code for datlist. i think that as datgrid is bind same way with datalist.</span><br style="color:rgb(153,51,102)"><br style="color:rgb(153,51,102)"><span style="color:rgb(153,51,102)">i put same id  of grid in datlist. and comment the page index in productlist.aspx.cs. but still that datlist is not coming.</span><br style="color:rgb(153,51,102)"><br style="color:rgb(153,51,102)"><span style="color:rgb(153,51,102)">pls help me....<br></span></span></font></span></span><span id="_ctl0_MainContent_PostFlatView"><span><font size=2><span style="font-family:Arial"> <div class=codeseg></div></span></font></span></span> <div style="text-align:left"><span id="_ctl0_MainContent_PostFlatView"><span><font size=2><span style="font-family:Arial"><span style="color:rgb(153,51,102)"><span style="color:rgb(0,255,255)"><br><br><br>&lt;asp<img alt="Big Smile" src="http://forums.microsoft.com/MSDN/emoticons/emotion-2.gif">ataList ID=&quot;SearchResults&quot; runat=&quot;server&quot; RepeatColumns=&quot;3&quot; RepeatDirection=&quot;Horizontal&quot;&gt;<br>    &lt;ItemTemplate&gt;<br>        &lt;table cellpadding=&quot;3&quot; cellspacing=&quot;0&quot; border=&quot;0&quot;&gt;<br>            &lt;tr&gt;<br>                &lt;td valign=&quot;top&quot;&gt;<br>                    &lt;asp:HyperLink ID=&quot;ImageURL&quot; runat=&quot;server&quot; EnableViewState=&quot;false&quot; NavigateUrl='&lt;%# this.GetItemUrlString(Container.DataItem) %&gt;'&gt;<br>                        &lt;asp:Image ID=&quot;Image1&quot; runat=&quot;server&quot; ImageUrl='&lt;%# ((Microsoft.CommerceServer.Catalog.CatalogItemsDataSet.CatalogItem)Container.DataItem)<br>                    [&quot;Image_filename&quot;].ToString()%&gt;' AlternateText=&quot;&lt;%# Eval(DisplayNameColumnName) %&gt;&quot; Width=&quot;130&quot;<br>                            Height=&quot;113&quot; /&gt;<br>                    &lt;/asp:HyperLink&gt;<br>                &lt;/td&gt;<br>            &lt;/tr&gt;<br>        &lt;/table&gt;<br>    &lt;/ItemTemplate&gt;<br>&lt;/asp<img height=19 alt="Big Smile" src="http://forums.microsoft.com/MSDN/emoticons/emotion-2.gif" width=19>ataList&gt;<br></span></span></span></font></span></span><span id="_ctl0_MainContent_PostFlatView"><span><font size=2><span style="font-family:Arial"><span style="color:rgb(153,51,102)"><span style="color:rgb(0,255,255)"></span></span></span></font></span></span></div>Fri, 29 Feb 2008 08:09:57 Z2008-02-29T08:09:57Z