Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Upload > No Files after PostBack
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered No Files after PostBack

Feed from this thread
  • Przemek avatar

    Posted on Mar 25, 2011 (permalink)

    I've got very hard problem i can't really handle on my own. On our page we have Upload and RadEditor. Upload is used to load images inside the RadEditor. Upload allows to load one image at a time, then user clicks the button for upload and his/her image is loaded on RadEditor.

    Aside from all this, we also have "Save" button. When user clicks it - RadEditor's html content gets saved to database (after saving user should be able to work with upload and radeditor). It of course causes postback. After that click event  - whenever user tries to add another picture with FileUpload, the UploadedFiles.Count equals 0.
    <telerik:RadUpload ID="Up_File" runat="server" /> 
               <asp:Button  ID="btnUpload" runat="server" CausesValidation="False" Text="Upload Image"
                                                OnClick="btnUpload_Click"></asp:Button>
                                        <asp:UpdatePanel UpdateMode="Conditional" Visible="true" runat="server" ID="UploadPanel">
                                            <Triggers>
                                            <asp:PostBackTrigger ControlID="UploadImage" />
                                            </Triggers>    
                                        </asp:UpdatePanel>
                                        <br />
                                        <telerik:RadEditor ID="FormHeaderRadEditor" ToolbarMode="ShowOnFocus" Width="98%" Height="350px" EnableResize="false" ToolsFile="RadEditorMediumTools.xml"
                                            runat="server">  
                                                <Content></Content>
                                                <CssFiles>
                                                    <telerik:EditorCssFile  Value="EditorStyles.css" />
                                                </CssFiles>
                                        </telerik:RadEditor>
      <asp:Button runat="server" ID="btnSave" OnClick="btnSave_Click" Text="Save" />

    What's more awkward if i remove this emply UpdatePanel i can't load any files - when i click btnUpload the file's count is 0.The question is: why can't i upload files after clicking save button? All the save method does is to save RadEditor's content to database.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Upload > No Files after PostBack