by bryian
6. January 2010 19:52
Extender control 'ValidatorCalloutExtender1' cannot extend 'TextBox1'. Extender controls of type 'AjaxControlToolkit.ValidatorCalloutExtender' cannot extend controls of type 'System.Web.UI.WebControls.TextBox'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Extender control 'ValidatorCalloutExtender1' cannot extend 'TextBox1'. Extender controls of type 'AjaxControlToolkit.ValidatorCalloutExtender' cannot extend controls of type 'System.Web.UI.WebControls.TextBox'.
Make sure the TargetControlID of the ValidatorCalloutExtender is set to a validator control instead of the TextBox control
Example:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="Required field" Display="None"
ControlToValidate="TextBox1" />
<cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender1"
TargetControlID="RequiredFieldValidator1" runat="server" />
by bryian
8. November 2009 06:18
Asynchronous operations are not allowed in this context. Page starting an asynchronous operation has to have the Async attribute set to true and an asynchronous operation can only be started on a page prior to PreRenderComplete event.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Asynchronous operations are not allowed in this context. Page starting an asynchronous operation has to have the Async attribute set to true and an asynchronous operation can only be started on a page prior to PreRenderComplete event.
solution: Set Async="True"
<%@ Page Language="VB" Async="true" AutoEventWireup="false" CodeFile="TestHotmail.aspx.vb" Inherits="TestHotmail" %>