2
Answers

how to insert label value in database

Mubarak Khan

Mubarak Khan

7y
224
1
hii
 everyone anyone help me please how to insert label values in database
 
 
like i select date of birth from datepicker using jquery after age calculated in year in the next label control i want to save that age and date of birth both in database using stored proc 
Answers (2)
0
Dharmraj Thakur

Dharmraj Thakur

NA 4.1k 61.7k 7y
If you are using jquery then you can read that label like this...
If lable looking like:
<label id="ageLabel">32</label>
Then you jquery code should be:
$("#ageLabel").val();
If you want more help... Please attach runnable project
0
Ramesh Palanivel

Ramesh Palanivel

NA 9.5k 138.6k 7y
Hi Mubarak,
 
You can achieve this in two way , one is using asp.net control and another one is using jquery
 
to get the lable text in asp.net code , you just get the "lable1.text"  it will retrieve the value from ur lable control.
 
Either you can post the lable text using ajax method.