Hi everyone,
I have a simple site that I am working on, and have a page which uses an asp.net MasterPage and a RadAjaxPanel to hold the main content of the page. Within this are several regular asp.Panels.
The idea is to have a single sign-up page, showing different asp.Panel instances to indicate the step in the process. This works fine.
Near the end is the facility to upload an image or video, and I am using RadUpload (with the RadProgressManager). Again, this works fine, BUT here is where my newbie-to-Telerik status lets me down.
I'm not totally clear on how I know when a file has finished uploading. I expected there to be some kind of event to which I could place some code, but other than using something like:
...I am not sure what else to do. I think I must be misunderstanding something here. The other bit of code I am using is an asp.Button to trigger the upload (button has been explicitly set to PostBack):
I'm not even clear why I this thread should sleep for 3 seconds - can anyone explain? Incidentally, I copied this from an example in the online help.
OK, thanks for any help!
I have a simple site that I am working on, and have a page which uses an asp.net MasterPage and a RadAjaxPanel to hold the main content of the page. Within this are several regular asp.Panels.
The idea is to have a single sign-up page, showing different asp.Panel instances to indicate the step in the process. This works fine.
Near the end is the facility to upload an image or video, and I am using RadUpload (with the RadProgressManager). Again, this works fine, BUT here is where my newbie-to-Telerik status lets me down.
I'm not totally clear on how I know when a file has finished uploading. I expected there to be some kind of event to which I could place some code, but other than using something like:
if
(Page.IsPostBack)
{
// perhaps we've uploaded a file?
if
(RadUpload1.UploadedFiles.Count>0)
{
panSampleTestUploadSelect.Visible =
false
;
panSampleTestUploadComplete.Visible =
true
;
}
}
...I am not sure what else to do. I think I must be misunderstanding something here. The other bit of code I am using is an asp.Button to trigger the upload (button has been explicitly set to PostBack):
protected
void
CmdUpload_Click(
object
sender, EventArgs e)
{
if
(RadUpload1.UploadedFiles.Count > 0)
{
System.Threading.Thread.Sleep(3000);
}
}
I'm not even clear why I this thread should sleep for 3 seconds - can anyone explain? Incidentally, I copied this from an example in the online help.
OK, thanks for any help!