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
Nur Fasiha
NA
4
0
C#: Month field not displaying
Jan 11 2010 8:43 PM
Hi. I need some C# expert help.
I have the DOB dropdown and I already got the Day and Year field out to display but not the month. Is there any ways that you could help?
Here are my codes:
int col = 0;
arrDOB = new ArrayList();
DateTime dob = Convert.ToDateTime(varDOB);
if (varDOB != "")
{
if (col == 0)
{
//Populates the day
ddlDay.Items.FindByValue(Convert.ToString(dob.Day)).Selected = true;
arrDOB.Add(dob.Day);
}
else if (col == 1)
{
//Populates the month
ddlMonth.SelectedValue = dob.Month.ToString();
// ddlMonth.Items.FindByValue(Convert.ToString(dob.Month)).Selected = true;
arrDOB.Add(dob.Month);
// ddlMonth.Visible = true;
}
//Populates the year
ddlYear.Items.FindByValue(Convert.ToString(dob.Year)).Selected = true;
arrDOB.Add(dob.Year);
}
Thanks. :))
Reply
Answers (
2
)
Can html table be directly added to a pdf
C#.net/profile URL/