You should write the same code as u have written and also add the 
   Ajax.Utility.HandlerPath = "csharpwrapper";   line in your Global.asax.cs file in application start event. then it will register your function and will call it sucessfully.
 
Also don't forget to add the following code in your web.config file
 
 

<configSections>
    <sectionGroup name="ajaxNet">
      <section name="ajaxSettings" type="Ajax.AjaxSettingsSectionHandler, Ajax" />
      <section name="ajaxConverters" type=" Ajax.AjaxConverterSectionHandler, Ajax" />
    </sectionGroup>
  </configSections>

  <ajaxNet>
 <ajaxSettings>
  <commonAjax enabled="false" path="ajax.js" language="_javascript_" />
  <temporaryFiles path="~/images" deleteAfter="1" />
  <urlNamespaceMappings>
   <add namespace="CSharpSample.CloseCall,CSharpSample" path="MyDemoMethods" />
  </urlNamespaceMappings>
 </ajaxSettings>
 <ajaxConverters>
  <remove type="Ajax.JSON.DateTimeConverter, Ajax" />
  <add type="CSharpSample.DateTimeConverter, CSharpSample" />
 </ajaxConverters>
  </ajaxNet>

   <httpHandlers>
  <add verb="POST,GET" path="csharpwrapper/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
    </httpHandlers>
 
 
Then it will work Bye..
 
On 6/21/06, duynnh <[EMAIL PROTECTED]> wrote:

Hi All!
I'm using  Ajax.NET Professional(1.1) but i have problem:

here index.aspx code:

<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0"
MS_POSITIONING="GridLayout" >
_javascript_:
<script language="_javascript_">
   function DeleteUserOnline()
  {
     Index.DeleteUserOnline;
  }

</script>

Index.aspx.vb code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

       Ajax.Utility.RegisterTypeForAjax(GetType(Index))

End Sub

<Ajax.AjaxMethod()> _
   Public Function DeleteUserOnline() As Boolean
       MyClassDuynnh.UserOnline_Delete(MyClassDuynnh.IdUserOnline )
       Return True
   End Function

but it don't Active DeleteUserOnline function. why?, help me.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to