Could not find control 'xxx' in ControlParameter 'yyy'.

Hi,
I'm trying to updat a SQL datasoure using a control parameter and am getting the message
"Could not find control 'form1$Content2$DataList1$name' in ControlParameter 'AWCname'."
The code is attached below I have include the $ to try and identify the correct object (which is contained in a page within master page) but this does not appear to work. Any suggestions as to the issue.
Kind regards

<EditItemTemplate>
                 AWCname:
                <asp:Label ID="AWCnameLabel" runat="server" Text='<%# Eval("AWCname") %>' />
                <br />
                <asp:textbox id="name" runat="server"
               text='<%# ( ( DataRowView ) Container.DataItem ) [ "AWCname" ] %>' />
<br />
                <asp:linkbutton ID="Linkbutton2" commandname="update" runat="server" text="Update" />
               <asp:linkbutton ID="Linkbutton3" commandname="cancel" runat="server" text="Cancel" />
</EditItemTemplate>


#########Then further down the code fro SqlDataSource2 is...###############

UpdateCommand="UPDATE AWCampaign SET AWCname = @AWCname WHERE (AWCCampaignID = @AWCCampaignID)">
        <UpdateParameters>
              <asp:ControlParameter ControlID="form1$Content2$DataList1$name" Name="AWCname" PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="lblGetCampaign" Name="AWCCampaignID" PropertyName="Text" Type="Int32" />
        </UpdateParameters>

##############  on the source code is ############

 public void myListUpdateHandler(Object src, DataListCommandEventArgs e)

SqlDataSource2.Update();

Open in new window

Simon CrippsOwnerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kumaraswamy RCommented:
0
Simon CrippsOwnerAuthor Commented:
Found the solution in
http://msdn.microsoft.com/en-us/library/90xwe9s3.aspx
Cheers for the assistance anyway
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.