This is a migrated thread and some comments may be shown as answers.

how to add empty row PlaceHolder

1 Answer 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 20 Sep 2012, 07:17 AM

if (newgene == "0")
       {
           MainPlaceHolder.Controls.Add(holder);
       }
       else
       {
           MainPlaceHolder.Controls.Add(new LiteralControl("<br>"));
       }
See The Image ,
i want to space between the dropdown .
Thanks Advance,
Mohamed.

1 Answer, 1 is accepted

Sort by
0
mohamed
Top achievements
Rank 1
answered on 20 Sep 2012, 07:41 AM
Spacing problem is corrected
MainPlaceHolder.Controls.Add(new LiteralControl("<br><br><br><br>"));

PlaceHolder holder = new PlaceHolder();
 
CheckBox autoLabel = new CheckBox();
autoLabel.id= id.ToString() + ": ";
holder.Controls.Add(autoLabel);
 
RadComboBox autoTextBox = new RadComboBox();
autoTextBox.ID = "TextBox" + id.ToString();
holder.Controls.Add(autoTextBox);
 
mainPlaceHolder.Controls.Add(holder);
How i get the both Checkbox id , RadComboBox id ,
In the mainPlaceHolder

Regards,
Mohamed.
Tags
General Discussions
Asked by
mohamed
Top achievements
Rank 1
Answers by
mohamed
Top achievements
Rank 1
Share this question
or