I'm running into a problem using NetAdvantage 2010 V1 and Visual Basic in Visual Studio 2010 that wasn't an issue in VS 2008. Assume a simple WDW created by dragging and dropping from the toolbox that ends up looking like this...
<ig:WebDialogWindow ID="dlgTestDialog" runat="server" Height="300px" Width="400px"> <ContentPane> <Template> <asp:Label ID="lblMsg" runat="server" Text="Message here"> </asp:Label> <br /> <asp:Button ID="btnOK" runat="server" Text="OK" /> </Template> </ContentPane> <Header CaptionText="Sample"> </Header></ig:WebDialogWindow>
In the VS 2008 code behind file the dialog window. the btnOK control, and the lblMsg control were visible and selectable as a component of the page. There was no problem doing something like this...
Protected Sub btnOK_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnOK.Click Me.dlgTestDialog.Header.CaptionText = "I've been clicked!" Me.lblMsg.Text = "Click me again."End Sub
In VS 2010 Release Candidate, neither the btnOK control nor the lblMsg control are visible as a component of the page. If I create the btnOK_Click event by double-clicking on the button in Design View on the .aspx page, the event on the code behind page looks okay, but the btnOK following the Handles keyword has a squiggle underline and the error message, "Handles clause requires a WithEvents variable defined in the containing type or one of its base types."
I can fix the button by adding an OnClick declaration for it on the aspx page. But I don't know how to get access to Text property of the label control. It seems like in the 2010 environment the WDW container masks the controls it contains.