473,320 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

C# app call to ASP.NET web page

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
3 9369
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: JoeK | last post by:
Hey all, I am automating a web page from Visual Foxpro. I can control all the textboxes, radio buttons, and command buttons using syntax such as: ...
1
by: Michael Murschell | last post by:
If I call Page.FindControl() on an aspx, it finds the control, but if I call it on an ASCX, it does not. Why not? And how would I call it?
5
by: Jim Heavey | last post by:
When should you use the Page.Validate() method? I thought you would use this method if you have some Server side validation (CustomControl's) you wanted to use and this would cause them to be...
6
by: Glenn Owens | last post by:
I have an ASP.Net page on which there are serveral static controls (listboxes, radiobuttonlist and textboxes). These controls are used to create criteria from which the code-behind will dynamically...
2
by: Tulio Quinones | last post by:
I have a menu user control that navigates through 4 or 5 web forms. The control basically has "tabs" that are hyperlinks to each page. On each page a have a validation method that validates all...
2
by: ACaunter | last post by:
Hi all, I have to push a button twice to open a new window, only because i have to set some session variables before opening the window so i can't have the opennewwindow function called in the...
3
by: Greg Krzeszkowski | last post by:
Hi, This might be a little odd but I need to implement a back/"return to previous page" function from different pages within my asp.net application. The page the back button on has a property...
7
by: Shadow Lynx | last post by:
I realize that his question has been asked, in many other forms, many times in this group. Even so, my tired eyes have not yet found a sufficient answer, so I've decided to "reask" it even though...
7
by: dinamointer | last post by:
Could you help me in this problem: I want to launch an exe file(executable jar file) from a web page. I use jsp...and i cannot use vbScript...? could u tell me how should i do it? Thanks
2
by: sindhu | last post by:
Hello, I'm loading a frame from another frame using anchor tag. the code is as folllows. function change_page { if(document.form.txtbx1.value=="all") { ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.