I have searched for any related posts and I have noticed that there have been a few unresolved posts that are similar. I think I might be able to provide a few more details on the problems with using datasourcecontrols with a wizard. I think this is definitely a bug. I am new to netTiers, so I am just learning and not experienced enough to tackle this on my own. I am using the latest nightly build 3/28/2007.
If I put this simple grid with search on a page, it works perfectly:
<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="gvAccounts"></data:GridViewSearchPanel>
<data:EntityGridView ID="gvAccounts" runat="server" AllowExportToExcel="False" AllowMultiColumnSorting="False"
AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="MxlAccountId" DataSourceID="AccountDataSource1"
DefaultSortColumnName="MxlAccountId" DefaultSortDirection="Ascending" >
<Columns>
<asp:BoundField DataField="MxlAccountId" HeaderText="MxlAccountId" InsertVisible="False"
ReadOnly="True" SortExpression="MxlAccountId" Visible="False" />
<asp:ButtonField CommandName="Select" DataTextField="AccountName" HeaderText="Associated Account Name"
SortExpression="AccountName" />
</Columns>
</data:EntityGridView>
<data:AccountsDataSource ID="AccountDataSource1" runat="server" EnablePaging="True" EnableSorting="True" SelectMethod="GetPaged">
</data:AccountsDataSource>
If I put this same code in a wizard, I get this error:
AccountDataSource1:Cannot create an object of type 'XXXXX.IEntityProvider` (clipped for brevity) from its string representation '' for the 'Provider' property.
This only happens when I add the AccountsDataSource to a web page that has a wizard control on it. If I remove the wizard code, I no longer get the error. It appears that the Provider property is unable to read the config to get the provider information.
Also, if I drop a user control into the wizard, the AccountsDataSource automatically adds all of the public properties to itself with default values. The GridViewSearchControl does the same thing. This is very annoying. Again, only happens on a page with a wizard. I was going to just manually bind the gridview but then the GridViewDataSource blows up. Hopefully someone has some ideas on this.
Thanks!