Thanks Jason. I actually did something very similar and it now works fine.
Dim myControl1 As DropDownList = DirectCast(dvOperator.FindControl("ddTitle"), DropDownList)
Thanks for your help.
After more experimentation these procedures DO find the control when I run them on the PreRender and DataBinding events of the dropdown list, ddTitle, itself. But I dont seem to be able to bind the datasource at this point!
I dont seem to have the option to bind the datasource, I would like to...
Thanks for the reply.
I have removed the datasourceid from the markup as you have suggested. My problem now is that I cannot locate the control "ddTitle" form my codebehind.
I have added these two procedures:
Protected Sub ddTitle_dataBinding(ByVal sender As Object, ByVal e As EventArgs)...
Hello everyone,
I am a complete newbie with ASP and VB.net so please forgive me when I ask something stupid! Sorry this is also a bit long!
I have a detailsview with a nested dropdown list. Here is the markup:
<asp:DetailsView ID="dvOperator" runat="server" Height="50px" Width="307px"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.