473,837 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

refreshing label text

I have a form that runs a procedure when a button is clicked. the procedure
does a few things, then outputs the results to labels on a form....which it
does fine.
However, when I call that procedure again (in the same instance of the
program), the labels do not update.
i have tried resetting the text. update(), refresh(), beginUpdate() and
endUpdate(), Invalidate() and a few others that sounded pretty good ;-)
no dice.
any ideas?

thanks, patrick
Nov 21 '05 #1
2 1424
Rigamonk,

I assume that that procedure is in the ButtonClick event, can you show us a
little bit of the code you are using?

It should show directly after that method is done normally.

Cor
"rigamonk" <ri********@hot SPAMmail.com>
I have a form that runs a procedure when a button is clicked. the procedure
does a few things, then outputs the results to labels on a form....which it
does fine.
However, when I call that procedure again (in the same instance of the
program), the labels do not update.
i have tried resetting the text. update(), refresh(), beginUpdate() and
endUpdate(), Invalidate() and a few others that sounded pretty good ;-)
no dice.
any ideas?

thanks, patrick

Nov 21 '05 #2
ok.
here is some of the code in the called procedure:

data854F = CType(regKey.Ge tValue("{A8A88C 49-5EB2-4990-A1A2-0876022C854F}") ,
Byte())

data0120 = CType(regKey.Ge tValue("{AEBA21 FA-782A-4A90-978D-B72164C80120}") ,
Byte())

str854F = Hex.ToString(da ta854F)

str0120 = Hex.ToString(da ta0120)

Try

sub854F = str854F.Substri ng(72, 13)

sub0120 = str0120.Substri ng(72, 13)

Catch ex As System.Argument OutOfRangeExcep tion

sub854F = str854F.Substri ng(72, 11)

sub0120 = str0120.Substri ng(72, 11)

End Try

lblDefaulLvl.Te xt = "Advanced"

If sub854F.Equals( "14-1A-15-39-4") And sub0120.Equals( "14-1A-15-39-4") Then

IEex1.Text = "Block"

IEex2.Text = "Block"

IEex3.Text = "Block"

IEex4.Text = "Block"

lblSession.Text = "Always Allow"

ElseIf sub854F.Equals( "14-1A-15-39") And sub0120.Equals( "14-1A-15-39") Then

IEex1.Text = "Block"

IEex2.Text = "Block"

IEex3.Text = "Block"

IEex4.Text = "Block"

lblSession.Text = "Not Allow"

so....this is called and it populates the varios labels. works great the
first time. but lets say i want to call the proc again a little later to see
if anything has changed. well, the values in the labels DO NOT CHANGE. I've
run into this type of thing before and (obviously) never figured it out.

any ideas

"rigamonk" <ri********@hot SPAMmail.com> wrote in message
news:NO******** ************@gi ganews.com...
I have a form that runs a procedure when a button is clicked. the procedure
does a few things, then outputs the results to labels on a form....which it
does fine.
However, when I call that procedure again (in the same instance of the
program), the labels do not update.
i have tried resetting the text. update(), refresh(), beginUpdate() and
endUpdate(), Invalidate() and a few others that sounded pretty good ;-)
no dice.
any ideas?

thanks, patrick

Nov 21 '05 #3

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

Similar topics

1
1760
by: viktor9990 | last post by:
I have a page called CustomerSlides.aspx which contains an iframe(with the source Lookupage.aspx). The iframe page will look continuously in the database to see if a value has changed: if it is true it will run a java script dynamically to update the parent page CustomerSlides.aspx.cs. The value in the Database is changed from another aspx page så all the changes made in this page will be updated in CustomerSlides.aspx. I used the code...
1
1807
by: viktor9990 | last post by:
I have a page called CustomerSlides.aspx which contains an iframe(with the source Lookupage.aspx). The iframe page will look continuously in the database to see if a value has changed: if it is true it will run a java script dynamically to update the parent page CustomerSlides.aspx.cs. The value in the Database is changed from another aspx page så all the changes made in this page will be updated in CustomerSlides.aspx. I used the code...
0
2355
by: willow1480 | last post by:
I am developing a small little Service Control Application. I am using a listview control with checkboxes and getting the list of services I want to control from a text file. When you check a checkbox, it should either stop the service or start the service depending on each respective service's status. I want the listView to update the status for each service as they are checked. instead all I can seem to do is clear the listView and I...
0
1069
by: Terry Cox, MCSD | last post by:
I have this problem throughout a site I am designing. The Update, Edit, and Insert commands all seem to re-databind properly, but the the OnDeleteCommand only processes. The deleted item remains on the screen unless I refresh the page. I have done this a thousand times and can't figure out what the deal is. Below is the code: <<HEAD CODE>> <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" Debug="True"%> ...
6
1984
by: MattB | last post by:
I have a page header that I made as a user control (ascx) that I drop on every page in my application. The application is an eCommerce application and I have a total for items in the cart on the header. To keep this total in sync, I count the items in the cart and refresh the label text in the load event of my header control. This all works well, except for one scenario. When the user is on the "Show Cart" page, they can delete items from...
0
1069
by: viktor9990 | last post by:
I have a page called CustomerSlides.aspx which contains an iframe(with the source Lookupage.aspx). The iframe page will look continuously in the database to see if a value has changed: if it is true it will run a java script dynamically to update the parent page CustomerSlides.aspx.cs. The value in the Database is changed from another aspx page så all the changes made in this page will be updated in CustomerSlides.aspx. I used the code...
1
1192
by: barry | last post by:
The following code, in windows, shows the elapsing time in a label control. Is there an equivalent method for asp.net dealing with refreshing the label control? Do Until Date.Now >= endTimeSpan curTime = Date.Now labelControl.Text = _ curTime.ToString("hh:mm:ss:ff") labelControl.Refresh() Loop
2
2487
by: Ben | last post by:
Hi, One ASP.NET transactional page conducts a long transaction in a button click function. I want to display the transaction progress info in label control without refreshing page. It is because page refreshing will commit the transaction automatically. How to do it?
5
6967
by: handoyo | last post by:
Hi all,i'm trying to show updated data in existing html td.. For example i got column that show last modified datetime,then i want to update data again,the column will changed to current time without refreshing the page.These are my codes views/order_home <script type="text/javascript" src="<?php echo base_url(); ?>js/jquery.js"></script> <script type="text/javascript" src="<?php echo base_url(); ?>js/jquery.form.js"></script> <script...
0
9851
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9695
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
10902
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...
1
10642
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
9420
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 projectplanning, coding, testing, and deploymentwithout 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...
1
7824
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 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...
0
7013
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();...
2
4060
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3128
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.