473,769 Members | 3,840 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to display a "loading page, please wait" box...

I cannot figure this out and would appreciate any help.....
I have a datagrid view that displays the results from a Stored Procedure.
it can take awhile to load.....
the stored procedure fires when a Calendar is clicked. ( a date is part of
the stored procedure ) How can i just show a new page or a pop-up that says
"please wait" until the stored procedure has run and gotten all the data and
the page is completely loaded? In all the examples i have studied, there is
always a button click event or are written in C#....
I was hoping to just use the Visible = True on a new page until the stored
procedure page is completely loaded.
<%@ Page Language="VB" AutoEventWireup ="false"
CodeFile="Worst Perfroming.aspx .vb" Inherits="Worst Perfroming" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Worst Performing Statements</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Worst Performing Statements
<asp:LinkButt on ID="LinkButton1 " runat="server"
PostBackUrl="~/Default.aspx">H ome</asp:LinkButton> <br />
<br />
<asp:DropDownLi st ID="DropDownLis t1" runat="server"
DataSourceID="S qlDataSource1"
DataTextField=" SQLServerInstan ceName"
DataValueField= "SQLServerInsta nceName">
</asp:DropDownLis t><asp:SqlDataS ource ID="SqlDataSour ce1"
runat="server" ConnectionStrin g="<%$
ConnectionStrin gs:SQLDiagM46Co nnectionString8 %>"
SelectCommand=" select distinct SQLServerInstan ceName from
MonitoredSQLSer vers
">
</asp:SqlDataSour ce>
<br />
<asp:Calendar ID="Calendar1" runat="server" BackColor="Whit e"
BorderColor="#9 99999"
CellPadding="4" DayNameFormat=" Shortest" Font-Names="Verdana"
Font-Size="8pt"
ForeColor="Blac k" Height="180px" Width="200px">
<SelectedDaySty le BackColor="#666 666" Font-Bold="True"
ForeColor="Whit e" />
<TodayDayStyl e BackColor="#CCC CCC" ForeColor="Blac k" />
<SelectorStyl e BackColor="#CCC CCC" />
<WeekendDayStyl e BackColor="Ligh tCyan" />
<OtherMonthDayS tyle ForeColor="Gray " />
<NextPrevStyl e VerticalAlign=" Bottom" />
<DayHeaderSty le BackColor="#CCC CCC" Font-Bold="True"
Font-Size="7pt" />
<TitleStyle BackColor="#999 999" BorderColor="Bl ack"
Font-Bold="True" />
</asp:Calendar>

</div>
<br />
<asp:GridView ID="GridView1" runat="server"
DataSourceID="S qlDataSource2">
</asp:GridView>
<asp:SqlDataSou rce ID="SqlDataSour ce2" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:SQLDiagM46Co nnectionString9 %>"
SelectCommand=" usp_IderaWorstP erforming"
SelectCommandTy pe="StoredProce dure">
<SelectParamete rs>
<asp:ControlPar ameter ControlID="Drop DownList1"
Name="sqlname" PropertyName="S electedValue"
Type="String" />
<asp:ControlPar ameter ControlID="Cale ndar1" Name="thedate"
PropertyName="S electedDate"
Type="DateTime" />
</SelectParameter s>
</asp:SqlDataSour ce>
</form>
</body>
</html>
Jun 25 '07 #1
2 5363
On Jun 25, 11:10 pm, geoffa <geo...@discuss ions.microsoft. comwrote:
I cannot figure this out and would appreciate any help.....
I have a datagrid view that displays the results from a Stored Procedure.
it can take awhile to load.....
the stored procedure fires when a Calendar is clicked. ( a date is part of
the stored procedure ) How can i just show a new page or a pop-up that says
"please wait" until the stored procedure has run and gotten all the data and
the page is completely loaded? In all the examples i have studied, there is
always a button click event or are written in C#....
I was hoping to just use the Visible = True on a new page until the stored
procedure page is completely loaded.

