Hi,
I have a GridView on my webpage and i have a dropdownlist and textbox in my gridview. The user select the value from dropdownlist and enter the value in textbox. I want to fetch the value on button click from the gridview and perform opertions on it. then, i want sent the value on the other page.
How this can be done??
plz reply..

rakesh chaudhariPosted Jun 2, 2012, 2:45 AM
firstly find your control from gridview as like this
TextBox txtFirstName2 = (TextBox)Gridview.Rows[0].FindControl("txtFirstName2");
Dropdownlist Dropdownlist1 = (Dropdownlist)Gridview.Rows[0].FindControl("Dropdownlist1");
if you have loop then after "rows[0]" you can replace loop variable value as like ex "rows[i]"
and after pass the value where u want
string rl = txtFirstName2.Text;
string rl1 = Dropdownlist1 ..SelectedValue.ToString()
Have a happy Coading
If You have problem with this code then just send me u r proper Requirement i will try for your Desire Output