I have Created a Asp:FileUpload control in aspx page, I try to access the Control from Javascript using this code,
in Aspx page
<asp:FileUpload ID="fileUp" runat="server" />
in Javascript
var vbsfileupload = $find("<%= fileUp.ClientID %>");
but the vbsfileupload is always null value.
Please help me to resolve this issue.
I don’t believe
$findis a function at all. Try selecting the element usinggetElementById:Assuming you are running this part of the script after the element has loaded,
vbsfileuploadshould now hold the desired element.