C# app call to ASP.NET web page

B

Brendan Grant

You'd be better off if you put called a web service
instead of a web page.

With a webpage you will have to grab the entire page and
parse it, while with a web service you can return only
those values you want.
 
G

guy

Can you give me an example of webservice that I can load to my web that I
can experiment with?

Or perhaps if I'm more specific you can point me in the right direction:
From my app, I'd like to call
www.example.com/auth.aspx?lic=234234&user=134123

and have that aspx page do a DB lookup to verify that the license on the
user's machine is current.

Do you think a web service is better for this?

Thanks.

You'd be better off if you put called a web service
instead of a web page.

With a webpage you will have to grab the entire page and
parse it, while with a web service you can return only
those values you want.
 
B

Brendan Grant

I do not have any webservices that I can give you, but
take a look at:
http://www.codeproject.com/cs/webservices/myservice.asp
for a guide to making your own web service, it's pretty
easy to do.

In short, a webservice as far as your code is concerned
(after you've built the reference with the automatic
tools), is just another class that you would instantiate
and make a call to a member of.

On the server, it is not unlike standard class library,
you have functions with parameters that are called, do
their work and return a value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top