Dear all,
I got a gridview with item templates autogenerating columns false.the first item template is an upload button.when i click on the button, some action on corresponding table in the second column should be taken.i got some 20 rows in that gridview.If clicking on the button only corresponding table should be updated.how to identify the button ID and where to write the code for button click?..
Thank you ,
A M R
Siva PrakasPosted Feb 17, 2008, 11:22 PM
in .aspx
Give CommandType="Select" snd OnClick="upload_Click" to Upload Butoon
in the codewindow
on GrigView SelectedIndexChanged event
String Val =GridView1..SelectedValue.ToString();
protected void upload_click(object sender, EventArgs e){
//coding
}