get renamed filename after fileexists fires

Thread is closed for posting
2 posts, 0 answers
  1. vinamra
    vinamra avatar
    13 posts
    Member since:
    Oct 2012

    Posted 02 Nov 2008 Link to this post

    hi i am using radcontrols ajax 2008 Q2
    i want to know a v. simple question

    i am using radupload inside radgrid
    now when i insert new row or update it and then sets upload file it uploads fine
    and if fileexits then it renames it and then saves it

    now i want to know that how to access that renamed filename in RadGrid1_UpdateCommand or RadGrid1_InsertCommand
    if i use objRadUploadScreenShot.UploadedFiles[0].GetName() it gives the original file name not the renamed file name.

    plz help me in this simple question.
  2. Erjan Gavalji
    Erjan Gavalji avatar
    1455 posts

    Posted 03 Nov 2008 Link to this post

    Hi Vinamra,

    You could just add a page-wide string variable, which will get assigned the new name of the file. You should use this variable later on.

    Erjan Gavalji
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top