﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebCombo - Images Not Found</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Images-Not-Found/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Images Not Found</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Images-Not-Found/</link><pubDate>Tue, 19 Nov 2013 12:46:32 GMT</pubDate><dc:creator>craig.bennett@vc3.com</dc:creator><description>&lt;p&gt;Thanks.  I had kinda figured that was the case.  &lt;/p&gt;</description></item><item><title>Images Not Found</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Images-Not-Found/</link><pubDate>Mon, 18 Nov 2013 23:02:51 GMT</pubDate><dc:creator>bernard</dc:creator><description>&lt;p&gt;Hi Keith,&lt;/p&gt;&lt;p&gt;I think it can be implemented without WebCombo.Resources.dll in Bin folder but some of our resources had been hard coded in our code. So I think it will be safer if you put WebCombo.Resources.dll in you bin folder. For DataSourceEventArgs in InitializeDataSource, I think you should use this variable in InitializeDataSource event to directly change the DataSource for WebCombo. Although, in some event like page load, you can use webCombo.DataSource to change the data source in WebCombo. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>Images Not Found</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Images-Not-Found/</link><pubDate>Mon, 18 Nov 2013 10:35:25 GMT</pubDate><dc:creator>craig.bennett@vc3.com</dc:creator><description>&lt;p&gt;Thanks for your help Hans.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I had not tried to enable SmartWebResources.  I had planned to simply copy the CommonLibrary folder structure to be application folder.  It seemed to load other images and scripts but not the two that I mentioned.  When I place the resource dll files in the bin folder and add the handler information to my web.config as you did, it works.  I can implement either way but shouldn't it have worked without having the resource dlls in place and the handler section in the web.config?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I didn't see that I needed to set the source on the DataSourceEventArgs.  Thanks.  I saw in the examples in the help document &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I had a typo.  Thanks for that also.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Images Not Found</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Images-Not-Found/</link><pubDate>Mon, 18 Nov 2013 03:40:54 GMT</pubDate><dc:creator>Hans</dc:creator><description>Hello,&lt;br /&gt;&lt;br /&gt;I apologize for any inconvenience this problem may have caused you.&lt;br /&gt;&lt;br /&gt;Thank you for the code.&lt;br /&gt;&lt;br /&gt;Regarding “404 Errors on DD4_Over.gif” issue, I can’t reproduce your issue on my local end.&lt;br /&gt;So do you want to use SmartWebResources in your project or not?&lt;br /&gt;&lt;br /&gt;Regarding “loading…” issue, you could fix the issue by modifying your code.&lt;br /&gt;In Code File page (.cs), I modify your code in InitializeDataSource server side event.&lt;br /&gt;I modify from: “combo.DataSource = data” to  “e.DataSource = data;”&lt;br /&gt;&lt;br /&gt;In InitializeLayout server side evet, I modify from ‘combo.DataTextField = "Value";’ to ‘combo.DataValueField = "Value";’&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I attached the project with WebCombo page based on your code.&lt;br /&gt;Please kindly have review on the attached project to see the result regarding “loading…’ issue.&lt;br /&gt;Regarding “404 Errors” issue, could you help to modify the attached project, so I can replicate your issue on my local end?&lt;br /&gt;&lt;br /&gt;NB: If you can't download the project properly, please follow this link: http://sdrv.ms/1cDm33O&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.</description></item><item><title>Images Not Found</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Images-Not-Found/</link><pubDate>Fri, 15 Nov 2013 17:25:22 GMT</pubDate><dc:creator>craig.bennett@vc3.com</dc:creator><description>I have a sample page where I am attempting to create a WebCombo programmatically. &amp;nbsp;I've also added another WebCombo directly on the page. &amp;nbsp; When the page initially loads, I get 404 errors on DD4_Over.gif and DD4_Active.gif because it is trying to find them in ISRes.axd. &amp;nbsp;However, arrow_black.gif is located correctly in the CommonLibrary/Images folder, which I have copied to my project folder.
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Here is my page code:&lt;/div&gt;
&lt;div&gt;&lt;span style="background-color: rgb(255, 252, 225); font-family: 'courier new', tahoma; font-size: 9pt;"&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebComboTest.Default" %&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;div&gt;&lt;pre&gt;&amp;lt;%@ Register Assembly="ISNet.WebUI.WebCombo" Namespace="ISNet.WebUI.WebCombo" TagPrefix="ISWebCombo" %&amp;gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head runat="server"&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id="form1" runat="server"&amp;gt;
        &amp;lt;div style="height:200px"&amp;gt;
            Runtime: 
            &amp;lt;div style="height:200px"&amp;gt;
                &amp;lt;asp:PlaceHolder ID="wc" runat="server"&amp;gt;&amp;lt;/asp:PlaceHolder&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div style="clear:both; margin-top:20px; "&amp;gt;
            On Page: 
            &amp;lt;div&amp;gt;
                &amp;lt;ISWebCombo:WebCombo ID="webCombo1" runat="server" UseDefaultStyle="true"&amp;gt;&amp;lt;/ISWebCombo:WebCombo&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;asp:Button ID="Button1" runat="server" Text="Load From List" onclick="Button1_Click" /&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;p&gt;  The code behind, which is completely commented out at the moment is a combination of examples I've found on here:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ISNet.WebUI.WebCombo;
