This example demonstrates how to redirect users during the Callback Panel control's callback.
In the example, the callback panel displays a Login button and text boxes for an email address and password. The panel sends a callback to the server once you click the button. On the server, the ValidateEditorsInContainer method validates text box values. If they pass validation, the RedirectOnCallback method redirects you to the Login.aspx page. If validation fails, one or more error messages appear in the Validation Summary control above the text boxes.
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx.vb)
- Login.aspx (VB: Login.aspx)
- Login.aspx.cs (VB: Login.aspx.vb)