<%@ Page Language="VB" AutoEventWireup ="false"
CodeFile="Worst Perfroming.aspx .vb" Inherits="Worst Perfroming" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Worst Performing Statements</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Worst Performing Statements
<asp:LinkButt on ID="LinkButton1 " runat="server"
PostBackUrl="~/Default.aspx">H ome</asp:LinkButton> <br />
<br />
<asp:DropDownLi st ID="DropDownLis t1" runat="server"
DataSourceID="S qlDataSource1"
DataTextField=" SQLServerInstan ceName"
DataValueField= "SQLServerInsta nceName">
</asp:DropDownLis t><asp:SqlDataS ource ID="SqlDataSour ce1"
runat="server" ConnectionStrin g="<%$
ConnectionStrin gs:SQLDiagM46Co nnectionString8 %>"
SelectCommand=" select distinct SQLServerInstan ceName from
MonitoredSQLSer vers
">
</asp:SqlDataSour ce>
<br />
<asp:Calendar ID="Calendar1" runat="server" BackColor="Whit e"
BorderColor="#9 99999"
CellPadding="4" DayNameFormat=" Shortest" Font-Names="Verdana"
Font-Size="8pt"
ForeColor="Blac k" Height="180px" Width="200px">
<SelectedDaySty le BackColor="#666 666" Font-Bold="True"
ForeColor="Whit e" />
<TodayDayStyl e BackColor="#CCC CCC" ForeColor="Blac k" />
<SelectorStyl e BackColor="#CCC CCC" />
<WeekendDayStyl e BackColor="Ligh tCyan" />
<OtherMonthDayS tyle ForeColor="Gray " />
<NextPrevStyl e VerticalAlign=" Bottom" />
<DayHeaderSty le BackColor="#CCC CCC" Font-Bold="True"
Font-Size="7pt" />
<TitleStyle BackColor="#999 999" BorderColor="Bl ack"
Font-Bold="True" />
</asp:Calendar>

</div>
<br />
<asp:GridView ID="GridView1" runat="server"
DataSourceID="S qlDataSource2">
</asp:GridView>
<asp:SqlDataSou rce ID="SqlDataSour ce2" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:SQLDiagM46Co nnectionString9 %>"
SelectCommand=" usp_IderaWorstP erforming"
SelectCommandTy pe="StoredProce dure">
<SelectParamete rs>
<asp:ControlPar ameter ControlID="Drop DownList1"
Name="sqlname" PropertyName="S electedValue"
Type="String" />
<asp:ControlPar ameter ControlID="Cale ndar1" Name="thedate"
PropertyName="S electedDate"
Type="DateTime" />
</SelectParameter s>
</asp:SqlDataSour ce>
</form>
</body>
</html>
Hi...

Use javascript to do that...
on form submit show a div with absolute positioning ...

Thanks
Masudur
http://munnacs.110mb.com

Jun 25 '07 #2
Re:
!How to display a "loading page, please wait" box...

See the samples in chapter 3 :

http://www.daveandal.net/books/6744/samples.aspx

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"geoffa" <ge****@discuss ions.microsoft. comwrote in message
news:41******** *************** ***********@mic rosoft.com...
>I cannot figure this out and would appreciate any help.....
I have a datagrid view that displays the results from a Stored Procedure.
it can take awhile to load.....
the stored procedure fires when a Calendar is clicked. ( a date is part of
the stored procedure ) How can i just show a new page or a pop-up that says
"please wait" until the stored procedure has run and gotten all the data and
the page is completely loaded? In all the examples i have studied, there is
always a button click event or are written in C#....
I was hoping to just use the Visible = True on a new page until the stored
procedure page is completely loaded.
<%@ Page Language="VB" AutoEventWireup ="false"
CodeFile="Worst Perfroming.aspx .vb" Inherits="Worst Perfroming" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Worst Performing Statements</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Worst Performing Statements
<asp:LinkButt on ID="LinkButton1 " runat="server"
PostBackUrl="~/Default.aspx">H ome</asp:LinkButton> <br />
<br />
<asp:DropDownLi st ID="DropDownLis t1" runat="server"
DataSourceID="S qlDataSource1"
DataTextField=" SQLServerInstan ceName"
DataValueField= "SQLServerInsta nceName">
</asp:DropDownLis t><asp:SqlDataS ource ID="SqlDataSour ce1"
runat="server" ConnectionStrin g="<%$
ConnectionStrin gs:SQLDiagM46Co nnectionString8 %>"
SelectCommand=" select distinct SQLServerInstan ceName from
MonitoredSQLSer vers
">
</asp:SqlDataSour ce>
<br />
<asp:Calendar ID="Calendar1" runat="server" BackColor="Whit e"
BorderColor="#9 99999"
CellPadding="4" DayNameFormat=" Shortest" Font-Names="Verdana"
Font-Size="8pt"
ForeColor="Blac k" Height="180px" Width="200px">
<SelectedDaySty le BackColor="#666 666" Font-Bold="True"
ForeColor="Whit e" />
<TodayDayStyl e BackColor="#CCC CCC" ForeColor="Blac k" />
<SelectorStyl e BackColor="#CCC CCC" />
<WeekendDayStyl e BackColor="Ligh tCyan" />
<OtherMonthDayS tyle ForeColor="Gray " />
<NextPrevStyl e VerticalAlign=" Bottom" />
<DayHeaderSty le BackColor="#CCC CCC" Font-Bold="True"
Font-Size="7pt" />
<TitleStyle BackColor="#999 999" BorderColor="Bl ack"
Font-Bold="True" />
</asp:Calendar>

