Edit this page

Redirect To a Page From the Server Side

You can customize the RadUploadHandler to redirect the client to a certain page as soon as the upload is finished, by adding a RedirectPage RadUploadConstants.

In order to implement this scenario, you will need to override the GetAssociatedData method:

[C#] Example 1: Redirecting the client

public override Dictionary<string, object> GetAssociatedData()
{
 Dictionary<string, object> associatedData = base.GetAssociatedData();
 if (this.IsFinalFileRequest())
 {
  associatedData.Add(RadUploadConstants.RedirectPage, "http://www.google.com");
 }
  return associatedData;
}

[VB.NET] Example 1: Redirecting the client

Public Overrides Function GetAssociatedData() As Dictionary(Of String, Object)
 Dim associatedData As Dictionary(Of String, Object) = MyBase.GetAssociatedData()
 If Me.IsFinalFileRequest() Then
  associatedData.Add(RadUploadConstants.RedirectPage, "http://www.google.com")
 End If
 Return associatedData
End Function