I have the following code:
| Protected Sub radEventScheduler1_FormCreating(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerFormCreatingEventArgs) Handles radEventScheduler1.FormCreating |
| |
| e.Cancel = True |
| |
| 'Double clicked on appointment |
| If e.Mode = Telerik.Web.UI.FormMode.Insert Then |
| |
| Response.Redirect("Page2.aspx", True) |
| |
| ElseIf e.Mode = Telerik.Web.UI.FormMode.Edit Then |
| |
| Response.Redirect("Page3.aspx, True) |
| Else |
| 'Everything else - do nothing for now |
| End If |
| |
| End Sub |
| |
What I want to do is to direct to different pages depending on whether the user is trying to add a new appointment or edit an existing one. I'm not sure if I used the correct radscheduler event for this (FormCreated). I do know that response.redirect doesnt work due to the fact that this is based on microsoft ajax. Is there a way to redirect to another page without using response.redirect?
Thanks