Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot find control-name in control-parameter
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01407076
Message ID:
01408157
Views:
36
>>Paul, unfortunately your suggestion doesn't work. When I entered cUserId = Me.Page.RoundPanel1.FindControl("HIddenField1").UniqueId, I got the squiggly blue line under it and when I hovered the mouse over it, it said that RoundPanel1 is not a member of class Page. This is so frustrating! Everything I try fails. It shouldn't be this difficult, should it?
>
>It sounds like it may be nested inside of other controls. If that's the case, you may not actually be able to refer to it directly from the code behind w/o calling FindControl of the container object. For example, if your RoundPanel1 is inside of some other section of another control. Post a small section of your ASP.NET page here up to where the HiddenField1 is.

OK, I'll try that. I will elipse certain code to keep it as brief as possible. I use MasterPages on my site. I don't know if that makes a difference. I hasn't for other things. So...
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <table id="MainTable" style="border:none; background-color:#F0F8FF">
        <tr id="TableRow1" style="border:none">
            <td id="TableCell1" colspan="2" style="border:none; height:2px"></td>
        </tr>
        <tr id="TableRow2" style="border:none">
            <td id="TableCell2" style="border:none; width:850px; vertical-align:top">
                <dxrp:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
                    CssFilePath="~/App_Themes/Blue/BlueStyles.css" CssPostfix="Blue" BackColor="White"
                    Width="850px" HeaderText="My Dana's 3D Profile" HeaderStyle-Font-Bold="true">
                    ...
                    ' code that defines the style, color, etc. of the panel
                    ...
                       <PanelCollection>
                            
                            <dxp:panelcontent id="dataPanelContent" runat="server">
                                <table id="profileTable" style="border:none; width:100%">
                                    <tr id="linksRow" style="border:none">
                                        <td id="pwLinkCell" style="border:none; width: 145px;" align="left">
                                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Danas3D/ChangeMyPassword.aspx"
                                                Width="142px">Change my Password</asp:HyperLink>
                                        </td>
                                        <td id="emLinkCell" style="border:none" align="left">
                                        </td>
                                    </tr>
                                    <tr id="userDataRow" style="border:none">
                                        <td id="udCell" style="border:none" colspan="2" align="left">
                                            <br /><br />
                                            <asp:GridView ID="ProfileGridview" runat="server" BorderStyle="None" CellPadding="2"
                                                ShowHeader="False" Font-Size="9pt">
                                            </asp:GridView>
                                            <br />
                                            <hr />
                                            <table id="profileData" style="border:none; width:100%">
                                                <tr id="userIdRow" style="border:none">
                                                    <td id="userIDCell" style="border:none" colspan="2">
                                                        <asp:HiddenField ID="HiddenField1" runat="server" />
                                                    </td>
                                                </tr>
                                                <tr id="fnRow" style="border:none">
                                                    <td id="fnLabel" style="border:none; padding-right:2px; width: 127px;" align="right">
                                                        <asp:Label ID="lblFN" runat="server" Text="First Name:" Font-Bold="True"></asp:Label>
                                                    </td>
                                                    <td id="fnData" style="border:none; padding-left:2px" align="left">
                                                        <asp:TextBox ID="TextFirstName" runat="server" MaxLength="50" Enabled="False" Width="366px" AutoCompleteType="FirstName"></asp:TextBox>
                                                        <asp:RequiredFieldValidator runat="server" ID="FirstNameValidator" SetFocusOnError="True" ControlToValidate="TextFirstName" ErrorMessage="First Name is required!" ToolTip="First Name is required" ValidationGroup="ProfileDataValidator">*</asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
I included code up to the first data entry field after the hidden field. The GridView you see has data bound to it in the code behind after a call to a stored procedure. It presents data that is not editable. I got the same errors when I didn't have the hidden field, they just started with the first name textbox instead.

Note that I am using a regular table not a asp:Table. It is for layout only.

Thanks for taking the time with me.
Dana
Where's the damned Any Key?...too late
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform