﻿<?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 - webCombo and LinqDataSource problem</title><link>http://www.intersoftsolutions.com/Community/WebCombo/webCombo-and-LinqDataSource-problem/</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>webCombo and LinqDataSource problem</title><link>http://www.intersoftsolutions.com/Community/WebCombo/webCombo-and-LinqDataSource-problem/</link><pubDate>Thu, 21 Jan 2010 00:11:17 GMT</pubDate><dc:creator>technical@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi George,&lt;/p&gt;&lt;p&gt;After analyzing your issue further, we found that the issue is not a bug in WebCombo. It's more to the LINQ limitation in which new select projection will cause underlying datasource's schema to be invalid. This caused WebCombo to unable to filter the "conditions" clause because the target members are no longer existed in the datasource after the new projection.&lt;/p&gt;
&lt;p&gt;Unlike WebGrid which processes all data after data retrieval, WebCombo requires pre-databound filtering process. As such, WebCombo requires the fields used in DataTextField and DataValueField to remain the same after the new projection.&lt;/p&gt;
&lt;p&gt;The following code shows the working version of WebCombo bound to LINQ DataSource.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebCombo:WebCombo ID="WebCombo1" runat="server" 
        DataSourceID="ISLinqDataSource1" DataTextField="&lt;b&gt;&lt;span style="color: rgb(192, 0, 0); "&gt;ProductName&lt;/span&gt;&lt;/b&gt;" 
        DataValueField="&lt;b&gt;&lt;span style="color: rgb(192, 0, 0); "&gt;ProductName&lt;/span&gt;&lt;/b&gt;" Height="20px" 
        UseDefaultStyle="True" 
        Width="200px"&amp;gt;
    &amp;lt;/ISWebCombo:WebCombo&amp;gt;
    &amp;lt;ISLinqDataSource:ISLinqDataSource ID="ISLinqDataSource1" runat="server" 
        ContextTypeName="NorthwindDataContext" 
        Select="new (&lt;b&gt;&lt;span style="color: rgb(192, 0, 0); "&gt;ProductName&lt;/span&gt;&lt;/b&gt;, UnitPrice)" 
        TableName="Products"&amp;gt;
    &amp;lt;/ISLinqDataSource:ISLinqDataSource&amp;gt;&lt;/pre&gt;
&lt;p&gt;Let me know if you have any questions. &lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>webCombo and LinqDataSource problem</title><link>http://www.intersoftsolutions.com/Community/WebCombo/webCombo-and-LinqDataSource-problem/</link><pubDate>Mon, 07 Dec 2009 01:21:44 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Ok, I have forwarded this to our developer. Thank you.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>webCombo and LinqDataSource problem</title><link>http://www.intersoftsolutions.com/Community/WebCombo/webCombo-and-LinqDataSource-problem/</link><pubDate>Wed, 02 Dec 2009 20:44:28 GMT</pubDate><dc:creator>GeorgeB</dc:creator><description>&lt;p&gt;for the sample use the Ten Most Expensive products stored procedure that is in NorthWind. I don't know if i have the name correct but it is easy to find.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>webCombo and LinqDataSource problem</title><link>http://www.intersoftsolutions.com/Community/WebCombo/webCombo-and-LinqDataSource-problem/</link><pubDate>Tue, 01 Dec 2009 21:43:17 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>Hi George,&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Is it a normal StoreProcedure or something more complexs? Could you guide me?&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Regards,&lt;br /&gt;Handy&lt;/div&gt;</description></item><item><title>webCombo and LinqDataSource problem</title><link>http://www.intersoftsolutions.com/Community/WebCombo/webCombo-and-LinqDataSource-problem/</link><pubDate>Tue, 01 Dec 2009 09:46:07 GMT</pubDate><dc:creator>GeorgeB</dc:creator><description>&lt;p&gt;Handy&lt;/p&gt;&lt;p&gt;Please have them check the use of a stored procedure, too.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;George&lt;br /&gt;&lt;/p&gt;</description></item><item><title>webCombo and LinqDataSource problem</title><link>http://www.intersoftsolutions.com/Community/WebCombo/webCombo-and-LinqDataSource-problem/</link><pubDate>Tue, 01 Dec 2009 00:03:37 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi George,&lt;/p&gt;&lt;p&gt;It seems this is a bug in our WebCombo which WebCombo could not recognize an alias. I have submitted this to our developer. They are checking it right now and i will let you know the result.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>webCombo and LinqDataSource problem</title><link>http://www.intersoftsolutions.com/Community/WebCombo/webCombo-and-LinqDataSource-problem/</link><pubDate>Mon, 30 Nov 2009 14:53:11 GMT</pubDate><dc:creator>GeorgeB</dc:creator><description>&lt;p&gt;I've been trying to set up a WebCombo with a LinqDataSource that uses a stored procedure. I can do this with a WebGrid. Since I couldn't get the WebCombo to work I decided to first try a WebCombo and a WebGrid with a simple select statement in the LinqDataSource. The WebGrid works but the WebCombo fails with a fatal error.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I've attached the sample. You need the northWind SQL db. An example of a stored procedure that will load the WebCombo and WebGrid is "Ten Most Expensive Products". &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Looking forward to your response.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;George&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>