<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Access and ObjectDataSource Control</title><link>http://forums.asp.net/23.aspx</link><description>Questions and discussions related to using ADO.NET for data access, and the ObjectDataSource control. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=9&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: DataObjectSource Question</title><link>http://forums.asp.net/thread/1204856.aspx</link><pubDate>Tue, 21 Feb 2006 14:33:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1204856</guid><dc:creator>Julián Hidalgo</dc:creator><author>Julián Hidalgo</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1204856.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=23&amp;PostID=1204856</wfw:commentRss><description>Hi&lt;br /&gt;&lt;br /&gt;I think this is because of the compilation model in ASP.NET 2.0. Take a look at this:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://west-wind.com/weblog/posts/2130.aspx"&gt;More ASP.NET 2.0 Compilation Model issues - ASPX pages not visible to your app&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Rick Strahl says:&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;"&lt;i&gt;One page class can
no longer see other page classes even if they live in the same
namespace! This is because they get generated into a dynamic namespace
that is not accessible at designtime.&lt;/i&gt;"&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Try something: put a label (Label1) in your web form and add this in the codebehind:&lt;br /&gt;&lt;br /&gt;&lt;font color="#000080" face="Courier New" size="2"&gt;Label1.Text = this.GetType().ToString();&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;For a webform called "tods.aspx" i get &lt;span id="Label1"&gt;ASP.tods_aspx, but if i set TypeName="ASP.tods_aspx" i get the same error. I tried using a namespace but it's the same.&lt;br /&gt;I think you should create another class and put the method there, not only to fix your problem but because it's a better design.&lt;br /&gt;&lt;br /&gt;Greetings.&lt;br /&gt;Julián Hidalgo&lt;br /&gt;&lt;/span&gt;&lt;div&gt; 
&lt;/div&gt;</description></item><item><title>DataObjectSource Question</title><link>http://forums.asp.net/thread/1204151.aspx</link><pubDate>Mon, 20 Feb 2006 20:49:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1204151</guid><dc:creator>rick9004</dc:creator><author>rick9004</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1204151.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=23&amp;PostID=1204151</wfw:commentRss><description>I implemented a SQLdataSource using stored procs without difficulty, but I am stuck on this one.&lt;br /&gt;&lt;br /&gt;I have a GridView that is populated from a varing set of SQL selects that change based on the page and need from the originating page.&amp;nbsp; (BTW this is working fine in NET 1.1).&lt;br /&gt;&lt;br /&gt;Now with NET2 I'm getting this error:&amp;nbsp; &lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;he type specified in the TypeName property of ObjectDataSource 'resultsData' could not be found.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Code snippets are below....&lt;br /&gt;from my aspx page&lt;br /&gt;&amp;nbsp;&amp;lt;asp:GridView ID="GridView1" runat="server" DataSourceID="resultsData"&amp;gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;asp:ObjectDataSource ID="resultsData" runat="server" SelectMethod="getPropResults" TypeName="test4"&lt;br /&gt;&lt;br /&gt;from my code behind page I have the class as "test4" (which is the page name) with a function as &lt;/font&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;"getPropResults"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Does the TypeName need to be qualified somehow?.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Any help will be great&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;</description></item></channel></rss>