I wish to send an emailto the administrator everytime a file is uploaded but can't seems to figure out how to get the Uploaded event.
Using Protected Sub FileVistaControl1_Uploaded(ByVal sender As Object, ByVal e As GleamTech.Web.Controls.FileVistaUploadedEventArgs) does not seem to work.
Am I missing something?
Jon
3/14/2008 3:33 PM
You first need to subscribe to the event, e.g in Page_Load of your host page:
if (FileVistaControl.Uploaded == null)
FileVistaControl.Uploaded += new EventHandler<FileVistaUploaded EventArgs>(FileVistaControl_Uploaded);
Cem Alacayir
3/17/2008 8:06 AM
still not working for me i added this to the page load and it's still not seeing the event
Aous Abbas
3/5/2009 11:30 AM
Please ignore the above code and use the below code instead:
if (Application("areHandlersAdded") == null) {
//attach your events within this if-block
FileVistaControl.Uploaded += FileVistaControl_Uploaded;
Application("areHandlersAdded") = true;
}
Cem Alacayir
3/11/2009 5:15 AM