AjaxMethod in VB.NET

  1. #1

    AjaxMethod in VB.NET

    Can we use AjaxMethod in VB.NET the same way as in C#. I have previously used AjaxMethods in C# with success, but in VB.NET, I had to use something like:

    Coolite.AjaxMethods.dnn_ctr373_ViewTherapy.deleteT herapy(id);

    instead of

    Coolite.AjaxMethods.deleteTherapy(id);

    to invoke an AjaxMethod (Notice the reference to the container ascx control in the first call). Is that the intended behaviour or am I missing somehting??
  2. #2

    RE: AjaxMethod in VB.NET

    Anyone can shed some light on this issue??
  3. #3

    RE: AjaxMethod in VB.NET

    Hi,

    If AjaxMethod in INamingContainer(UserControl, MasterPage) then need to add ClientID of container after Coolite.AjaxMethods
    Coolite.AjaxMethods.ContainerClientID.MethodName

    If AjaxMethod in simple page then ClientID is not need
    Coolite.AjaxMethods.MethodName
  4. #4

    RE: AjaxMethod in VB.NET

    There you go. I never realized this difference. When I used C#, I was using the AjaxMethod in an .aspx page. In VB, I was doing it in an .ascx control.

    And I thought it was the language making the difference. Thanx vladimir.

Similar Threads

  1. [AjaxMethod]
    By grombox in forum 1.x Help
    Replies: 8
    Last Post: Jun 18, 2010, 6:11 PM
  2. Can't add AjaxMethod
    By glenh in forum 1.x Help
    Replies: 2
    Last Post: Apr 20, 2010, 10:00 PM
  3. Replies: 2
    Last Post: Jan 08, 2010, 2:47 AM
  4. WindowUnload and AjaxMethod
    By bsnezw in forum 1.x Help
    Replies: 0
    Last Post: Oct 13, 2009, 3:06 PM
  5. static ajaxmethod
    By [WP]joju in forum 1.x Help
    Replies: 2
    Last Post: Mar 04, 2009, 9:47 AM

Posting Permissions