are you required to dispose the control?

Last post 10-11-2009, 11:37 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  10-09-2009, 2:41 PM 56284

    are you required to dispose the control?

     say you have:
    <CuteWebUI:UploadPersistedFile ID="Uploader1" runat="server"  />

    and in the code behind you do:
    Uploader1.CopyTo(uploadingFile.filePath);

    are you then required to do:
    Uploader1.Dispose();



    ???????????????????
  •  10-11-2009, 11:37 PM 56328 in reply to 56284

    Re: are you required to dispose the control?

    Hi,
     
    The uploader will dispose when the page Unload, you do not need to dispose it.
     
    Disposing the uploader will dispose the UploadProvider,
     
    It design for DataBase provider etc, the buildin provider do not need to be disposed.
     
    Regards,
    Terry
View as RSS news feed in XML