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

Signature
Milosz
> 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
Milosz Skalecki [MCAD] - 06 Jul 2007 12:10 GMT
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

Signature
Milosz
> Chris,
>
[quoted text clipped - 14 lines]
> > TIA
> > Chris
dnadeveloper - 06 Jul 2007 19:01 GMT
>I forgot there's another attribute you need to apply,
>
[quoted text clipped - 8 lines]
>
>> Chris,
Thank you. All is good!
>> I think they must be static and mark with WebMethod attribute
>>
[quoted text clipped - 13 lines]
>> > TIA
>> > Chris