Alex Rivera | Logout

ASP.NET AJAX Page Methods from UserControl

Asked 2008-10-30T04:49:32.470
12

I would like to utilize the ASP.NET AJAX Page Methods functionality with a user control. Is there a way to be able to specify my static [WebMethod] inside the UserControl's code behind instead of the Page's code behind?

Edit
Report

1 Answer

0

The response TheXenocide gave would seem to work, but the developers state, "Control Methods for ASP.NET AJAX is provided "as is" with no guarantees or warranties express or implied, including implied warranties of fitness for a particular purpose, merchantability, and non-infringement."

If you are looking for a long term solution I would consider going with webservice methods. Either that or don't use a usercontrol. You can nest an aspx page within another with an Iframe.

answered 2011-06-14T17:56:30.633

Your Answer