I forgot there's another attribute you need to apply,
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static string GetUserName(int id)
{
return "Chris";
}
Now it should work
--
Milosz
"Milosz Skalecki [MCAD]" wrote:
Chris,
I think they must be static and mark with WebMethod attribute
[System.Web.Services.WebMethod()]
public static string GetUserName(int id)
{
return "Chris";
}
Hope this helps
--
Milosz
"dnadeveloper" wrote:
Can anyone tell me what is is required to get the PageMethod code into my
..aspx pages? (More accurately, into the rendered page.)
So far I have a scripmanager with EnablePageMethods wet to true.
TIA
Chris