RadUrid and .net 4.0 Routing

Thread is closed for posting
4 posts, 0 answers
  1. Top Coder
    Top Coder avatar
    18 posts
    Member since:
    May 2005

    Posted 10 Apr 2012 Link to this post


    I have routes defined for all my pages in .Net. 

    RouteTable.Routes.MapPageRoute("UploadPage", "upload/", "~/upload.aspx")

    Then when I use the upload control it tacks on the RadUrid, which I don't have a route defined for and it causes an error. 

    If I define an additional route.

    Like ,

    RouteTable.Routes.MapPageRoute("UploadPage", "upload/{radurid}", "~/upload.aspx") 

    So it doesn't cause an error, but will it still work correctly, since it's no longer in the request.querystring, but instead pages.routdata.values ?


  2. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 13 Apr 2012 Link to this post

    Hello Henry,

    Unfortunately I wasn't able to reproduce the problem. I created a small sample web site with a route for the default page, but when I upload a file everything works correctly and I didn't receive an error. Could you take a look at the attached web site and see if I missed something. 

    If I did, please modify the sample so that it reproduces the issue (or attache a runnable version of your own project) and open a support ticket, where you can attach the project and send it back to me, so that I can investigate the issue locally.
     
    Regards,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Top Coder
    Top Coder avatar
    18 posts
    Member since:
    May 2005

    Posted 13 Apr 2012 Link to this post

    Bozhidar, 

      Thanks for the example, I believe you can't reproduce the error, because you didn't set up routing properly.. 

    You need to add this to your machine config... 

        <system.webServer>
               <modules runAllManagedModulesForAllRequests="true">
                <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            </modules>
       <system.webServer>

    What I did to get around the issue was removed the radupload, radprogressarea, radprogressareamanager and just replaced it with a radasyncupload. 


  5. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 16 Apr 2012 Link to this post

    Hello Henry,

    Thank you for the feedback.

    The old RadUpload control and ProgressArea had many issues (this one included). That's why instead of trying to fix and work around them, we decided to redesign the whole thing and introduce the RadAsyncUpload control as a replacement. 

    Even though we still work on RadUpload and support it, we strongly recommend using RadAsyncUpload. I'm glad that using it solved the issue. Please feel free to contact us again if something else comes up.
     
    All the best,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top