Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

CascadingDropDown returning SelectedValue empty

$
0
0

Hello everyone.

I have a Default.aspx page which has a PlaceHolder and inside it an ascx control loaded by using the following code:

PlaceHolder.Controls.Add(LoadControl("mycontrol.ascx"));
ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(PlaceHolder.Controls[0]);

Inside of mycontrol.ascx" I have insterted a button to show a ModalPopUpExtender which points to a panel and inside that panel I have an ascx control which has the CascadingDropDown controls (I know this is pretty crazy and is not the ideal but world is not ideal) so I tried to get the SelectedValue of the DropDownList and de CascadingDropDown but it always return "" or an empty string and the count of items is 1.

How I could get the correct selected value?


Ivan Dario Ospina C#.NET, T-SQL Developer





Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>