select button in gridview to populate textbox controls in new form (using linq to sql)
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I need to stick with this format. No binding in the default.aspx source view page. I want to select a row and have that row populate the corresponding textboxes in default2.aspx. In other words if row id 213-46-8915 is selected the last name Green and first name Marjorie will show up in default2.aspx page textboxes. I got those values from the pubs database. Default.aspx CommandName="Select" Text="Select"> code behind: protected void Page_Load(object sender, EventArgs e) { DataClassesDataContext db = new DataClassesDataContext(); var products = from p in db.authors select p; GridView1.DataSource = products; GridView1.DataBind(); } Default2.aspx au_lname
au_fname