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

Changing the Value of Label

103 100+
Hi all,

I am trying to do an assignment.

I have a textbox. The size of the textbox is 20;

I have a label. The text of the label is 20 by default.

When i enter a letter say 'a' into the value of the label should be changed to 19.

Likewise, how many letters i enter into the text box, the value of the label should be decreased..

I need a keypress event that is when a key is pressed on the keyboard,the value of label should be decreased.

I am using asp.net, c#.net and Javascrpt.
Please help me...

Thanks.

Mathew.
Oct 3 '07 #1
3 1213
r035198x
13,262 8TB
Hi all,

I am trying to do an assignment.

I have a textbox. The size of the textbox is 20;

I have a label. The text of the label is 20 by default.

When i enter a letter say 'a' into the value of the label should be changed to 19.

Likewise, how many letters i enter into the text box, the value of the label should be decreased..

I need a keypress event that is when a key is pressed on the keyboard,the value of label should be decreased.

I am using asp.net, c#.net and Javascrpt.
Please help me...

Thanks.

Mathew.
And what do you have so far?
Oct 3 '07 #2
mathewgk80
103 100+
And what do you have so far?
I dont know how to do it. please help me

thanks

Mathew
Oct 3 '07 #3
Frinavale
9,735 Expert Mod 8TB
Hi all,

I am trying to do an assignment.

I have a textbox. The size of the textbox is 20;

I have a label. The text of the label is 20 by default.

When i enter a letter say 'a' into the value of the label should be changed to 19.

Likewise, how many letters i enter into the text box, the value of the label should be decreased..

I need a keypress event that is when a key is pressed on the keyboard,the value of label should be decreased.

I am using asp.net, c#.net and Javascrpt.
Please help me...

Thanks.

Mathew.
Check out the .NET article on how to check if a TextBox contains a number...this will give you an idea of how to use JavaScript to do this for you.

Cheers!

-Frinny
Oct 3 '07 #4

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

Similar topics

3
by: Astra | last post by:
Hi All Could somebody confirm if and how I can change the TYPE of a textbox from PASSWORD to TEXT depending on whether a user checks a checkbox. In essence I have a login and password form and...
1
by: MickG | last post by:
I am trying to change the value of the variable "hard" according to which radio button is pressed and I am having no joy. Could anyone help me with this, the problematic section is marked with...
5
by: Sambo | last post by:
I have two forms, frmMain and frmSettings. I have a label in frmMain that i would like to change from frmSettings. So when the user clicks the command button in frmSettings then a value from a...
4
by: Siah | last post by:
Hi, I wanted to dynamically update pieces of my page in the following fashion. Look at the following html code: <span id='person_23_name'> Mike </span> <span id='person_28_name'> Siah </span>...
6
by: AMP | last post by:
Hello, I have an mdi program with a child form ("A") and another child ("B"). I want to change the text of a label on A by changing an item from a combobox on B. I can code the...
1
by: rbinington | last post by:
Hi, I am trying to write a DNN module that has the ability to insert articles into an article repository. I want the users to be able to move pages around and enter text into the FCKEditor. I...
7
by: JR123 | last post by:
I need some help. When the user enters a number if there is a match I want it to display as a hyperlink to that specific section of an intranet site we have at work. I have quite a lot of data but...
2
by: Dan | last post by:
Hi, i want to change the value of a textbox and the text of a label with javascript. I didi this: it works for the textbox, but not for the label (i tried both with 'text' and with 'value')....
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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...

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.