</div>
<br />
<asp:GridView ID="GridView1" runat="server"
DataSourceID="S qlDataSource2">
</asp:GridView>
<asp:SqlDataSou rce ID="SqlDataSour ce2" runat="server"
ConnectionStrin g="<%$ ConnectionStrin gs:SQLDiagM46Co nnectionString9 %>"
SelectCommand=" usp_IderaWorstP erforming"
SelectCommandTy pe="StoredProce dure">
<SelectParamete rs>
<asp:ControlPar ameter ControlID="Drop DownList1"
Name="sqlname" PropertyName="S electedValue"
Type="String" />
<asp:ControlPar ameter ControlID="Cale ndar1" Name="thedate"
PropertyName="S electedDate"
Type="DateTime" />
</SelectParameter s>
</asp:SqlDataSour ce>
</form>
</body>
</html>


Jun 25 '07 #3

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

Similar topics

4
2777
by: mvr | last post by:
Hi all Can some one give me a sample code to display a "please wait" message while retrieving results from the database in ASP. Thanks mvr
3
13487
by: Kannan | last post by:
Hello, I have a requirement that specifies that I display a "Please Wait..." window (preferably modal) along with a gif that mimics a progress bar during a save operation. The dialog needs to be closed at the end of the operation. How do I go about this... Issues are: 1. I believe a showModaldialog would stop all back ground processing and shift control to the modal dialog. 2. I would like to close the dialog from the parent window...
3
4642
by: John Dalberg | last post by:
Hi I have a form that opens a new window for the results. Because the results might take a few seconds due to server processing, I would like to display a message "please wait" in the new window, erase that message when the processing is done and show the results. How is this done? John Dalberg
1
1560
by: NH | last post by:
I would like to display a little pop-up message, or something when the user of Web Page submits data to be populated on DataGrid and not to remove all the other controls from the web page. Thanks in Advance,
3
3684
by: Ben Fidge | last post by:
Hi Our app performs a quite lengthy process when the user clicks a button. We'd like to display a little pop-up "Please Wait..." notification using an animated gif. How would I go about this? Thanks
2
2065
by: dana lees | last post by:
Hi, I am developing a c# asp.net application. I have a button which when i click on i open a pdf file. Since the pdf file is very very large i would like to open a window that says "Loading file..." and when the file is loaded, it will be loaded on the same page. How can i do that?
3
25489
by: bdog4 | last post by:
I've seen on some php forums that they use some type of popup box that I assume is javascript to display a animated gif/flash when you do a quick edit. My popup blocker does not detect it so I leads me to believe it is javascript. Does anyone have an ideas on how I can do this or an example/tutorial? They use it on Invision Power Boards Thanks
1
3142
by: booniraj | last post by:
Hello, i wanted to disply preload on dtml page.. can you help me in this...? cheers Rajeev
2
1829
by: Curious | last post by:
There's a problem with what is displayed on a tab in my UI. At first, it's a message, "loading...". Then it should be replaced with the actual file name on the tab. Now the issue is that it takes a long time before the message "loading..." is replaced by file name. In my debugger, the switch between "loading..." and file name happens AFTER the last line of code below: void LoadReportFilesWorker_RunWorkerCompleted(object sender,
0
9579
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, 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...
0
9422
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,...
0
10206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9851
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 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...
0
6662
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();...
0
5293
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...
3
2811
bsmnconsultancy
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...

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.