i m new in asp .net...
i m making a form in which i am using the textbox, radiobutton list,dropdownlist,button and grid view....
when i click on the button then all the data which is in textbox,radiobuttonlist and dropdownlist are entered into the database and show into the gridview....
in gridview i take a select or delete button.
now i want that when i click on the select button of grid view then the selected row data can populate on other form i textboxes....
plzzzzzzzzzzzz....
help me........
Madhu KPosted Nov 25, 2010, 8:45 AM
Rahul GoyalPosted Nov 26, 2010, 8:06 AM
Madhu KPosted Nov 26, 2010, 7:50 AM
Rahul GoyalPosted Nov 26, 2010, 7:29 AM
Madhu KPosted Nov 26, 2010, 7:18 AM
Rahul GoyalPosted Nov 26, 2010, 6:24 AM
Madhu KPosted Nov 26, 2010, 5:30 AM
Rahul GoyalPosted Nov 26, 2010, 5:03 AM
Madhu KPosted Nov 26, 2010, 4:54 AM
Rahul GoyalPosted Nov 26, 2010, 4:38 AM
Madhu KPosted Nov 26, 2010, 4:30 AM
BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4"
DataKeyNames="Emp_code" DataSourceID="SqlDataSource1" Height="154px"
Width="670px" onrowcommand="gv_RowCommand">
Rahul GoyalPosted Nov 26, 2010, 3:54 AM
Madhu KPosted Nov 26, 2010, 3:43 AM
Rahul GoyalPosted Nov 26, 2010, 3:20 AM
Madhu KPosted Nov 26, 2010, 2:22 AM
txtempcode.Text=dr["Emp_code"].ToString();
Rahul GoyalPosted Nov 26, 2010, 1:53 AM
Madhu KPosted Nov 25, 2010, 11:36 PM
Rahul GoyalPosted Nov 25, 2010, 11:29 PM
Rahul GoyalPosted Nov 25, 2010, 6:57 AM
Madhu KPosted Nov 24, 2010, 4:42 AM
You can use Button instead of link button.
Rahul GoyalPosted Nov 24, 2010, 4:20 AM
Madhu KPosted Nov 24, 2010, 2:40 AM
In default2.aspx pageload
int id =Convert.ToInt32(Request.QueryString["id"]);
use datareader to get the values of the row based on id.
Rahul GoyalPosted Nov 24, 2010, 2:08 AM
Madhu KPosted Nov 24, 2010, 1:59 AM
On Button click event Insert the textbox text, radiobuttonlist and dropdownlist values into db.
get the inserted values from db and bind it to gridview.
Use the button in item template of gridview and redirect to new page with the ID.
using the ID get the values from db and fill the text boxes.