• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 597
  • Last Modified:

Muliple Select Buttons in Gridview row

Hi

I have a gridview with a select button in it.

When the button is selected it sets the value of one of the cells in a session which all works fine.

What I want to do is add another select button which sets a different cell value to a session when clicked.

The problem is I already have 1  selectedindexchange event.

I'd like another one that sets a value in a session from a different row cell. Cant work it out


Protected Sub GridView2_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles GridView2.SelectedIndexChanged
        Dim row As GridViewRow = GridView2.SelectedRow


        Session("CanvassID") = row.Cells(0).Text
        Response.Redirect("ViewNoteDetail.aspx")

    End Sub

Open in new window

0
Ed
Asked:
Ed
  • 2
1 Solution
 
CodeCruiserCommented:
Why not set both values in above event?
0
 
EdAuthor Commented:
CodeCruiser

Thanks but the reason for not setting both values in the above event is that I want the second button to set a value and then redirect to a different page.
0
 
CodeCruiserCommented:
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now