S
staeri
I have a dropdownlist attached to a SqlDataSource inside an Accordion.
I receive the following error message when the SqlDataSource is inside
the Accordion:
"The DataSourceID of 'ddGroup' must be the ID of a control of type
IDataSource. A control with ID 'SqlDataSourceGroup' could not be
found."
I've been suggested to move the SqlDataSource out of the Accordion to
get rid of the error message above, but when I do so the SqlDataSource
can't find the ControlParameter (another dropdownlist which is also
inside the Accordion). I then receive the following error message:
"Could not find control 'ddProjectType' in ControlParameter
'ProjectTypeID'"
Here is my SqlDataSource:
<asp:SqlDataSource ID="SqlDataSourceGroup" runat="server"
ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"
SelectCommand="spPROJECTMenuLevelGet"
SelectCommandType="StoredProcedure">
<SelectParameters>
<asparameter Name="MenuLevel" DefaultValue="GROUP" />
<asp:ControlParameter ControlID="ddProjectType" DefaultValue="%"
Name="ProjectTypeID"
PropertyName="SelectedValue" />
<asp:SessionParameter SessionField="varUserID" Name="UserID" />
</
SelectParameters>
</
asp:SqlDataSource>
Does anyone have a solution to this problem?
Best regards,
SE
I receive the following error message when the SqlDataSource is inside
the Accordion:
"The DataSourceID of 'ddGroup' must be the ID of a control of type
IDataSource. A control with ID 'SqlDataSourceGroup' could not be
found."
I've been suggested to move the SqlDataSource out of the Accordion to
get rid of the error message above, but when I do so the SqlDataSource
can't find the ControlParameter (another dropdownlist which is also
inside the Accordion). I then receive the following error message:
"Could not find control 'ddProjectType' in ControlParameter
'ProjectTypeID'"
Here is my SqlDataSource:
<asp:SqlDataSource ID="SqlDataSourceGroup" runat="server"
ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"
SelectCommand="spPROJECTMenuLevelGet"
SelectCommandType="StoredProcedure">
<SelectParameters>
<asparameter Name="MenuLevel" DefaultValue="GROUP" />
<asp:ControlParameter ControlID="ddProjectType" DefaultValue="%"
Name="ProjectTypeID"
PropertyName="SelectedValue" />
<asp:SessionParameter SessionField="varUserID" Name="UserID" />
</
SelectParameters>
</
asp:SqlDataSource>
Does anyone have a solution to this problem?
Best regards,
SE