Hi;
..NET 2.0
I have a situation where when the user selects an item in a drop down list,
the code behind is called to update the values in another list on the page.
This update can take 3 - 5 seconds.
When it is complete, the same page is still displayed. What is the best way
to tell the user the page is working? I don't like the idea of switching to a
page that says "thinking.. ." and then going back to the page on.
--
thanks - dave
david_at_windwa rd_dot_net http://www.windwardreports.com 8 2017
Search for atlas
Good Luck
DWS
"David Thielen" wrote: Hi;
.NET 2.0
I have a situation where when the user selects an item in a drop down list, the code behind is called to update the values in another list on the page. This update can take 3 - 5 seconds.
When it is complete, the same page is still displayed. What is the best way to tell the user the page is working? I don't like the idea of switching to a page that says "thinking.. ." and then going back to the page on.
-- thanks - dave david_at_windwa rd_dot_net http://www.windwardreports.com
Hi Dave,
For your scenario, you want to display some message on page to inform the
user the page is executing some task and do not leave the current page, I
think one common approach is use client-side script code to display an
image or Text (label or html <div> ) in the center of the page. Actually
we can put that image or Label in the page in advance and make it
invisible(set the html "display" style to "none". For example:
<img id="imgRing" src="Images/ReportServer.gi f" style="display: none"
width="200" height="200" />
Then, in our button's client-side onclick event or the html <form>'s
"onsubmit", we can use script to make the image or label visible:
<script language="javas cript">
function ShowImage()
{
document.getEle mentById("imgRi ng").src = "Images/Ring.gif";
document.getEle mentById("imgRi ng").style.disp lay = "";
}
</script>
<form id="form1" runat="server" onsubmit="ShowI mage();">
Hope this helps.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Dave Sussman and Alex Homer wrote this pretty "staged load" page display: http://www.daveandal.net/books/6744/...edloading.aspx
It displays progress without switching the page.
There's a link to the code at that page.
Although it was written as an ASP.NET 1.1 sample, it will work in 2.0.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"David Thielen" <th*****@nospam .nospam> wrote in message
news:E8******** *************** ***********@mic rosoft.com... Hi;
.NET 2.0
I have a situation where when the user selects an item in a drop down list, the code behind is called to update the values in another list on the page. This update can take 3 - 5 seconds.
When it is complete, the same page is still displayed. What is the best way to tell the user the page is working? I don't like the idea of switching to a page that says "thinking.. ." and then going back to the page on.
-- thanks - dave david_at_windwa rd_dot_net http://www.windwardreports.com
great idea - thanks
--
thanks - dave
david_at_windwa rd_dot_net http://www.windwardreports.com
"Steven Cheng[MSFT]" wrote: Hi Dave,
For your scenario, you want to display some message on page to inform the user the page is executing some task and do not leave the current page, I think one common approach is use client-side script code to display an image or Text (label or html <div> ) in the center of the page. Actually we can put that image or Label in the page in advance and make it invisible(set the html "display" style to "none". For example:
<img id="imgRing" src="Images/ReportServer.gi f" style="display: none" width="200" height="200" />
Then, in our button's client-side onclick event or the html <form>'s "onsubmit", we can use script to make the image or label visible:
<script language="javas cript"> function ShowImage() { document.getEle mentById("imgRi ng").src = "Images/Ring.gif"; document.getEle mentById("imgRi ng").style.disp lay = "";
} </script>
<form id="form1" runat="server" onsubmit="ShowI mage();">
Hope this helps.
Regards,
Steven Cheng Microsoft Online Support
Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.)
I've needed to do a similar thing, but took a slightly different
approach. On the submit button, it calls a javascript function which
opens a "Please Wait" modeless dialog. In the URL of the Please Wait
window I pass the postback ID and EventArg of the button (which would be
used for the __doPostBack()) in the querystring and I pass the Window
object into the window.showMode lessDialog() method similar to the
example here: http://msdn.microsoft.com/library/de...p/author/dhtml
/reference/methods/showmodelessdia log.asp
Then I have a ContinuePostBac k() method in the main page where the
submit button exists which takes the EventID and EventArg and simply
calls the __doPostBack() event. When the Please Wait window opens, it
calls the ContinuePostBac k function on the main window and passes in the
EventID and EventArg from its URL. The ContinuePostBac k will start the
PostBack process which after it completes the page refreshes which
clears the Please Wait modeless dialog, so you don't have to worry about
trying to close that window. I originally tried to just open the Please
Wait window then continue with the __doPostBack, but I think there was a
timing issue because the Please Wait would not always display. So I
resolved that by having the Please Wait window be the thing that called
the ContinuePostBac k function... that gaurantees the window will open
before the postback starts.
I'm thinking about taking this another step by having the long process
write status messages to a session variable and having the Please Wait
window auto-refresh and read that session variable every 5 seconds or
so.
*** Sent via Developersdex http://www.developersdex.com ***
Hi;
More than I need this time but keeping this for future use.
--
thanks - dave
david_at_windwa rd_dot_net http://www.windwardreports.com
"Mike Ogden" wrote: I've needed to do a similar thing, but took a slightly different approach. On the submit button, it calls a javascript function which opens a "Please Wait" modeless dialog. In the URL of the Please Wait window I pass the postback ID and EventArg of the button (which would be used for the __doPostBack()) in the querystring and I pass the Window object into the window.showMode lessDialog() method similar to the example here: http://msdn.microsoft.com/library/de...p/author/dhtml /reference/methods/showmodelessdia log.asp
Then I have a ContinuePostBac k() method in the main page where the submit button exists which takes the EventID and EventArg and simply calls the __doPostBack() event. When the Please Wait window opens, it calls the ContinuePostBac k function on the main window and passes in the EventID and EventArg from its URL. The ContinuePostBac k will start the PostBack process which after it completes the page refreshes which clears the Please Wait modeless dialog, so you don't have to worry about trying to close that window. I originally tried to just open the Please Wait window then continue with the __doPostBack, but I think there was a timing issue because the Please Wait would not always display. So I resolved that by having the Please Wait window be the thing that called the ContinuePostBac k function... that gaurantees the window will open before the postback starts.
I'm thinking about taking this another step by having the long process write status messages to a session variable and having the Please Wait window auto-refresh and read that session variable every 5 seconds or so.
*** Sent via Developersdex http://www.developersdex.com ***
that is way cool. More than I need right now but very very cool. Buying the
book!
--
thanks - dave
david_at_windwa rd_dot_net http://www.windwardreports.com
"Juan T. Llibre" wrote: Dave Sussman and Alex Homer wrote this pretty "staged load" page display:
http://www.daveandal.net/books/6744/...edloading.aspx
It displays progress without switching the page.
There's a link to the code at that page. Although it was written as an ASP.NET 1.1 sample, it will work in 2.0. Juan T. Llibre, asp.net MVP aspnetfaq.com : http://www.aspnetfaq.com/ asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ =============== =============== ===== "David Thielen" <th*****@nospam .nospam> wrote in message news:E8******** *************** ***********@mic rosoft.com... Hi;
.NET 2.0
I have a situation where when the user selects an item in a drop down list, the code behind is called to update the values in another list on the page. This update can take 3 - 5 seconds.
When it is complete, the same page is still displayed. What is the best way to tell the user the page is working? I don't like the idea of switching to a page that says "thinking.. ." and then going back to the page on.
-- thanks - dave david_at_windwa rd_dot_net http://www.windwardreports.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Brian Huether |
last post by:
Whenever I use this, it doesn't seem to return anything. Any idea what is
happening here? My webhost (ipowerweb) uses php 4.3.1.
-brian
|
by: www |
last post by:
Hi there,
I need to calculate working days for a given period, "Date from", "Date To".
Plus I want to be able to insert Public Holidays to exclude aswell. Your
help will be greatly appreciated.
Cheers
Charles
|
by: |
last post by:
Hello,
I am hoping someone else has thought about a date time calculation i need to
perform.
I would like to be able to calculate the number of "working minutes" between
2 dates, given my working week definition.
Lets say I have a working week definition of Monday through Friday, 9 am to
5 pm.
Date1 = January 1st, 2005 at 8 am
|
by: Jason |
last post by:
I am trying to send mail via SMTP, using VB.NET on XP. I keep getting this
error: "Could not access 'CDO.Message' object." (I can send mail fine via
VB6, using CDONTS.)
I have added a reference to System.Web, and this is my code:
Try
WebMailMessage.From = Sender
|
by: WORKING IN FAITH |
last post by:
three years I LOVE You Monica
More options
1 message - Collapse all
WORKING IN FAITH
View profile
More options Nov 13, 11:29 am
three years I LOVE You Monica
| |
by: ssh |
last post by:
function testfn(name)
var tbody = document.getElementById('hellospace').getElementsByTagName('tbody');
var row = document.createElement('TR');
var cell1 = document.createElement('TD');
cell1.align="left";
cell1.style.height = "22";
cell1.style.width = "15";
cell1.valign = "middle";
cell1.className = "dwInfo";
var inp1 = document.createElement('INPUT');
|
by: Dipti Singh |
last post by:
Hi,
I have two asp pages. when both contain lots of coding, loops etc.
if i run the first page that contain for loop for creating array of textboxes,
then this page run successfully.
but if i include this first page in the second page using <#include.....> then the for loop is not working n page hangs up.
Plz tell me what is the reason.n any solution if any.
|
by: Parsed Cheese |
last post by:
After two days I am at wits end, but I am too OCD'ed to give up.
Please tell me what I have got wrong because no Validation Error is
being thrown.
The element: "<datestamp>I should fail</datestamp>"
does not conform to schema. Adding the schema to the
XmlReaderSettings->Schemas field at runtime does result in error being
thrown. As I read it, this step should not be neccessary as the
ProcessSchemaLocation flag should automatically...
|
by: Claire |
last post by:
Hi, either I'm going mad or is params not working anymore in VS 2005?
I have function as follows
public tableEquipment ReadEquipment(bool ReadImages, params Int64
RecIDs)
{
}
if I call "tableEquipment equipment = myDatabase.ReadEquipment(false,
RecID);"
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |