I have a radwindow with a radupload control. When i open this window, i supply the targetfolder for the files. I can't however not apply this argument. I have below a part of the aspx page
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head id="Head1" runat="server"> |
| <body onload="ConfigureDialog()" > <form runat="server" id="mainForm" method="post"> |
| <script type="text/javascript"> |
| function ConfigureDialog() { |
| //Get a reference to the radWindow wrapper |
| var oWindow = GetRadWindow(); |
| var oArg = oWindow.Argument; |
| //Use the argument |
| var upload = document.getElementById("RadUpload1"); |
| if (upload != null) |
| upload.TargetFolder = oArg.DestDir; |
| } |
| </script> |
| <asp:ScriptManager ID="ScriptManager1" runat="server" /> |
| <rad:RadProgressManager ID="Radprogressmanager1" runat="server" /> |
| <table style="position: relative;"> |
| <tr> |
| <td id="controlContainer"> |
| <rad:RadUpload ID="RadUpload1" ControlObjectsVisibility="None" runat="server" OnValidatingFile="OnClientFileSelected" OnFileExists="OnFileExists" Skin="Vista" MaxFileInputsCount="5" TargetFolder="\\test" OverwriteExistingFiles="false" Width="285px" /> |
| </td> |
| </tr> |
| </table> |
| </form> |
| </body> |
| </html> |
I can see that the oArg.DestDir contains the value needed when the ConfigureDialog is called.
How can i solve this?
Thanks!