M
Marko Vuksanovic
I am trying to get the FilePath element of the FileUpload control to a JS
variable. As I am pretty new to JS I have no idea how to achieve that. I
would kindly ask someone to point me to the right direction,... such as
where I should start with JS and possibly the solution to my concrete
problem....
This is the relevant code:
<script type="text/javascript">
var fileUploadPath;
function UploadButtonClick()
{
//get the FilePath property to the fileUploadPath variable
alert(fileUploadPath);
}
</script>
<asp:FileUpload id="FileUpload" runat="server"> </asp:FileUpload>
<asp:Button id="Upload" Text="Upload file" runat="server"
OnClientClick="UploadButtonClick()"> </asp:Button>
Thanks in advance,
M.V.
variable. As I am pretty new to JS I have no idea how to achieve that. I
would kindly ask someone to point me to the right direction,... such as
where I should start with JS and possibly the solution to my concrete
problem....
This is the relevant code:
<script type="text/javascript">
var fileUploadPath;
function UploadButtonClick()
{
//get the FilePath property to the fileUploadPath variable
alert(fileUploadPath);
}
</script>
<asp:FileUpload id="FileUpload" runat="server"> </asp:FileUpload>
<asp:Button id="Upload" Text="Upload file" runat="server"
OnClientClick="UploadButtonClick()"> </asp:Button>
Thanks in advance,
M.V.