Starr Duskk
asked on
Changing a DropDownList - select Name
I have a dropdownlist that I need the clientidmode to be static.
I have defined it explicitly in the code in front as above.
However, when it is rendered it adds another name to the front like so:
I'm trying to add a Trigger for a button on a different control and it complains it can't find the ddl, so I suspect, that it is because of this renaming of the name. I view source code and that's the only thing that looks off.
The error is:
A control with ID 'ddlClientTest' could not be found for the trigger in UpdatePanel 'UpdatePanelTeamGrid'.
<asp:DropDownList ID="ddlClientTest" name="ddlClientTest" clientidmode="Static" CssClass="" runat="server">
</asp:DropDownList>
I have defined it explicitly in the code in front as above.
However, when it is rendered it adds another name to the front like so:
<select name="ctl00$ContentBody$TeamSearchGridControl$ScreenNameControl$ClientComboControlFilter$ddlClientTest" id="ddlClientTest" name="ddlClientTest">
I'm trying to add a Trigger for a button on a different control and it complains it can't find the ddl, so I suspect, that it is because of this renaming of the name. I view source code and that's the only thing that looks off.
Dim newtrigger As New AsyncPostBackTrigger
newtrigger.ControlID = "ddlClientTest"
UpdatePanelTeamGrid.Triggers.Add(newtrigger)
The error is:
A control with ID 'ddlClientTest' could not be found for the trigger in UpdatePanel 'UpdatePanelTeamGrid'.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER