C
Craig
I'm adding several controls to a cell, but want them all to have a <BR>
between them. What's the easiest way?
I'm doing something like this:
HyperLink link = new Hyperlink();
//I setup the link target, navigateurl, etc here
Label lblDescription = new Label();
//I setup the lblDescription.Text here
Label lblName = new Label();
//I setup the lblName.Text here
TableCell cell = new TableCell();
cell.Controls.Add(link);
cell.Controls.Add(lblDescription);
cell.Controls.Add(lblName);
Now all the controls are just run together. Is there a property on the
controls to set to include <BR> after them? doing something like cell.Text
+= "<BR>" between them doesn't work, it erases to content of the cell...
Thanks in advance for the help,
Craig
between them. What's the easiest way?
I'm doing something like this:
HyperLink link = new Hyperlink();
//I setup the link target, navigateurl, etc here
Label lblDescription = new Label();
//I setup the lblDescription.Text here
Label lblName = new Label();
//I setup the lblName.Text here
TableCell cell = new TableCell();
cell.Controls.Add(link);
cell.Controls.Add(lblDescription);
cell.Controls.Add(lblName);
Now all the controls are just run together. Is there a property on the
controls to set to include <BR> after them? doing something like cell.Text
+= "<BR>" between them doesn't work, it erases to content of the cell...
Thanks in advance for the help,
Craig