I encountered an issue on my webpage where I have three FreeTextBox controls. Everything was working fine until I added a DropDownList control that needed to PostBack to the server. Surprisingly, the OnSelectedIndexChanged event did not trigger when using the DropDownList control. Instead, I kept getting a Javascript error like this:
TypeError: FTB_API.MainContent_MainContent_FreeTextBox1 is undefined
The error seemed straightforward and pointed to a function called WebForm_OnSubmit(). Even after trying various solutions, the issue persisted. It only worked when I removed the FreeTextBox controls from the page. Any assistance would be highly appreciated.
EDIT 1: Here is some of the markup from my page:
3 FreeTextBox controls set up in this manner:
<FTB:FreeTextBox ID="FreeTextBox3" JavaScriptLocation="ExternalFile" ButtonImagesLocation="ExternalFile" ToolbarImagesLocation="ExternalFile" runat="server" EnableHtmlMode="true" />
My DropDownList control:
<asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="true" AutoPostBack="true" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList>