datagrid

  • Thread starter Thread starter ichor
  • Start date Start date
I

ichor

hi i want to have a file field control in my datagrid as a template column
but i dont know how to get the value of the file chosen by the user


private void UploadImage_Click(object sender, System.EventArgs e)

{

for(int i=0; i<this.carsGrid.Items.Count; i++)

{

i want to find the html file field control here and get the value of the
file chosen by the user.

}

}



thanx

Ichor
 
hi

i found a way to find the file field control uploadImage

but,

for(int i=0; i<this.carsGrid.Items.Count; i++)

{

Control ctrl = carsGrid.Items.FindControl("uploadImage");

if (ctrl!=null)

{

i want its value here.

response.write (ctrl.value); //gives me an error becos ctrl doesn have a
property called value which file field does.


}

}





kindly help
 
Back
Top