Question : Create redirect link in code behind

I am trying to create a redirect link in my code behind.  If the data row I am pulling end up blank I want it to put in the field "NOT SET'  (DONE)  if there is something I want it to list out what is in data rows (DONE).  The next portion is I want to turn it into a redirect link so that if someone click on the words above it redirect them to another page to set some further values, below is my code but I cant seem to get it correct.

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
sql = "Select strBenchmarkName from tblBenchmarkname where intSid = " & myDataTable.Rows(0)(1) & " order by strBenchmarkname"

                BmTable = New DataTable
                BmTable = getData(sql)

                If BmTable.Rows.Count = 0 Then
                    bmName = ""
                Else
                    For Each bmrow In BmTable.Rows
                        bmName += bmrow(0) & ", "
                    Next

                    bmName = Left(bmName, Len(bmName) - 2)
                End If

                If isAdmin = True Then
                    If bmName = "" Then
                        bmName = "(not set)"
                    End If

                    lblBMName.Text = "<div style='display:inline;cursor:hand;' onclick='window.location.replace('EditMetric.aspx?sid=' + myDataTable.Rows(0)(1)&kpname=myDataTable.Rows(0)(1)); & bmName & "</div>"
                Else
                     lblBMName.Text = "<div style='display:inline;cursor:hand;' onclick='window.location.replace('EditMetric.aspx?sid=' + myDataTable.Rows(0)(1)&kpname=myDataTable.Rows(0)(1)); & bmName & "</div>"
                End If

Answer : Create redirect link in code behind

Take out the javascript onclick and make it an "HREF=" then within the a tag set the target='_new' and it will open as a new window.

<a HREF="EditMetric.aspx?sid=" & myDataTable.Rows(0)(1) & "&kpName=" & myDataTable.Rows(0)(0) & """, """", ""fullscreen=yes scrollbars=yes"");' " _
                         & "style='text-decoration:underline;cursor:hand;' target='_new'>
Random Solutions  
 
programming4us programming4us