Author: Miczka | Posted on: 8/25/2009 1:25:29 AM | Views : 255

Hi all,


I'm new here, beginner in asp/C#.
I'm starting this new thread to get help on a rather simple issue :
I'm creating a checkboxlist dynamically and i put it into a table (1 checkboxlist/line)
When displayed in a browser, datas set in DataValue Field are visible next to each checkbox (as if those datas were entered as DataTextField).
I'd like to avoid that and display nothing next to the checkboxes.


Thanx in advance for your help, here's the code :
(...)

for (int i = 0; i < datb2.Tables[0].Rows.Count; i++)

{

// création rows et cellules

TableRow row = new TableRow();

TableCell cell = new TableCell();

TableCell cell2 = new TableCell();

cell.Text = "<span class= ...

Go to the complete details ...