This is a migrated thread and some comments may be shown as answers.

How to redirect to another page following appt insert

1 Answer 78 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 30 Nov 2007, 04:43 AM
After an appt is inserted, how do I redirect to another page?  I thought hooking the appointmentinserted event might work but it fires before the appt is actually created.  I need insertion to complete first so I can put the ID in session state, then redirect to another page.

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 03 Dec 2007, 02:57 PM
Hello Mark,

Here is one possible solution:
private String IsAppointmentInserted;    
    
    protected void Page_Load(object sender, EventArgs e)  
    {  
        IsAppointmentInserted = "false";  
    }      
      protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)  
    {  
        IsAppointmentInserted = "true";  
 
    }  
    protected void RadScheduler1_DataBound(object sender, EventArgs e)  
    {  
        if (IsAppointmentInserted == "true")  
            Response.Redirect("Default2.aspx");  
    } 


All the best,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Mark
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or