hi all,i am very new to ajax....i try to run one simple ajax page in
vb.net but i can't do it...i dont know why..! and it does not show any
error while running but when i click on the button it shows error like
Error onpage on the bottom of the browser....when i run the same page
using c# as code behind it works fine.......here i include the
code...whats wrong with my code.... plz...help me
Namespace vbnettest
Public Class ajax
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()
End Sub
Protected WithEvents Label1 As System.Web.UI.WebControls.Label
'NOTE: The following placeholder declaration is required by the
Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form
Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
AjaxPro.Utility.RegisterTypeForAjax(GetType(vbnettest.ajax))
End Sub
<AjaxPro.AjaxMethod()> _
Public Function gettime() As String
Return System.DateTime.Now.ToString()
End Function
End Class
End Namespace
and javascript:
function gettime()
{
vbnettest.ajax.gettime(call_back);
}
function call_back(response)
{
Label1.innerHTML=response.value;
}
and wencnfg:
<httpHandlers>
<add verb="POST,GET" path="ajaxpro/*.ashx"
type="AjaxPro.AjaxHandlerFactory, AjaxPro"/>
</httpHandlers>
--~--~---------~--~----~------------~-------~--~----~
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/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---