I've a control that sits in the .aspx page, but the dynamic code is in separate project in Page.xaml.cs.
On the same page as the control, I have:
<asp:DropDownList ID="DropDownAppServer" runat="server" >
In the Page.xaml.cs I've tried doing this:
HtmlElement element = doc.GetElementById( "DropDownAppServer" );
element.SetAttribute( "option", "blah" );
Didn't work. Although it works with:
<input type="text" id="Text1" disabled="disabled" value="My Initial Value" />