datagrid
label
Imagebutton
Private Sub Imagebutton1_Click(ByVal sender As System.Object, _ ByVal e As System.Web.UI.ImageClickEventArgs) _ Handles Imagebutton1.Click Dim Row As GridViewRow = TryCast((CType(sender, ImageButton)) _ .Parent.Parent, GridViewRow) Dim y As Integer = 0 Session("Value1") = (CType(DataGrid5.Items(y) _ .FindControl("INVOICE_B41"), Label)).Text 'Session("Value2") = (CType(DataGrid5.Items(y) _ .FindControl("ValueOfColumns2"), Label)).Text Response.Redirect("letter.aspx") End Sub
Nothing
Parent.Parent
DataGrid5
DataGrid5.Items(y)
DataGrid5.Items(y).FindControl(...)
private function send_to_form( values as object/what you want ) dim Form2.the_var = values Form2.load/show() end function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)