By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,508 Members | 1,856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,508 IT Pros & Developers. It's quick & easy.

C# app call to ASP.NET web page

P: n/a
guy
Hi,

I need to make a call from my C# application to an ASP.NET web page and pass
some parameters to it and receive back a return value.

Anybody know what the class/function name is in C# to do this?

I'm looking for something like:
string xxx = "http://www.myweb.com/test.aspx?param1=aaa&param2=bbb";
int result = GetWebResult(xxx);

Thanks
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.
-----Original Message-----
Hi,

I need to make a call from my C# application to an ASP.NET web page and pass some parameters to it and receive back a return value.

Anybody know what the class/function name is in C# to do this?
I'm looking for something like:
string xxx = "http://www.myweb.com/test.aspx? param1=aaaśm2=bbb";int result = GetWebResult(xxx);

Thanks
.

Nov 17 '05 #2

P: n/a
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.

"Brendan Grant" <gr****@dahat.com> wrote in message
news:06****************************@phx.gbl...
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.
-----Original Message-----
Hi,

I need to make a call from my C# application to an ASP.NET web page and passsome parameters to it and receive back a return value.

Anybody know what the class/function name is in C# to do this?
I'm looking for something like:
string xxx = "http://www.myweb.com/test.aspx? param1=aaaśm2=bbb";int result = GetWebResult(xxx);

Thanks
.

Nov 17 '05 #3

P: n/a
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.
-----Original Message-----
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.

"Brendan Grant" <gr****@dahat.com> wrote in message
news:06****************************@phx.gbl...
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.
-----Original Message-----
Hi,

I need to make a call from my C# application to an

ASP.NET web page and pass
some parameters to it and receive back a return value.

Anybody know what the class/function name is in C# to do

this?

I'm looking for something like:
string xxx = "http://www.myweb.com/test.aspx?

param1=aaaśm2=bbb";
int result = GetWebResult(xxx);

Thanks
.

.

Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.