1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
public void copyButton(object sender, EventArgs e) { for (int i=0; i < this.GridView1.Rows.Count; i++) { CheckBox cb = (CheckBox)this.GridView1.Rows[i].FindControl("CheckBox1"); if (cb.Checked) { DataKey keyForThisRow = GridView1.DataKeys[i]; string filename = (string)keyForThisRow[0]; } } }
1: 2: 3:
File.Copy("SourceFilePathAndNameWithExtension", "TargetFilePathAndNameWithExtension") 'With forced overwrite File.Copy("SourceFilePathAndNameWithExtension", "TargetFilePathAndNameWithExtension", True)