Pls Help Me Out Datagrid Problem
-
I have a a datagrid which contains details of users and can upload the image using datagrid template column. I mean i have a file field(runat server) in the template column of datagrid now i want to access the file path that is being uploaded i cannot use the typecasting and use the findcontrol method as one can use to do with the textbox, as it is a not asp control(file control) so can any one pls tell me how can i get the path of file from the file field which is in the template column of the datagrid Patel Neelesh A
-
I have a a datagrid which contains details of users and can upload the image using datagrid template column. I mean i have a file field(runat server) in the template column of datagrid now i want to access the file path that is being uploaded i cannot use the typecasting and use the findcontrol method as one can use to do with the textbox, as it is a not asp control(file control) so can any one pls tell me how can i get the path of file from the file field which is in the template column of the datagrid Patel Neelesh A
The file control (
<input type="file" id="myFile" runat="server" >
) has a server control equivalent, it's called theSystem.Web.UI.HtmlControls.HtmlInputFile
. You can read more about at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuihtmlcontrolshtmlinputfileclasstopic.asp[^] ~Javier Lozano