At the moment I only have this idea, when you select a column, the Id
is placed in a Label
and at the same time it is directed to the other page, dragging the Label3
( id_cr
), and putting it in another Label
on the new page ( Imp.aspx
) to fill a form automatically, here the table that appears in Home.aspx
:
Here the data should appear ( Imp.aspx
) or the data of Id
is being brought (from the table that is in ( Home.aspx
), and in PageLoad
(from Imp.aspx.cs
) load the table of the database, the data should appear here:
protected void GridView2_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow row = GridView2.SelectedRow;
Label3.Text = row.Cells[1].Text;
Response.Redirect("Imp.aspx");
}
How do I relate the id_cr
from page to page? What recommendations would you use? I accept opinions with JavaScript, only that I am more familiar with C #, Thanks!