﻿<?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 - WebDesktop - Update WebCombo datasource on FlyPostBackManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/UpdateWebCombodatasourceonFlyPostBackManager/</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>Update WebCombo datasource on FlyPostBackManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/UpdateWebCombodatasourceonFlyPostBackManager/</link><pubDate>Tue, 10 Apr 2012 03:04:42 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;br /&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your information. I’ve been able replicate your issue as well.&lt;br /&gt;&lt;br /&gt;Based on your scenario, It seems WebCombo is a little late to retrieve new row that just added. So, set the value from server is not an option.&lt;br /&gt;The only possible way, is set it from client side.&lt;br /&gt;&lt;br /&gt;I have made a sample. In this my sample, I use Northwind.mdb &amp;amp; Shippers table.&lt;br /&gt;I send the new value from server side to client side by using this following script:&lt;br /&gt;&lt;pre&gt;// Send the new value to client side
ClientScript.RegisterStartupScript
(GetType(), "Javascript", "javascript: setText('" &amp;#43; id &amp;#43; "'); ", true);&lt;/pre&gt;
&lt;p&gt;In my client side code, I set the value to WebCombo. Here’s the script below:&lt;/p&gt;&lt;pre&gt;function setText(val) {
var WebCombo1 = ISGetObject("WebCombo1");
// Set the WebCombo value
WebCombo1.SetText(val, true);
} &lt;/pre&gt;I also attached my sample, in order to make you more easily to understand how-to-use those script.&lt;br /&gt;&lt;br /&gt;Hope this helps. Thank you.&lt;br /&gt;Regards,&lt;br /&gt;Hans&lt;br /&gt;</description></item><item><title>Update WebCombo datasource on FlyPostBackManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/UpdateWebCombodatasourceonFlyPostBackManager/</link><pubDate>Mon, 09 Apr 2012 07:27:06 GMT</pubDate><dc:creator>aspnet@softwarestudio.com.pl</dc:creator><description>Hello &lt;br /&gt;Handy i insert data to database and set the new code as value to webcombo. For example i insert new data to table knaso:&lt;br /&gt;&lt;blockquote style="padding-left: 10px; margin: 0px 0px 0px 5px; border-left: 1px solid rgb(204, 204, 204);"&gt;INSERT INTO [knaso] (COL1, COL2, COL3, ID) VALUES ('1','A1', 'B1, 12);&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Then i select new value from database and set this value on WebCombo:&lt;br /&gt;&lt;blockquote style="padding-left: 10px; margin: 0px 0px 0px 5px; border-left: 1px solid rgb(204, 204, 204);"&gt;SELECT TOP(1) COL1 FROM knaso WHERE ID = 12&lt;br /&gt;&lt;br /&gt;cWebCombo.Value = COL1; --&amp;gt; new selected value&lt;br /&gt;cWebCombo.RequiresUIRefresh = true;&lt;br /&gt;cWebCombo.DataBind();&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;After FlyPostaBackManager back to client site i have emty cWebCombo. I think because datasource have not this new data or enything else ?&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Adam &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Update WebCombo datasource on FlyPostBackManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/UpdateWebCombodatasourceonFlyPostBackManager/</link><pubDate>Mon, 09 Apr 2012 07:03:15 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;If the data has not been inserted to database, you would not be able to show the value. Please let us know about what code that you used in your sample. We need it to investigate your current issue. FYI, We also have a sample about how to add new row in database, AddItem.aspx. &lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Update WebCombo datasource on FlyPostBackManager</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/UpdateWebCombodatasourceonFlyPostBackManager/</link><pubDate>Sat, 07 Apr 2012 12:35:38 GMT</pubDate><dc:creator>aspnet@softwarestudio.com.pl</dc:creator><description>&lt;p&gt;Hi &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;i have form with webcombo, sqldatasource, webbutton, and flaypostbackmanager. I try on after i click webbutton go to server side with flaypostbackmanager add new row to table of sqldatasource select and set this value to webcombo on form. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;is no problem with set this information on webcombo but webcombo not show this value. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;how can i refresh data source after add new item to the table ? I try to use ISDatasource but is the same..&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;thank you for help&lt;/p&gt;
&lt;p&gt;regards &lt;/p&gt;
&lt;p&gt;Adam&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>