microsoft ajax registered - to fix microsoft ajax update panel post back

<dnn:DnnScriptBlock runat="server">     <script type="text/javascript">     (function($) {         var initDnnFileUploader = function() {             var settings = {                 fileFilter: '<%= FileFilter %>',                 required: <%= Required? "true":"false" %>,                 foldersComboId: '<%= FoldersComboBox.ClientID %>',                 filesComboId: '<%= FilesComboBox.ClientID %>',                 fileUploadId: '<%=FileUploadControl.ClientID%>',                 folder: '<%= FolderPath %>',                 selectedFolderId: <%=FoldersComboBox.SelectedFolder != null ? FoldersComboBox.SelectedFolder.FolderID : -1 %>,                 progressBarId: '<%= dnnFileUploadProgressBar.ClientID %>',                 dropZoneId: '<%= dnnFileUploadDropZone.ClientID %>'             };             $('#<%= dnnFileUploadScope.ClientID %>').dnnFileUpload(settings);         };         $(initDnnFileUploader);

        // microsoft ajax registered - to fix microsoft ajax update panel post back         if(typeof Sys != 'undefined')             Sys.WebForms.PageRequestManager.getInstance().add_endRequest(initDnnFileUploader);

    })(jQuery); </script> </dnn:DnnScriptBlock>

posted @ 2015-03-28 08:47  王鹏飛  阅读(154)  评论(0编辑  收藏  举报