Author: mvang | Posted on: 7/2/2008 11:54:43 AM | Views : 1101

Okay, well here is my problem that I am facing. Orginially, I have a web page (project1)  that is all accessed by Javascript - there is no code behind. I create and external library and pulled in the dll as a reference to porject 1. From javascript I need to access the properties and methods in the dll reference that I added to project 1. I don't want to add a webservice to my project as it opens another process in my project. After several failed attemps thru the use of PageMethods - I have now create a very very simple PageMethod but I can't get my pagemethods to work ( I am coding in VB.Net btw ) So I did the whole code behind with

Imports System.Web.Services

<WebMethods> _

Public Shared Function auth() as String

    return "Hi"

End Function

 

Then, in Javascript

PageMethods.auth(OnSuccess, OnFailed);

function OnSuccess(result, userContext, methodName ...

Go to the complete details ...