SqlDataSource error in Accordion

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>

<asp:parameter 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top