Here's the line where i call the AjaxMethod (sorry for the lack of
readability... just trying to get it to work... I've put extra line
breaks in to help)
Pipeline2006.AjaxMethods.FilterSearch(
{
__type:'Pipeline2006.AjaxMethods.FilterSearchParameter',
ParameterID:'1',
Criteria:document.getElementsByName('txtParameter_1')[0].value
},
function()
{
results = arguments[0];
if(results.error != null)
{
alert('Ajax error:' + results.error.Message);
throw 'Ajax error';
return;
}
alert('Ajax callback without error! Results=' +
results.value);
}
);
Here's the Ajax method prototype:
<AjaxPro.AjaxMethod()> Public Function FilterSearch(ByVal
FilterSearchParameters As FilterSearchParameter) As String
And here's the FilterSearchParameter class:
<Serializable()> Public Class FilterSearchParameter
Private intParameterID As Integer
Private strCriteria As String
Public Property ParameterID() As Integer
Get
Return intParameterID
End Get
Set(ByVal value As Integer)
intParameterID = value
End Set
End Property
Public Property Criteria() As String
Get
Return strCriteria
End Get
Set(ByVal value As String)
value = strCriteria
End Set
End Property
Public Sub New()
End Sub
Public Sub New(ByVal ParameterID As Integer, ByVal Criteria As
String)
Me.ParameterID = ParameterID
Me.Criteria = Criteria
End Sub
Public Overrides Function ToString() As String
Return "String representation of
FilterSeachParamter:ParameterID=" & ParameterID & ",Criteria=" &
Criteria
End Function
End Class
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---