to change name of image in project :

Thread is closed for posting
1 posts, 0 answers
  1. nagarjun
    nagarjun avatar
    21 posts
    Member since:
    Jan 2009

    Posted 04 Feb 2009 Link to this post



       1) By assigning image to 'targetfolder' property in RadUpload, images are well stored in prescribed folder. Nowi need to change this current uploaded file name.


       2) And i have done above task inother way as :

          protected voidRadGrid1_UpdateCommand(object source, GridCommandEventArgs e)


           RadUploadcurrentUpload = ((RadUpload)e.Item.FindControl("RadUpload1"));

           RadUploadContext uploadContext = RadUploadContext.Current;

            UploadedFileFile = uploadContext.UploadedFiles[currentUpload.UniqueID];

            if (File !=null)


               File.SaveAs(Server.MapPath("~/Icons" + File.GetName()));



    ---- here in uploadcontent value is null ..and getting an error as Object reference not set to an instance of anobject.



    Nagarjun S.

Back to Top