tags:

views:

8

answers:

0

Greetings all,

I'm creating a user control targeted to ASP.Net 2.0. It uses the AJAX library 1.0 for ASP.Net 2.0, which I've installed. The .ascx page for the user control sets up a script manager proxy like this:

<asp:ScriptManagerProxy ID="ContactFormScriptManagerProxy" runat="server">
</asp:ScriptManagerProxy>

But, in my .ascx.cs code-behind, Visual Studio doesn't understand ContactFormScriptManagerProxy.isInASyncPostBack() or Page.isInASyncPostBack() or ContactFormScriptManagerProxy.Page.isInASyncPostBack().

Other AJAX methods are recognized such as Page.AsyncTimeout() and Page.IsAsync(). So I presume that the AJAX library is installed correctly and that VS should be getting the references it needs. I'm stumped as to why VS doesn't know about Page.isInASyncPostBack(). The error I get is:

Error 1 'System.Web.UI.Page' does not contain a definition for 'IsInAsyncPostBack' and no extension method 'IsInAsyncPostBack' accepting a first argument of type 'System.Web.UI.Page' could be found (are you missing a using directive or an assembly reference?)

Any ideas?

Thanks,

-NorthK

related questions