save new file path of a moved file

3 posts, 1 answers
  1. Terri-Lynn
    Terri-Lynn avatar
    45 posts
    Member since:
    Dec 2010

    Posted 03 Nov 2011 Link to this post

    Hi all:

    I need to log when a user moves a file.  Right now, then a user updates a file, I save a reference to it (filepath location), who uploaded it, and when.  If this file gets moved to another location, I need to update this records to now specify where it's been moved to.  I thought I could use the e.Command = "MovedFile", but since it's called BEFORE the file is moved, it's still referencing the current location. Anyone know of a way for me to achieve this?
  2. Answer
    Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 04 Nov 2011 Link to this post

    Hi Terri-Lynn,

    The event arguments of the ItemCommand server-side event do contain information for the new and old location of the moved file. The NewPath property contains the new path and the Path property is the original file location.

    Best wishes,
    Dobromir
    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. Terri-Lynn
    Terri-Lynn avatar
    45 posts
    Member since:
    Dec 2010

    Posted 04 Nov 2011 Link to this post

    Perfect.  And simple... and easy!  :)  Today's a good day! 
Back to Top