TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
muthukumar
NA
0
101.7k
display in label
Dec 4 2013 2:37 AM
public int Age(DateTime dt)
{
DateTime today = DateTime.Today;
int age = today.Year - dt.Year;
if (dt > today.AddYears(-age))
age--;
return age;
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
int age = Age(Convert.ToDateTime(TextBox1.Text));
Response.Write("Age:"+age);
}
}
here i want to display a returned age in label and also store in storedprocedure
i want query and code to display in label
thanks
Reply
Answers (
1
)
How to get checked items from dynamically created checkbox
Get Picturebox File Name