|
Follow these steps to access ASPX controls in code-behind classes generated by Iron Speed Designer.
Step 1: Create an application using a table, such as the Orders table in Northwind.
Step 2: Drag and drop an ASPX textbox on the ShowOrdersTablePage from the Iron Speed Designer tool box. In this example, the ASPX text box is not within the Table control. Iron Speed Designer adds this HTML to the HTML layout page.
|
<asp:textbox id="myTextbox" runat="server" /></td>
|
Step 3: For .NET Framework 1.1, add this code in the "Page" class of ShowOrdersTablePage.aspx.cs
C#:
|
Public System.Web.UI.WebControls.TextBox myTextbox;
|
Visual Basic .NET:
|
Public myTextbox As System.Web.UI.WebControls.TextBox
|
No extra code is required for .NET Framework 2.0 applications.
Step 4: Handle the PreRender event for the ShowOrdersTablePage and set the text of the ASPX
text box. This is described in detail in the following sections.
|