V
Vasko Buraliev
Hey folks,
I'm trying to generate create interface that should be consist static part
and dynamic part.
For example, static part I will create with editing ASPX file and designing
web interface like this:
<td align="center" width="100%" height="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%"
height="100%" id="hMenuTable" runat="server">
<tr id="hMenuRow" runat="server">
<td><IMG SRC="images/design/UIDesign_r3_c3.gif" width="13"
height="29"></td>
<td background="images/design/UIDesign_r3_c3.gif"
width="100%">
<IMG SRC="images/design/px.gif" width="100"
height="1"><br>
</td>
</tr>
</table>
</td>
Part of the interface that I wanna to create dynamicly should be content few
cells insite the row shown few rows ip in the part of HTML code.
I succed to create combination of cells and rows that I need. One of that
rows have cell that I wanna to fill with complex content like another table
with a lot of controls. I create this row and cell like this:
HtmlTableRow aRow = new HtmlTableRow();
HtmlTableCell aCell = new HtmlTableCell();
aCell.BgColor = "#FFFFFF";
aCell.Height = "100%";
aCell.ID = "contentField";
aCell.ColSpan = 3*aElement.ChildNodes.Count + 2;
aCell.Align = "center";
aCell.VAlign = "top";
aCell.InnerHtml = ""
aRow.Cells.Add(aCell);
hMenuTable.Rows.Add(aRow);
It's not a problem for me to put string which will be HTML code inside
aCell.InnerHtml = "<span>something</span>"
but...
How can I include let's say calendar control in this cell!? (
<ASP:Calendar> )
I can not simply write
aCell.InnerHtml = "<asp:Calendar id="Calendar1"
runat="server"></asp:Calendar>" cause it will be represented as a text.
Would you help me about this?
regards
Vasil Buraliev
I'm trying to generate create interface that should be consist static part
and dynamic part.
For example, static part I will create with editing ASPX file and designing
web interface like this:
<td align="center" width="100%" height="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%"
height="100%" id="hMenuTable" runat="server">
<tr id="hMenuRow" runat="server">
<td><IMG SRC="images/design/UIDesign_r3_c3.gif" width="13"
height="29"></td>
<td background="images/design/UIDesign_r3_c3.gif"
width="100%">
<IMG SRC="images/design/px.gif" width="100"
height="1"><br>
</td>
</tr>
</table>
</td>
Part of the interface that I wanna to create dynamicly should be content few
cells insite the row shown few rows ip in the part of HTML code.
I succed to create combination of cells and rows that I need. One of that
rows have cell that I wanna to fill with complex content like another table
with a lot of controls. I create this row and cell like this:
HtmlTableRow aRow = new HtmlTableRow();
HtmlTableCell aCell = new HtmlTableCell();
aCell.BgColor = "#FFFFFF";
aCell.Height = "100%";
aCell.ID = "contentField";
aCell.ColSpan = 3*aElement.ChildNodes.Count + 2;
aCell.Align = "center";
aCell.VAlign = "top";
aCell.InnerHtml = ""
aRow.Cells.Add(aCell);
hMenuTable.Rows.Add(aRow);
It's not a problem for me to put string which will be HTML code inside
aCell.InnerHtml = "<span>something</span>"
but...
How can I include let's say calendar control in this cell!? (
<ASP:Calendar> )
I can not simply write
aCell.InnerHtml = "<asp:Calendar id="Calendar1"
runat="server"></asp:Calendar>" cause it will be represented as a text.
Would you help me about this?
regards
Vasil Buraliev