ianmcinnes
Newcomer
- Joined
- Oct 13, 2005
- Messages
- 2
Hi guys,
Hopefully someone can shed some light on this weird problem:
If have an .ascx with standard form controls in it, the section in question is:
...
<TR>
<TD>
<asp:Label id="LblVenueCounty" runat="server">Venue County</asp:Label>
</TD>
<TD>
<asp: DropDownList id="DDVenueCounty" runat="server" OnSelectedIndexChanged="PopulateTown" />
</TD>
</TR>
...
The form displays fine until I add "OnSelectedIndexChanged=PopulateTown" to 'DDVenueCounty'. As soon as I add this bit of code the entire form is not rendered. So the above example does not work, but this does:
...
<TR>
<TD>
<asp:Label id="LblVenueCounty" runat="server">Venue County</asp:Label>
</TD>
<TD>
<asp: DropDownList id="DDVenueCounty" runat="server" />
</TD>
</TR>
...
I have no code in the codebehind or anywhere else that could effect this (that I know of) - I have also tried creating the PopulateTown Sub just in case this was effecting it but this makes no difference.
Any help would be apprechiated, this makes no sense to me and I see no reason why the entire form is not displayed!
Thanks in advance
E
Hopefully someone can shed some light on this weird problem:
If have an .ascx with standard form controls in it, the section in question is:
...
<TR>
<TD>
<asp:Label id="LblVenueCounty" runat="server">Venue County</asp:Label>
</TD>
<TD>
<asp: DropDownList id="DDVenueCounty" runat="server" OnSelectedIndexChanged="PopulateTown" />
</TD>
</TR>
...
The form displays fine until I add "OnSelectedIndexChanged=PopulateTown" to 'DDVenueCounty'. As soon as I add this bit of code the entire form is not rendered. So the above example does not work, but this does:
...
<TR>
<TD>
<asp:Label id="LblVenueCounty" runat="server">Venue County</asp:Label>
</TD>
<TD>
<asp: DropDownList id="DDVenueCounty" runat="server" />
</TD>
</TR>
...
I have no code in the codebehind or anywhere else that could effect this (that I know of) - I have also tried creating the PopulateTown Sub just in case this was effecting it but this makes no difference.
Any help would be apprechiated, this makes no sense to me and I see no reason why the entire form is not displayed!
Thanks in advance
E
Last edited: