<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : ASPDataSource and updating...</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : ASPDataSource and updating...</description>
  <pubDate>Sun, 12 Apr 2026 12:14:08 -700</pubDate>
  <lastBuildDate>Wed, 26 Sep 2007 08:26:14 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=449</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>ASPDataSource and updating... : Hi David,  Looks like it was...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=449&amp;PID=1342#1342</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=48" rel="nofollow">CetinBasoz</a><br /><strong>Subject:</strong> 449<br /><strong>Posted:</strong> 26-Sep-2007 at 8:26am<br /><br />Hi David, <DIV>Looks like it was not fault of ASPDataSource. Me or ASP itself, not sure at the moment:) I'll update you later (I almost got it to work just as I want it to be).</DIV><DIV>&nbsp;</DIV><DIV>Update: For the lurkers, it was not due to change from DevforceDataSource to ASPDataSource but to a glitch in ASP.Net itself. During conversion I unintentionally removed a code line which made it to work before. It doesn't seem logical to me but it works when in Page_Load I have:</DIV><DIV>&nbsp;</DIV><DIV>{</DIV><DIV>//...</DIV><DIV>&nbsp; bool dummy = (grdPerson.SelectedDataKey != null);</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>Invoking get is appearantly forcing a kind of refresh for the selected record. </DIV><span style="font-size:10px"><br /><br />Edited by CetinBasoz - 27-Sep-2007 at 10:21am</span>]]>
   </description>
   <pubDate>Wed, 26 Sep 2007 08:26:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=449&amp;PID=1342#1342</guid>
  </item> 
  <item>
   <title>ASPDataSource and updating... : Thank you very much for the source...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=449&amp;PID=1313#1313</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=48" rel="nofollow">CetinBasoz</a><br /><strong>Subject:</strong> 449<br /><strong>Posted:</strong> 25-Sep-2007 at 12:45am<br /><br />Thank you very much for the source code. It will defintely help me to understand inner workings better:)<DIV><BR>For the Ajax problem I will send you both DevforceDataSource version (3.5.3.1) and the ASPDataSource version (3.5.4.1) along with the partial MSSQL data ASAP so you can reproduce there.</DIV>]]>
   </description>
   <pubDate>Tue, 25 Sep 2007 00:45:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=449&amp;PID=1313#1313</guid>
  </item> 
  <item>
   <title>ASPDataSource and updating... : Can you send me instructions on...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=449&amp;PID=1305#1305</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 449<br /><strong>Posted:</strong> 24-Sep-2007 at 3:27pm<br /><br />Can you send me instructions on how to reproduce the problem with Ajax?&nbsp; Please send this information to <a href="mailto:support@ideablade.com" target="_blank">support@ideablade.com</A>.]]>
   </description>
   <pubDate>Mon, 24 Sep 2007 15:27:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=449&amp;PID=1305#1305</guid>
  </item> 
  <item>
   <title>ASPDataSource and updating... : I think that you came up with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=449&amp;PID=1303#1303</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 449<br /><strong>Posted:</strong> 24-Sep-2007 at 3:24pm<br /><br />I think that you came up with a good solution.&nbsp; However, I would recommend that you use an abstract class to prevent the user from using improper signatures.<DIV>&nbsp;</DIV><DIV>The ZIP file I am attaching has the source code for the EntityAdapterManager.cs.</DIV><DIV>&nbsp;</DIV><DIV><a href="http://www.ideablade.com/forum/uploads/20070924_182424_EntityAdapterMa.zip" target="_blank">uploads/20070924_182424_EntityAdapterMa.zip</A></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 24 Sep 2007 15:24:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=449&amp;PID=1303#1303</guid>
  </item> 
  <item>
   <title>ASPDataSource and updating... : DoStandardUpdateSingleEntity do...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=449&amp;PID=1299#1299</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=48" rel="nofollow">CetinBasoz</a><br /><strong>Subject:</strong> 449<br /><strong>Posted:</strong> 24-Sep-2007 at 10:34am<br /><br />DoStandardUpdateSingleEntity do not cover all types (and it says that in learning scripts). <DIV></DIV>I was surprised to see it doesn't update boolean fields so I created: <DIV>&nbsp;</DIV><DIV>public class EntityAM:EntityAdapterManager</DIV><DIV>{ <BR><FONT color=#0000ff size=2>&nbsp; public</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> DoStandardUpdateByPk(</FONT><FONT color=#008080 size=2>PrimaryKey</FONT><FONT size=2> pk, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT color=#008080 size=2>IDictionary</FONT><FONT size=2>&nbsp; newvalues)<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT color=#008080 size=2>Entity</FONT><FONT size=2> ent = </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>.PersistenceManager.GetEntity(pk);<BR>&nbsp;&nbsp;&nbsp;&nbsp; UpdateProperties(newvalues, ent);<BR>&nbsp;&nbsp; }</FONT></DIV><DIV><FONT color=#0000ff size=2>&nbsp;&nbsp; public</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> UpdateProperties(</FONT><FONT color=#008080 size=2>IDictionary</FONT><FONT size=2> newvalues, </FONT><FONT color=#008080 size=2>Entity</FONT><FONT size=2> ent)<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; // ...</DIV></FONT><DIV>&nbsp;&nbsp; }<BR>}</DIV><DIV>&nbsp;</DIV><DIV>UpdateProperties are used by both UpdateEntity() and InsertEntity().</DIV><DIV>&nbsp;</DIV><DIV>It works. I'm not sure if I'm doing it right ( DoStandardUpdateSingleEntity() was protected so I did mine this way ). Could you tell me if there were a better way.</DIV><DIV>&nbsp;</DIV><DIV>PS: I did first with DevForceDataSource and made it to work with Ajax. Converting to ASPDataSource, lost Ajax behavior I had successfully before.</DIV><DIV>It was a GridView and DetailsView and what specifically happens:</DIV><DIV>It updates DetailsView if SelectedIndexChanged but when PageIndexChanged it updates 'with previous record data'. &nbsp;Before with DevforceDataSource it was working just as I want it to be.</DIV><DIV>Working on it (actually doing from scratch now) and would appreciate if anyone has an idea what I may be missing.</DIV><DIV>Thanks in advance.</DIV><DIV>&nbsp;</DIV><DIV>I would like to see a forum section devoted to ASP.</DIV><span style="font-size:10px"><br /><br />Edited by CetinBasoz - 24-Sep-2007 at 10:36am</span>]]>
   </description>
   <pubDate>Mon, 24 Sep 2007 10:34:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=449&amp;PID=1299#1299</guid>
  </item> 
 </channel>
</rss>