F
Fredrik Rodin
All,
I have a sub that generates a number of link buttons depending on the number
of records returned by the SQL.
Do While dReader.Read
Dim tr As New TableRow
Dim td As New TableCell
Dim lnkbtn_grp1 As New LinkButton
lnkbtn_grp1.Text = CType(dReader("GROUP_NAME_1"), String)
td.Controls.Add(lnkbtn_grp1)
tr.Cells.Add(td)
Table1.Rows.Add(tr)
Loop
This create a table with a <tr> for each group name found in the DB. Now,
when I click on the button I want to fetch the value of that button. Please
note, I would like to have a different value than the text.
I've been on Google but can't really find any matching code.
Anybody can helP???
Thanks in advance,
Fredrik
I have a sub that generates a number of link buttons depending on the number
of records returned by the SQL.
Do While dReader.Read
Dim tr As New TableRow
Dim td As New TableCell
Dim lnkbtn_grp1 As New LinkButton
lnkbtn_grp1.Text = CType(dReader("GROUP_NAME_1"), String)
td.Controls.Add(lnkbtn_grp1)
tr.Cells.Add(td)
Table1.Rows.Add(tr)
Loop
This create a table with a <tr> for each group name found in the DB. Now,
when I click on the button I want to fetch the value of that button. Please
note, I would like to have a different value than the text.
I've been on Google but can't really find any matching code.
Anybody can helP???
Thanks in advance,
Fredrik