R
richard.markiewicz
Hi Guys
Thanks in advance for reading this. I'm very new to c# development.
In my webforms application (standard .aspx page), I have added an HTML
"File Field" control. This seems to do exactly what I need (let user
browse for a document on their local machine for upload).
However, I can't attach an event handler to it?
What I would like to do is, once a user has browsed for a document,
take the file path (last index of "/" ?) and write it to a text box.
This will give the document name and file extension.
So the user clicks "Browse" and picks a document, say "C:\documents and
settings\word document.doc".
Then in my text box I get "word document.doc".
If the user browses again, I would like the text box to update.
Can anyone help me get going with this?
Many thanks again,
Richard
Thanks in advance for reading this. I'm very new to c# development.
In my webforms application (standard .aspx page), I have added an HTML
"File Field" control. This seems to do exactly what I need (let user
browse for a document on their local machine for upload).
However, I can't attach an event handler to it?
What I would like to do is, once a user has browsed for a document,
take the file path (last index of "/" ?) and write it to a text box.
This will give the document name and file extension.
So the user clicks "Browse" and picks a document, say "C:\documents and
settings\word document.doc".
Then in my text box I get "word document.doc".
If the user browses again, I would like the text box to update.
Can anyone help me get going with this?
Many thanks again,
Richard