J
John Kotuby
Hi guys,
Ok, I am trying to set up my first simple page method in VS2008.
I am getting immediately from the onFailure function "The Srver Method
'GetMyStuff' Failed" with no error number or description.
I studied the BOL and watched a video about how to set it up with both a
simple PageMethods call (EnablePageMethods="true" in the ScriptManager) and
also the Sys.Net.WebServiceProxy.invoke call (EnablePageMethods="false" in
the ScriptManager).
Here is the declared WebMehod in the same ASPX page that holds the calling
javascript.
<WebMethod()> Public Shared Function GetMyStuff() As String()
Dim myArray As String() = {}
myArray(0) = "11111"
myArray(1) = "listname"
myArray(2) = "origid"
myArray(3) = "P"
Return myArray
End Function
And the javascript:
//call the service
function GetFromOrigId() {
PageMethods.GetMyStuff(GetFromOrigIdSucceededHandler,
GetFromOrigIdFailedHandler);
/*
Sys.Net.WebServiceProxy.invoke(
"http://localhost/Custom/CustomCategories.aspx",
"GetMyStuff",
false,
null,
GetFromOrigIdSucceededHandler,
GetFromOrigIdFailedHandler, null, 3000);
*/
}
In either case the program goes right into the failure routine and Web Dev
Helper does not show that ANY response was received from the server. When
run in debug mode the processing doesn't even halt at the breakpoint I
placed at the called function.
Thre are no js errors and the pages compile just fine.
Can anybody help with this?
Thanks
Ok, I am trying to set up my first simple page method in VS2008.
I am getting immediately from the onFailure function "The Srver Method
'GetMyStuff' Failed" with no error number or description.
I studied the BOL and watched a video about how to set it up with both a
simple PageMethods call (EnablePageMethods="true" in the ScriptManager) and
also the Sys.Net.WebServiceProxy.invoke call (EnablePageMethods="false" in
the ScriptManager).
Here is the declared WebMehod in the same ASPX page that holds the calling
javascript.
<WebMethod()> Public Shared Function GetMyStuff() As String()
Dim myArray As String() = {}
myArray(0) = "11111"
myArray(1) = "listname"
myArray(2) = "origid"
myArray(3) = "P"
Return myArray
End Function
And the javascript:
//call the service
function GetFromOrigId() {
PageMethods.GetMyStuff(GetFromOrigIdSucceededHandler,
GetFromOrigIdFailedHandler);
/*
Sys.Net.WebServiceProxy.invoke(
"http://localhost/Custom/CustomCategories.aspx",
"GetMyStuff",
false,
null,
GetFromOrigIdSucceededHandler,
GetFromOrigIdFailedHandler, null, 3000);
*/
}
In either case the program goes right into the failure routine and Web Dev
Helper does not show that ANY response was received from the server. When
run in debug mode the processing doesn't even halt at the breakpoint I
placed at the called function.
Thre are no js errors and the pages compile just fine.
Can anybody help with this?
Thanks