473,473 Members | 1,491 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Dynamically change display while processing a button click.

Hi,

I have a procedure which calls different functions from within it and
it takes a while to do different functions. I want to be able to
change the display text during each stage, so when the button is
clicked to begin with, I want some text to be displayed straight away,
then when it gets to the next stage of the button click, the text
changes to something else so that the person is kept up to date with
what stage of the process they are at.

I am not very familiar with Javascript so want to really do it in
asp.net before turning to javascript.

So is it posible to dynamically change some text in between stages of
the process running?

Thanks

Jan 31 '07 #1
2 2469
the browser is request/response model. when the user clicks a button,
the form data is posted to the server, the server then builds a response
page and sends it back. the browser then rerender the page.

you can not update the browser screen from the server, except from a
request, so you can not push data. you need the browser to poll the
server for status changes, either through javascript, or the refresh
meta tag (header).

google this newsgroup for progress bar for lots of approaches to this.

bruce (sqlwork.com)

TheDude5B wrote:
Hi,

I have a procedure which calls different functions from within it and
it takes a while to do different functions. I want to be able to
change the display text during each stage, so when the button is
clicked to begin with, I want some text to be displayed straight away,
then when it gets to the next stage of the button click, the text
changes to something else so that the person is kept up to date with
what stage of the process they are at.

I am not very familiar with Javascript so want to really do it in
asp.net before turning to javascript.

So is it posible to dynamically change some text in between stages of
the process running?

Thanks
Jan 31 '07 #2
Is there not an ASP.net Progress Bar component? I have had a look and
found one thing but you need to pay for it.

Failing this, is there just an easy way to hide a Panel control as
soon as the button is clicked?

So for example as soon as the button is clicked, the Form Panel is
hidden and a progress Panel is shown with a gif image that looks like
a loading screen? Just now when I click the button, the code has to
execute before the panel is hidden.

Thanks

Feb 1 '07 #3

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

Similar topics

8
by: Donald Xie | last post by:
Hi, I noticed an interesting effect when working with controls that are dynamically loaded. For instance, on a web form with a PlaceHolder control named ImageHolder, I dynamically add an image...
2
by: R Duke | last post by:
I have tried everything I can think of to change the visible property of a design time created control from a dynamically created control's command event handler. Here is the scenario. I have...
6
by: Steve Booth | last post by:
I have a web form with a button and a placeholder, the button adds a user control to the placeholder (and removes any existing controls). The user control contains a single button. I have done all...
7
by: rsaffy | last post by:
I am having trouble with my dynamically created button's event handling. I read that the buttons need to be recreated on every trip to the server, but how exactly do you do that when the datagrid...
1
by: Sirisha | last post by:
Hi, I want javascript for displaying multiple textboxes dynamically. ADD-this is button. if i click button first time it will display 1 textbox and if i click 2nd time it will display another...
1
by: jelle.huygen | last post by:
Hello, I have a problem in ASP.NET 2.0 with the viewstate of my dynamically added user control. I have reproduced the problem with a very simple user control and a very simple page. On my...
4
by: mohaaron | last post by:
I can think of a lot of reasons why this might need to be done but as far as I can tell it's not possible. I've been looking for a way to add HtmlTableRows to a table using a button click for a...
4
by: ameshkin | last post by:
Hi Everybody, I'm just now learning javascript and I'm using mootools. What I want to do is to dynamically load a php page into accordian panel 2, depending on which radio button is selected in...
1
by: semomaniz | last post by:
I have a form where i have created the form dynamically. First i manually added a panel control to the web page. Then i added another panel dynamically and inside this panel i created tables. I have...
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
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,...
0
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...
1
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...
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...
0
agi2029
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,...
1
isladogs
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.