﻿<?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 databind to WebMethod </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-databind-to-WebMethod/</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 databind to WebMethod </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-databind-to-WebMethod/</link><pubDate>Tue, 05 Mar 2013 04:37:51 GMT</pubDate><dc:creator>sinan.biondic@gmail.com</dc:creator><category>WebCombo</category><category>DataBind</category><category>webmethod</category><category>client-side</category><description>&lt;p&gt;Got it, thanks.&lt;/p&gt;</description></item><item><title>Webcombo databind to WebMethod </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-databind-to-WebMethod/</link><pubDate>Tue, 05 Mar 2013 02:26:01 GMT</pubDate><dc:creator>bernard</dc:creator><category>WebCombo</category><category>DataBind</category><category>webmethod</category><category>client-side</category><description>&lt;p&gt;Hi Nikola,&lt;/p&gt;&lt;p&gt;It can't be done if you define WebMethod in System.Web.UI.Page class. You should put it inside WebService class. That's why we need .asmx as Web Service inside your project. Web Service itself have code behind that held WebMethod to get QueryResult. Although, DataSourceSelectArguments will automatically parsed from WebCombo to WebMethod when selecting. However, you can't return a DataTable in ClientBinding with WebService. Also for the snippet code above, the snippet code is not correct because it has WebService as DataSourceType and it will refer to asmx file as WebService. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>Webcombo databind to WebMethod </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-databind-to-WebMethod/</link><pubDate>Mon, 04 Mar 2013 08:41:17 GMT</pubDate><dc:creator>sinan.biondic@gmail.com</dc:creator><category>WebCombo</category><category>DataBind</category><category>webmethod</category><category>client-side</category><description>I'm sorry but i just can't get it together, how am I supposed to do this. How do I pass&amp;nbsp;DataSourceSelectArguments to webmethod, and what should I return. Can I just return the DataTable object? Can you please provide me with sample code on hot to do this, that would be very much appreciated. Also, what should be put in control's markup to define it's connection to webmethod on aspx page. Is the following code correct &amp;nbsp;on that terms?&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre&gt;&amp;lt;ClientBindingSettings DataSourceType="WebService" ServiceUrl="MyPageName.aspx"&amp;gt;
    &amp;lt;ServiceMethods SelectMethod="WebMethodName" /&amp;gt;
&amp;lt;/ClientBindingSettings&amp;gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Webcombo databind to WebMethod </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-databind-to-WebMethod/</link><pubDate>Sun, 03 Mar 2013 23:21:34 GMT</pubDate><dc:creator>bernard</dc:creator><category>WebCombo</category><category>DataBind</category><category>webmethod</category><category>client-side</category><description>&lt;p&gt;Hi Nikola,&lt;/p&gt;&lt;p&gt;In my sample, I'm using Data Context that automatically built from LINQ to SQL Classes item (dbml). You can see the connection definition in Northwind.designer.cs inside Northwind.dbml. You can use aspx with WebMethod like you mentioned above. You can also define the stored procedure for data retrieval inside it as long as you can access the custom class in WebMethod to get the data. For references, you can look the sample in our WebCombo sample about client binding. And to refresh the value inside ResultBox, you can put the same way like in my sample.&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;WebCombo2.IsDirty = true;
WebCombo2.NeedClearList = true;
WebCombo2.Values = null;
WebCombo2.ClearSelection();
WebCombo2.RefreshValueItems();&lt;/pre&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Webcombo databind to WebMethod </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-databind-to-WebMethod/</link><pubDate>Fri, 01 Mar 2013 04:07:07 GMT</pubDate><dc:creator>sinan.biondic@gmail.com</dc:creator><category>WebCombo</category><category>DataBind</category><category>webmethod</category><category>client-side</category><description>&lt;p&gt;I guess the webservice can just be replaced with aspx that has a webmethod on it. &lt;/p&gt;&lt;p&gt;This part with northwind database confuses me, can you please show me how webmethods would look if you had a connection to sql server and stored procedure for data retrieval.&lt;/p&gt;</description></item><item><title>Webcombo databind to WebMethod </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-databind-to-WebMethod/</link><pubDate>Fri, 01 Mar 2013 01:38:08 GMT</pubDate><dc:creator>bernard</dc:creator><category>WebCombo</category><category>DataBind</category><category>webmethod</category><category>client-side</category><description>&lt;p&gt;Hi Nicola,&lt;/p&gt;&lt;p&gt;To achieve your scenario, I've made you an sample. You can download the sample &lt;a href="http://www.mediafire.com/?jr9abppzc6p385b" target="_blank"&gt;here&lt;/a&gt;.&lt;span style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;To refresh Client Binding WebCombo using this script. When you select the first WebCombo, second WebCombo will refresh its value. Hope this helps.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Bernard&lt;/p&gt;</description></item><item><title>Webcombo databind to WebMethod </title><link>http://www.intersoftsolutions.com/Community/WebCombo/Webcombo-databind-to-WebMethod/</link><pubDate>Thu, 28 Feb 2013 08:43:15 GMT</pubDate><dc:creator>sinan.biondic@gmail.com</dc:creator><category>WebCombo</category><category>DataBind</category><category>webmethod</category><category>client-side</category><description>&lt;p&gt;I am trying to bind webcombo dynamically. In the page_load event on server side i don't have the information needed to load webcombo data, i have it on client-side. I saw that it was possible to bind combo to webmethod in webservice, but is it possible to bind it to webmethod on .aspx page on which the combo itself is contained.&lt;/p&gt;
&lt;p&gt;My problem is that i need to dynamically rebind webcombo on client depending on some input. So when users clicks on different menu options I have to load different data in combo. Is that even possible, and if yes, can someone please give me a working example. I am getting data from stored procedure in sql server. Is there a way, please help!&lt;/p&gt;</description></item></channel></rss>