Can't get return value from VB.NET method in Jquery using $.ajax

I'm a noob at jquery and ajax.  Bascially I have a class file that is calling some webservices.  I need to return the parsed values of the webservice calls back to the original page.  When I try it according to posted examples the return value is always null.  As a test I changed the file to return a hardcoded value and still nothing.  Does my vb file have to be a webservice?  I've seen several examples that are.  Below is my code:
Imports System.IO
Imports System.Net
Imports System.Text
Imports System.Xml
Imports System.Xml.XPath 
imports System.Web.Services

Partial Class getInfo
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    End Sub

    public function getInfo(ByVal Postal As String) as string
	return "hi"
    end function

    protected sub dosomethingelse()
    end sub
End Class

<script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>

<script language="javascript">
$j = jQuery.noConflict();

function Postal()
	if (document.getElementById('txtPostal').value == '')
		alert('Please enter a valid postal code');
		$"http://devsite/GetInfo.aspx", {postal: document.getElementById('txtPostal').value}, function(data){alert(data);});

Open in new window

DanNetwork EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Albert Van HalenAnalyst developerCommented:
You have to output something.
Since it's a page, the content of the page is the response of your ajax call.

You can also create a handler which doesn't have the 'overhead' of the page cycle (init, load, prerender, etc.) which is way faster.
Have a look here :

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DanNetwork EngineerAuthor Commented:
That was it ... I just needed to do a response.write of the values that I wanted returned.  Thanks!  I don't have much page overhead because the aspx is blank ...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.