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

Autopost back :- Please wait message

Hello ,

I am using ASP.NEt and VBscripting. I have few textbox and dropdown boxes in my webpage which trigger autopostback. While the page is getting refreshed , i would like to display a message called - "please wait".

I am newbie to asp.net. Would some one help me how to do this?

Thanks much for your help.

Regards,
Shubha
Aug 21 '07 #1
6 2042
nateraaaa
663 Expert 512MB
Hello ,

I am using ASP.NEt and VBscripting. I have few textbox and dropdown boxes in my webpage which trigger autopostback. While the page is getting refreshed , i would like to display a message called - "please wait".

I am newbie to asp.net. Would some one help me how to do this?

Thanks much for your help.

Regards,
Shubha
How long can this postback actually take? A postback should just be a quick flash on the screen. You would not have time to show the user a message.

Nathan
Aug 21 '07 #2
Plater
7,872 Expert 4TB
Unless there is a file upload....

Well you said you're using vbscripting. I don't know if you ment "vbscript" or actual "vb".

Regardles, that kind of popup message would be handled with client side script (javascript/vbscript) and not in the backend.

Just make a div with the "please wait message" and mark it hidden. Then when you want, set the z-index and make it visible.
Aug 21 '07 #3
It doesnt take long to refresh the page, but meanwhile, I do not want the users to input the data in the form. There would like to post a "please wait" message.

If you have any samples, kindly let me know. And Yes I am using VB with ASP.net.

Thanks you both.

shubha
Aug 30 '07 #4
mzmishra
390 Expert 256MB
As Mentione before try to this way

<body bottomMargin="0" onbeforeunload="busyBox.Show();" leftMargin="0" topMargin="0" rightMargin="0">
<iframe id="BusyBoxIFrame" ondrop="return false;" style="WIDTH: 500px; HEIGHT: 8px" name="BusyBoxIFrame"
frameBorder="0" scrolling="no"></iframe>
<SCRIPT>
var imagePath = "../images/";
// Instantiate our BusyBox object
var busyBox = new BusyBox("BusyBoxIFrame", "busyBox", 4, imagePath + "imagename", ".gif", 125, 255, 185);
</SCRIPT>
Aug 31 '07 #5
mzmishra
390 Expert 256MB
Forgot this function....
Change it as per requirement
function BusyBox(id, varName, imageCount, imageNamePrefix, imageNameSuffix, imageDelay, width, height, url)
{
// Initialize object
this.id = id;
this.ImageCount = imageCount;
this.CurrentImageIndex = 0;
this.ImageWidth = 0;
this.ImageHeight = 0;
this.ImageNamePrefix = imageNamePrefix;
this.ImageNameSuffix = imageNameSuffix;
this.ImageDelay = imageDelay;
this.DivID = "BusyBoxDiv";
this.ImgID = "BusyBoxImg";
this.Enabled = true;
this.Width = width;
this.Height = height;

// Retain the name of the instantiated object variable so that we can animate
// using the setTimeout statement
this.VarName = varName;

// Allows us to stop the animation with clearTimeout(), should we ever want to
this.timeout_id = null;

// Cache (pre-load) images
this.CacheImages();

// Url to the page containing the busy box.
this.BusyBoxUrl = url;

// Get reference to the IFrame object
this.IFrame = document.getElementById(this.id);

// Hide the busy box
this.Hide();

if( this.BusyBoxUrl )
// Load the busy box contents using a custom layout page.
this.LoadUrl(this.BusyBoxUrl);
else
// Load the busy box contents using the internally defined layout.
this.RenderContent();

// If this browser does not support IFRAME tags then disable this control. The
// next version will implement the use of a DIV instead of the IFRAME tag;
// even though there are a couple minor issues with using DIV tags.
if( !frames[this.id] )
this.Enabled = false;
}
Aug 31 '07 #6
Plater
7,872 Expert 4TB
Well here is a quick example:
Create a DIV: (You should probably give it height/width/spacing and all that good style stuff too)
Expand|Select|Wrap|Line Numbers
  1. <div id="WaitingMessage" style="display:inline; visibility: hidden; z-index:0;"> Please wait for server to respond </div>
  2.  
Expand|Select|Wrap|Line Numbers
  1. function WaitMessage(boolval)
  2. {
  3.    if(boolval)
  4.    {//set visibilty to "visible" (you may need to adjust z-index as well)
  5.       var obj= document.getElementById("WaitingMessage");
  6.       obj.style.visibility = "visible";
  7.       obj.style.zindex=5000;//make it aboveeverything
  8.    }
  9.    else
  10.    {//set visibility to "hidden" (you may need to adjust z-index as well)
  11.       var obj= document.getElementById("WaitingMessage");
  12.       obj.style.visibility = "hidden";
  13.       obj.style.zindex=0;//make it below everything
  14.    }
  15. }
  16.  
Call WaitMessage(true); to show it and WaitMessage(false); to hide it
Aug 31 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Danny Masti | last post by:
Hello, I have a HIDDEN div with a "Please Wait Message". OnSubmit I show the hidden div with the "Please Wait Message". It works fine. But if I replace the "Please Wait Message" with an animated...
0
by: s_erez | last post by:
Hi, This is a realy tricky one. I have an ASP.NET application where some pages are reading data from a DB and presenting reports. In order for the user to wait while the page is reading data from...
14
by: Michael C | last post by:
Hi all, I'm now trying to update a status indicator via a Timer control on a worker thread. The status indicator is just a label on the main form, but I'm having trouble figuring out exactly...
0
by: Derek Martin | last post by:
Anyone know what would cause a listbox with autopostback enabled to only remember its state for the first 2 items? The third - N item, when selected and postback occurs, revert back to item 2. ...
0
by: Robin | last post by:
When using AutoPost on a dropdown list that has some code on the SelectIndexChanged function. When the value in the dropdown list is changed the CPU for the Web Browser goes to 100% for about 20...
3
by: LU | last post by:
I query database, QuestionID | QuestionName | QuestionType 1 | FirstName | TextBox 2 | LastName | TextBox Loop Create TextBox Create...
6
by: Tony Doyle | last post by:
All, I have a web form with 3 embedded panels, all working fine. However, I have now added a Checkbox where autopostback=true, and only the ascx pages on my page appear, none of the panels /...
1
by: =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post by:
Hi, I have a webpage designed with asp.net 2.0. Is there a way to display a "please wait" message to the screen horizontally centered and veritcally 20px from the VISIBLE top of the page,...
0
by: nickwong29 | last post by:
how do I remain or goto a row just selected in the gridview, i'm using autopost and a checkbox to select a row?
1
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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...

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.