Connecting Tech Pros Worldwide Forums | Help | Site Map

Web Page Question

Tim
Guest
 
Posts: n/a
#1: Dec 3 '06
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



Robbe Morris [C# MVP]
Guest
 
Posts: n/a
#2: Dec 4 '06

re: Web Page Question


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/..._generator.asp





"Tim" <tim@asp.netwrote in message
news:eAKlfkzFHHA.4580@TK2MSFTNGP05.phx.gbl...
Quote:
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
>
Tim
Guest
 
Posts: n/a
#3: Dec 4 '06

re: Web Page Question


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

"Robbe Morris [C# MVP]" <joeblow@joe.comwrote in message
news:uwN3JN0FHHA.3616@TK2MSFTNGP06.phx.gbl...
Quote:
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/..._generator.asp
>
>
>
>
>
"Tim" <tim@asp.netwrote in message
news:eAKlfkzFHHA.4580@TK2MSFTNGP05.phx.gbl...
Quote:
>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
>>
>

Robbe Morris [C# MVP]
Guest
 
Posts: n/a
#4: Dec 5 '06

re: Web Page Question


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/..._generator.asp





"Tim" <tim@asp.netwrote in message
news:%23hh6YI2FHHA.3976@TK2MSFTNGP05.phx.gbl...
Quote:
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
>
"Robbe Morris [C# MVP]" <joeblow@joe.comwrote in message
news:uwN3JN0FHHA.3616@TK2MSFTNGP06.phx.gbl...
Quote:
>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/..._generator.asp
>>
>>
>>
>>
>>
>"Tim" <tim@asp.netwrote in message
>news:eAKlfkzFHHA.4580@TK2MSFTNGP05.phx.gbl...
Quote:
>>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
>>>
>>
>
>
Tim
Guest
 
Posts: n/a
#5: Dec 5 '06

re: Web Page Question


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

"Robbe Morris [C# MVP]" <joeblow@joe.comwrote in message
news:C16C0A81-3ACB-4DD5-9E94-D4A52FC4A608@microsoft.com...
Quote:
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/..._generator.asp
>
>
>
>
>
"Tim" <tim@asp.netwrote in message
news:%23hh6YI2FHHA.3976@TK2MSFTNGP05.phx.gbl...
Quote:
>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
>>
>"Robbe Morris [C# MVP]" <joeblow@joe.comwrote in message
>news:uwN3JN0FHHA.3616@TK2MSFTNGP06.phx.gbl...
Quote:
>>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/..._generator.asp
>>>
>>>
>>>
>>>
>>>
>>"Tim" <tim@asp.netwrote in message
>>news:eAKlfkzFHHA.4580@TK2MSFTNGP05.phx.gbl...
>>>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
>>>>
>>>
>>
>>
>

Closed Thread