﻿<?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 - ISDataSource - Update problem when using ISDataSource</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/Update-problem-when-using-ISDataSource/</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 problem when using ISDataSource</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/Update-problem-when-using-ISDataSource/</link><pubDate>Wed, 24 Aug 2011 03:34:12 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;A data source control is characterized by a unique ID. This ID is the link that ties data-bound and data source controls together. You bind WebGrid to a data source control, in this case is ISDataSource using the DataSourceId property. For example, whenever WebGrid needs to fetch data, the SelectMethod of the associated ISDataSource control executes. When WebGrid needs to update or delete a record, the corresponding UpdateMethod or DeleteMethod execute. If no such method exists, an exception is thrown.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;My suggestion for your scenario is by providing the UpdateMethod of the ISDataSource control or handles the entire data operation/transaction through WebGrid programmatically.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Update problem when using ISDataSource</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/Update-problem-when-using-ISDataSource/</link><pubDate>Mon, 22 Aug 2011 10:19:46 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 11pt"&gt;Hello &lt;span class="postusername"&gt;Yudi , &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 11pt"&gt;&lt;span class="postusername"&gt;   Firstly , thank you for your reply and help . In my code , I put a batch of update operations in the WebGrid1_BatchUpdate of C# Source file . And in the ISDataSource code , I did not add the update method . That mean I update the data through background program , not the ISDataSource code .&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 11pt"&gt;&lt;span class="postusername"&gt;  I want to know whether I can execute update operation in accordance with the above method and there will no the alert that I have said . How can I do ?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 11pt"&gt;&lt;span class="postusername"&gt; Thanks !&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Update problem when using ISDataSource</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/Update-problem-when-using-ISDataSource/</link><pubDate>Mon, 22 Aug 2011 05:01:00 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Thank you very much for the sent screenshot and snippet code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;From the snippet code, I suspect that this problem occurs due to the lack of update method in your ISDataSource code. Please ensure that UpdateMethod is correctly specified in your ISDataSource code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;We have a sample of batch update WebGrid bind to ISDataSource. You might want to check the live sample at &lt;a href="http://live.intersoftpt.com/cs/WebGrid/BatchUpdate_Enterprise.aspx"&gt;http://live.intersoftpt.com/cs/WebGrid/BatchUpdate_Enterprise.aspx&lt;/a&gt; or open the sample locally on your end.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Update problem when using ISDataSource</title><link>http://www.intersoftsolutions.com/Community/ISDataSource/Update-problem-when-using-ISDataSource/</link><pubDate>Sat, 20 Aug 2011 03:11:08 GMT</pubDate><dc:creator>gavin</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 11pt"&gt;Hi , &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 11pt"&gt;&amp;nbsp; I am tring to update the data in the webgrid , then there will be a alert said "update failure etc"&amp;nbsp;.&amp;nbsp;But in fact , the data in the webgrid is change and the data in the database is also change . It mean update success . &lt;pre&gt;&amp;lt;ISDataSource:ISDataSource runat="server" ID="IDS1" SchemaName="Bizlogic.DB_Frame_CustomPageSetting"&amp;gt;
      &amp;lt;Tables&amp;gt;
           &amp;lt;ISDataSource:ISDataSourceTable SelectMethod="Select" TypeName="Bizlogic.DB_Frame_CustomPageSetting"
 TableName="DB_Frame_CustomPageSetting" EnablePaging="true" SelectCountMethod="SelectCount"&amp;gt;
                 &amp;lt;SelectParameters&amp;gt;
                     &amp;lt;asp:QueryStringParameter Name="categoryNum" DbType="String" QueryStringField="ParentCategoryNum" /&amp;gt;
                 &amp;lt;/SelectParameters&amp;gt;
            &amp;lt;/ISDataSource:ISDataSourceTable&amp;gt;
       &amp;lt;/Tables&amp;gt;
&amp;lt;/ISDataSource:ISDataSource&amp;gt;&lt;/pre&gt;

&lt;p&gt;   The code above I used is to bind to webgrid , and the update method I used is OnBatchUpdate . The image in the attach file is that alert .&lt;/p&gt;
&lt;p&gt;  Anyone can help me ? Thanks a lot !&lt;/p&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>