Web Page Question

T

Tim

Hello,

I have a web page that a user enters in information and selects some
products. On submit the page the info is saved to a db, connects to third
party web apps and retrieves data, and third party data is saved. I want to
be able on submit is redirect the user to a loading page (status) while the
app is doing the above functionality and then when finished user is redirect
to a new page (results). I really do not know where to start with this so
can someone point me in the right direction?

Thanks
 
R

Robbe Morris [C# MVP]

The act of leaving the page may make this problematic.
However, if you stay on the same page and implement
an AJAX or Atlas approach for remote execution
of the data retrieval, you should be able to handle this.

Search google on asp.net ajax atlas for dozens of samples.

--
Robbe Morris - 2004-2006 Microsoft MVP C#
I've mapped the database to .NET class properties and methods to
implement an multi-layered object oriented environment for your
data access layer. Thus, you should rarely ever have to type the words
SqlCommand, SqlDataAdapter, or SqlConnection again.
http://www.eggheadcafe.com/articles/adonet_source_code_generator.asp
 
T

Tim

Thanks for the post. I understand AJAX (not Atlas that well use a third
party framework). You suggest to use AJAX on submit (not leave the page)
and show a loading bar on the page and upon completion redirect to results
page?

I have been to sites that use a new seperate loading page between submit
page and results page. How is this accomplished? I much rather do it this
way because the page submitted is complicated with a lot of controls so I
really have no place to show a loading bar. Any other ideas?

Thanks
 
R

Robbe Morris [C# MVP]

You could do this with frames or an iframe versus AJAX.
The problem you have is that the web is a disconnected environment.
The server cannot automatically initiate a connection to the client.
The client always has to trigger that communication in some way.

So, if you trigger a process and leave the page with no way
for the browser to get the response (in this case the iframe page
would fire the onload event of that page which you could trigger
code from), then the server has no way to talk to the browser.

--
Robbe Morris - 2004-2006 Microsoft MVP C#
I've mapped the database to .NET class properties and methods to
implement an multi-layered object oriented environment for your
data access layer. Thus, you should rarely ever have to type the words
SqlCommand, SqlDataAdapter, or SqlConnection again.
http://www.eggheadcafe.com/articles/adonet_source_code_generator.asp
 
T

Tim

Thanks for the post and ideas. I was thinking about opening a new window
with a loading/progress bar using javascript. Is there a way I can disable
the form that the user submits?

Thanks
 

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