Hello
I've to display case id in column 0. I have made this field as buuttonfield link type. So when bind data text in each row should be case id. Since it is link button, onclick it should open new window and selected case id should be request parameter. I'm using onclient click method of linkbutton control. but When I click case id url, same page reloads. How to set navigation url for link button?
1 gvEmTickets.DataSource = lEmTicket
2 gvEmTickets.DataBind()
3
4 Dim iCountTicket As Int16 = lEmTicket.Count
5 Dim iRow As Int16 = gvEmTickets.Rows.Count()
6
7
8 Dim i As Int16 = 0
9
10 While i < iRow
11
12 If i < 10 And i < iRow Then
13 Dim row As GridViewRow = gvEmTickets.Rows(i)
14 Dim hl As LinkButton = row.Cells(0).Controls(0)
15 hl.OnClientClick = ("<a href='javascript:void(0);'" & _
16 " onclick='window.open(""frmEmDetail.aspx?ticketId=" & Server.HtmlDecode(row.Cells(0).Text).ToString & _
17 "&option=All"", ""null"", ""height=1000,width=1100,status=yes,toolbar=no,menubar=no,location=no,fullscreen =no,scrollbars=1"")'></a>")
18 i = i + 1
19 End If
20 End While