473,396 Members | 1,916 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,396 software developers and data experts.

Web Page Question

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
Dec 3 '06 #1
4 1271
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" <ti*@asp.netwrote in message
news:eA**************@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
Dec 4 '06 #2
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

"Robbe Morris [C# MVP]" <jo*****@joe.comwrote in message
news:uw**************@TK2MSFTNGP06.phx.gbl...
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" <ti*@asp.netwrote in message
news:eA**************@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

Dec 4 '06 #3
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" <ti*@asp.netwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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]" <jo*****@joe.comwrote in message
news:uw**************@TK2MSFTNGP06.phx.gbl...
>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" <ti*@asp.netwrote in message
news:eA**************@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

Dec 5 '06 #4
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

"Robbe Morris [C# MVP]" <jo*****@joe.comwrote in message
news:C1**********************************@microsof t.com...
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" <ti*@asp.netwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>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]" <jo*****@joe.comwrote in message
news:uw**************@TK2MSFTNGP06.phx.gbl...
>>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" <ti*@asp.netwrote in message
news:eA**************@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



Dec 5 '06 #5

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

Similar topics

3
by: fig000 | last post by:
Hi, I'm relatively new to Javascript so please bear with me on what might sound like silly questions. This is what I want to do: I'm working in classic asp (I have to for this project). I...
4
by: Vincent Yang | last post by:
I'm using Access 2002. My database is in Access 2000 format. I'm designing a form to collect responses to a 40-item questionnaire. I can fit four list boxes on a screen, so I plan to have 11 tab...
10
by: hn | last post by:
Hi all, I have to design a quiz page which includes up to 200 questions. What users do is they start the quiz, go to page1 with question1, enter some answers, click next to go page2 with...
1
by: Jeff | last post by:
I assume that this is an easy newby question... How can I conditionally force the code in a "if not page.ispostback sub" to run even if the page is posting back? More specifically, I have a web...
17
by: =?Utf-8?B?Y2F0aGFyaW51cyB2YW4gZGVyIHdlcmY=?= | last post by:
Hello, I have build a website with approximately 30 html-pages. When I search this website in Google, I see the index.html or home.html on this website, but also other html-pages on this...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.