Dynamically I create at the Page_Load stage in the table on the page the usual controls: texbox, combobox, checkbox - everything is normally created, displayed, handlers are processed. I try to create a calendar - it does not issue errors, but the control does not appear in the DOM either.
Dim newDtEl As New Calendar newDtEl.ID = spElement.getAttribute("id") newDtEl.AutoPostBack = True spCell.Controls.Add(newDtEl) Where am I wrong? What could be the snag? How to make it appear? The table is declared in aspx:
<table width="50%" align="center" id="ElTable" runat="server"> <tbody> <tr> <td>Date</td> <td><asp:calendar ID="dasd" runat="server"></asp:calendar></td> </tr> <tr> <td>UserDate</td> <td><uc1:UserControlWithCalendar ID="Calendar1" runat="server"></uc1:UserControlWithCalendar></td> </tr> </tbody> </table> This is how these controls are displayed. I add a row and a cell dynamically like this:
Dim spRow As New HtmlTableRow, spCell As New HtmlTableCell spRow.Cells.Add(spCell) ElTable.Rows.Add(spRow) .NET Framework 2.0, VS2005
spRow.Cells.Add(spCell)andElTable.Rows.Add(spRow)? - kmv