Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > creating interface dynamicly

Reply
Thread Tools

creating interface dynamicly

 
 
Vasko Buraliev
Guest
Posts: n/a
 
      09-22-2003
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


 
Reply With Quote
 
 
 
 
Ravikanth[MVP]
Guest
Posts: n/a
 
      09-22-2003
Hi

Put runat=server and id attribute attirbute for tr tag in
table control.

in cs you can try this
tempRow.Cells.Add(tempCell);

HTH
Ravikanth


>-----Original Message-----
>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
>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OnItemDataBound - creating dynamicly radiobuttonlist robk ASP .Net Datagrid Control 0 07-20-2005 12:47 PM
Creating a form dynamicly DaWoE ASP .Net 2 09-01-2004 10:39 AM
Dynamicly change ValueToCompare on a CompareValidator Henke ASP .Net 0 02-26-2004 02:08 PM
CSS doesn't work on dynamicly added user controls Henke ASP .Net 5 12-30-2003 04:58 PM
Problem with Eventhandlers dynamicly created MobileControls Kristof Pauwels ASP .Net 1 07-27-2003 07:29 AM



Advertisments