Link to home
Start Free TrialLog in
Avatar of hardlearner
hardlearner

asked on

Adding multiple values from a textbox to a label

hello guys

This should be very easy for most of you. I have a asp.net web page where I have a ASP text box named "txtdate" below of which I have a html button called "Add Date" next of which there is another textbox named "txtAddDate". I also have a lable named lblDate

What I need is:

1)Textbox "txtDate" should not accept more than integer 3(the maximum value a user can enter should not be more than 3)

2)When the user enters one date in "txtAddDate" and clicks on "Add Date" the date should be populated on lblDate(this is when the user enters integer 1 in txtDate)

3)When then user has entered 2 in txtdate then he should be able to add two dates into lblDate by clicking on Add Date after entering two different dates. Same case in 3 where in he can add three dates.

4) And then I can insert these dates into a table in the datebase.

Can anyone please help me in this regard?

an example with some code would be highly appreciated...

All this is regarding my job and I'm desperately in need of help.

Regards
Hardlearner
ASKER CERTIFIED SOLUTION
Avatar of TechHead
TechHead

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hardlearner
hardlearner

ASKER

Hi techHead

I am going to try the same with javascript..making it a client-side validation. Improves lil bit of performance. If I cant get thru that then I'll follow urs. Thank you

Hardlearner