Click here to Skip to main content
15,562,903 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow can get the birthday from database to dropdownlist Pin
lolostar4-May-11 16:39
lolostar4-May-11 16:39 
AnswerRe: how can get the birthday from database to dropdownlist Pin
Not Active4-May-11 16:59
mentorNot Active4-May-11 16:59 
AnswerRe: how can get the birthday from database to dropdownlist Pin
Blue_Boy4-May-11 22:07
Blue_Boy4-May-11 22:07 
GeneralRe: how can get the birthday from database to dropdownlist Pin
lolostar5-May-11 0:41
lolostar5-May-11 0:41 
GeneralRe: how can get the birthday from database to dropdownlist Pin
Blue_Boy5-May-11 0:52
Blue_Boy5-May-11 0:52 
GeneralRe: how can get the birthday from database to dropdownlist Pin
Not Active5-May-11 3:08
mentorNot Active5-May-11 3:08 
GeneralRe: how can get the birthday from database to dropdownlist Pin
Blue_Boy5-May-11 5:49
Blue_Boy5-May-11 5:49 
AnswerRe: how can get the birthday from database to dropdownlist Pin
Sneha Bisht6-May-11 0:21
Sneha Bisht6-May-11 0:21 
how I can get the birthday from column in database ( as datetime type ) and display it in a separate dropdownlist one for day and other for month and textbox for year .
I want get the information to update on it .


for that task
first you have to create two dropdownlist for day and month and fill them.

then try this code

void BIndBirthDay()
{
DateTime _bdate = DateTime.Now; -- get this date from database field
int day = _bdate.Day; -- return int value(find day of datetime field like that)
drp_day.SelectedIndex = -1;
drp_day.Items.FindByValue(Convert.ToString(day)).Selected = true; -- bind that perticulare day to dropdownlist by that


}

hope this helps and also same down for month (_bdate.Day) and year (_bdate.Year)
GeneralRe: how can get the birthday from database to dropdownlist Pin
lolostar6-May-11 1:23
lolostar6-May-11 1:23 
QuestionLog In Page in ASP.NET with User Type [modified] Pin
GAiXz4-May-11 5:18
GAiXz4-May-11 5:18 
AnswerDuplicate question Pin
thatraja4-May-11 6:26
professionalthatraja4-May-11 6:26 
AnswerRe: Log In Page in ASP.NET with User Type [modified] Pin
Sandeep Mewara4-May-11 7:32
mveSandeep Mewara4-May-11 7:32 
GeneralRe: Log In Page in ASP.NET with User Type Pin
AspDotNetDev4-May-11 7:47
protectorAspDotNetDev4-May-11 7:47 
GeneralRe: Log In Page in ASP.NET with User Type Pin
Sandeep Mewara4-May-11 7:50
mveSandeep Mewara4-May-11 7:50 
Questionhelp me in creating live video chat in asp.net...... Pin
abhijeet66564-May-11 2:29
abhijeet66564-May-11 2:29 
AnswerRe: help me in creating live video chat in asp.net...... Pin
Not Active4-May-11 3:08
mentorNot Active4-May-11 3:08 
GeneralRe: help me in creating live video chat in asp.net...... Pin
Ravi Sant4-May-11 7:04
Ravi Sant4-May-11 7:04 
GeneralRe: help me in creating live video chat in asp.net...... Pin
Not Active4-May-11 7:10
mentorNot Active4-May-11 7:10 
AnswerRe: help me in creating live video chat in asp.net...... Pin
Sandeep Mewara4-May-11 7:39
mveSandeep Mewara4-May-11 7:39 
Questionhow can i add buttonfield in gridview ? Pin
buffering833-May-11 21:58
buffering833-May-11 21:58 
AnswerRe: how can i add buttonfield in gridview ? Pin
Parwej Ahamad4-May-11 1:17
professionalParwej Ahamad4-May-11 1:17 
AnswerRe: how can i add buttonfield in gridview ? Pin
Ravi Sant5-May-11 1:31
Ravi Sant5-May-11 1:31 
Questionindex outside the bounds of the array Pin
Ramkumar_S3-May-11 16:46
Ramkumar_S3-May-11 16:46 
AnswerRe: index outside the bounds of the array Pin
Prasanta_Prince4-May-11 2:13
Prasanta_Prince4-May-11 2:13 
QuestionSearching the numeric value in a gridview Pin
amina893-May-11 1:41
amina893-May-11 1:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.