jlcruzAME
Member
- Joined
- Oct 18, 2012
- Messages
- 21
- Programming Experience
- 1-3
On a page that I have a gridview, one of the columns is a link for the user to open another page to upload files. Is there a way to grab a value out of the row that is clicked on? One of the columns is an ID number I need to grab when they click on this link, if possible. Here is the code for the column:
I've done some research and have found some things for C# but nothing in VB.
On the on click event I tried something like Me.GridView1.SelectedDataKey(1) but I get an error when it tries to run. It was under this section:
VB.NET:
<ItemTemplate>
<asp:LinkButton ID="LinkButtonUp" runat="server" CausesValidation="False" CommandName="OpenUp" OnClick="LinkButtonUp_Click1" Text="Submit Pictures" ForeColor="#0000CC"></asp:LinkButton>
</ItemTemplate>
I've done some research and have found some things for C# but nothing in VB.
On the on click event I tried something like Me.GridView1.SelectedDataKey(1) but I get an error when it tries to run. It was under this section:
VB.NET:
Protected Sub LinkButtonUp_Click1(ByVal sender As Object, e As System.EventArgs)
Dim picAddress As String
picAddress = "http://localhost:54007/Crews/Pics.aspx?value1=" + woNumber
Process.Start(picAddress)
End Sub
Last edited: