我有一个checkboxlist.When我检查一个值将出现在表中。现在我想要的值和每个值我检查,使其链接。这是我的代码获取在检查的值:使项目从复选框列表链接到其他页面
foreach (ListItem item in check.Items)
{
if (item.Selected)
{
TableRow row = new TableRow();
TableCell celula = new TableCell();
celula.Style.Add("width", "200px");
celula.Style.Add("background-color", "red");
//celula.RowSpan = 2;
celula.Text = item.Value.ToString();
row.Cells.Add(celula);
this.tabel.Rows.Add(row);
现在我想的item.value,使其使用C#在asp.net应用程序中的link..I'm
将超链接控件添加到'celula.Controls'集合中,而不是设置TableCell的Text属性。 – 2012-04-10 07:12:10
我该怎么做? – Bibu 2012-04-10 07:15:02
你想要在checkboxlist中点击元素时打开webbrowser?或者是其他东西? – Likurg 2012-04-10 07:25:46