Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Upload > Handling postbacks with the Javascript-driven upload functionality
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 Handling postbacks with the Javascript-driven upload functionality

Feed from this thread
  • gunther Intermediate avatar

    Posted on May 11, 2011 (permalink)

    I made this thread here so you can see my markup if necessary:

    http://www.telerik.com/community/forums/aspnet/upload/help-with-getfieldvalue-method-of-the-uploadedfile-class.aspx


    The issue I am encountering is page postbacks resetting the upload form.  I have added a textbox for notes which, thanks to the Telerik admin in the above, now propery gets the text out of the input field.  However, we have a 1,000-character limit on notes.  I am attempting to handle validation of the character length in the codebehind.  I am able to successfully return an error message on the postback, but all the controls -- including the textboxes -- are cleared out.  Is there a way to set this up so that all controls created by Javascript in the OnClientAdded event are stored in the viewstate so that they maintain their values when the page posts back?

    The other more complicated solution would be to ajaxify the save button, have all the logic take place, then ajaxify the ValidationSummary which is located on the master page, but I would rather avoid having to go that complex route if at all possible.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Upload > Handling postbacks with the Javascript-driven upload functionality