There are some questions on the stack about this but none helped me. This is my scenario. I have a drop down box
<asp:DropDownList ID="ddl" runat="server" DataTextField="ValText" DataValueField="ValID" AutoPostBack="true" OnSelectedIndexChanged="ddl_SelectedIndexChanged"></asp:DropDownList>
Requirement:
When the drop down is selected or if the value is changed in the drop down I need a javascript alert asking whether the file selected in the drop down is to be downloaded. If the user clicks yes then the function for file to download should be invoked else nothing should be done. I don't have an Idea how to achieve this. Any suggestions?