473,320 Members | 1,861 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.

Help - how could I get web response after submitting programmatically?

I have a form page(abc.aspx) that contains some fields need to be filled in
before submitting,
and the action of the form is "def.aspx". After peocessing the filled-in
data, it'll return the result.
Is there any chance I could get the result by programming?

[Original Process]
Fill in data on "abc.aspx" --> Submit --> "def.aspx" requests the data -->
Processing --> Returns the result to "abc.aspx"

[Desired Process]
Send WebRequest to "def.aspx"(e.g.
WebRequest.Create("http://server/def.aspx?Type=AUTH&OrderNo=0001"))
--> Processing --> Returns the result to "abc.aspx"

Any idea?

Any suggestion is appreciated
Nov 18 '05 #1
2 1830
Is there something wrong with the approach you've described as "Desired"?
There shouldn't be anything stopping you from making a webservice request
from one page to another.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

"Jackal" <ja**********@llabs.com> wrote in message
news:O6*************@TK2MSFTNGP12.phx.gbl...
I have a form page(abc.aspx) that contains some fields need to be filled in before submitting,
and the action of the form is "def.aspx". After peocessing the filled-in
data, it'll return the result.
Is there any chance I could get the result by programming?

[Original Process]
Fill in data on "abc.aspx" --> Submit --> "def.aspx" requests the data -->
Processing --> Returns the result to "abc.aspx"

[Desired Process]
Send WebRequest to "def.aspx"(e.g.
WebRequest.Create("http://server/def.aspx?Type=AUTH&OrderNo=0001"))
--> Processing --> Returns the result to "abc.aspx"

Any idea?

Any suggestion is appreciated

Nov 18 '05 #2
You cannot use the WebRequest class on the client-side unless the user
has the .NET framework installed on their machine.

Instead, you can use web service behavior. It allows you to use
javascript to make a web service request and retrieve the results
without reloading the page.

http://msdn.microsoft.com/library/de...de01222001.asp

I think the web service behavior can create a much better user
experierence, and some very powerful web pages, but it can also make
it very difficult to maintain the code because you are using quite a
bit of javascript to pack the data, send it to a web server, unpack
the return data, and map it to the screen controls. Additionally, it
has a security risk because you are moving more processing to the
client-side where you have much less control.

This approach will work very nice for a simple web application, but if
you have a complex web application that has over a hundred webforms,
then this approach might not work very well. It is much harder to
debug javascript errors, and this will increase the cost to maintain
your code.

Tommy,

"Jackal" <ja**********@llabs.com> wrote in message news:<O6*************@TK2MSFTNGP12.phx.gbl>...
I have a form page(abc.aspx) that contains some fields need to be filled in
before submitting,
and the action of the form is "def.aspx". After peocessing the filled-in
data, it'll return the result.
Is there any chance I could get the result by programming?

[Original Process]
Fill in data on "abc.aspx" --> Submit --> "def.aspx" requests the data -->
Processing --> Returns the result to "abc.aspx"

[Desired Process]
Send WebRequest to "def.aspx"(e.g.
WebRequest.Create("http://server/def.aspx?Type=AUTH&OrderNo=0001"))
--> Processing --> Returns the result to "abc.aspx"

Any idea?

Any suggestion is appreciated

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

46
by: Kingdom | last post by:
In my data base I have a list of componet types e.g. type A - I have 8 off - type B I have 12 off etc. I'm using Set objRS = objDC.Execute("Select DISTINCT Component_Type FROM Parts_Table") ...
31
by: da Vinci | last post by:
OK, this has got to be a simple one and yet I cannot find the answer in my textbook. How can I get a simple pause after an output line, that simply waits for any key to be pressed to move on? ...
5
by: TD | last post by:
Hey All, I am hooking up our custom html (.chm) help file to our Access xp application, and, despite reading several posts and manuals on this, I still have a gap in my understanding... OK, so...
11
by: my-wings | last post by:
I think I've painted myself into a corner, and I'm hoping someone can help me out. I have a table of books (tblBooks), which includes a field (strPubName) for Publisher Name and another field...
3
by: luna | last post by:
theres no errors in my code - but it does nothing at all - its supposed to be populating text boxes!! any ideas ? (im am pretty new to all this) If Not Page.IsPostBack Then Dim search As...
3
by: hermand | last post by:
I've got an online job application I am building using ASP/VBScript. The application consists of one ASP document which has three separate states. States: 1. Form Display 2. Form Review...
3
by: namewitheldbyrequest | last post by:
"The XML element 'EnableTheming' from namespace 'http://tempuri.org/' is already present in the current scope" I created a Web Service: I imported System.Data.SqlClient so I could access SQL...
18
by: Axel Dahmen | last post by:
Hi, trying to submit an ASPX form using the key (using IE6) the page is not submitted in my web project. Trying to debug the pages' JavaScript code I noticed that there's some ASP.NET client...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: 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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.