namespace WebComboTest
{
    public class Default : System.Web.UI.Page
    {
        protected PlaceHolder wc;
        List&amp;lt;KeyAndValue&amp;gt; data = new List&amp;lt;KeyAndValue&amp;gt;();
        protected WebCombo webCombo1;
        List&amp;lt;Person&amp;gt; allUsers = new List&amp;lt;Person&amp;gt;();
        public class Person
        {
            public string id { get; set; }
            public string name { get; set; }
            public string email { get; set; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //WebCombo combo = new WebCombo("combo");
                //combo.Width = Unit.Pixel(200);
                //combo.Height = Unit.Pixel(20);
                //combo.UseDefaultStyle = true;
                //combo.InitializeDataSource &amp;#43;= combo_InitializeDataSource;
                //combo.InitializeLayout &amp;#43;= combo_InitializeLayout;
                //wc.Controls.Add(combo);
                //allUsers.Add(new Person { id = "1", name = "Alvin", email = "alvin@email.com" });
                //allUsers.Add(new Person { id = "2", name = "Mario", email = "mario@email.com" });
                //allUsers.Add(new Person { id = "3", name = "Martin", email = "martin@email.com" });
                //combo.DataBind();
            }
        }
        void combo_InitializeLayout(object sender, LayoutEventArgs e)
        {
            //WebCombo combo = (WebCombo)sender;
            //combo.DataTextField = "Key";
            //combo.DataTextField = "Value";
        }
        void combo_InitializeDataSource(object sender, DataSourceEventArgs e)
        {
            //WebCombo combo = (WebCombo)sender;
            //data.Add(new KeyAndValue { Key = "One", Value = 1 });
            //data.Add(new KeyAndValue { Key = "Two", Value = 2 });
            //data.Add(new KeyAndValue { Key = "Three", Value = 3 });
            //data.Add(new KeyAndValue { Key = "Four", Value = 4 });
            //data.Add(new KeyAndValue { Key = "Five", Value = 5 });
            //combo.DataSource = data;
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            //webCombo1.DataSource = allUsers;
            //webCombo1.DataTextField = "name";
            //webCombo1.DataValueField = "id";
            //webCombo1.DataBind();
        }
    }
    public class KeyAndValue
    {
        public string Key { get; set; }
        public int Value { get; set; }
    }
}&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;My web.config is as follows:&lt;/p&gt;&lt;pre&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  --&amp;gt;
&amp;lt;configuration&amp;gt;
    &amp;lt;configSections&amp;gt;
    &amp;lt;/configSections&amp;gt;
    &amp;lt;system.web&amp;gt;
      &amp;lt;compilation debug="true" targetFramework="4.5" /&amp;gt;
      &amp;lt;httpRuntime targetFramework="4.5" /&amp;gt;
    &amp;lt;/system.web&amp;gt;
    &amp;lt;appSettings file=""&amp;gt;
        &amp;lt;clear /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebCombo.v6_0_7200.ViewStateStorage" value="None" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebCombo.v6_0_7200.ViewStateItems" value="Behavior" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebCombo.v6_0_7200.CachePriority" value="Normal" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebCombo.v6_0_7200.RunTimeLicenseKey" value="?????-????-?????" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebCombo.v6_0_7200.SharedScriptDirectory" value="~/CommonLibrary/Shared/" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebCombo.v6_0_7200.ScriptDirectory" value="~/CommonLibrary/WebCombo/V6_0_7200/" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebCombo.v6_0_7200.ImagesDirectory" value="~/CommonLibrary/Images/" /&amp;gt;
    &amp;lt;/appSettings&amp;gt;
&amp;lt;/configuration&amp;gt;
&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Can anyone tell me why these images not being loaded correctly?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Also, when the code behind is uncommented, the data is loaded, but the WebCombo boxes both say "loading...' when the down arrow is clicked.  Any idea as to why?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Keith&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</description></item></channel></rss>