Click here to Skip to main content
15,888,271 members
Home / Discussions / Database
   

Database

 
Questionwhat is the database connectivity Pin
mmmickyyy24-Mar-13 3:35
mmmickyyy24-Mar-13 3:35 
AnswerRe: what is the database connectivity Pin
Sandeep Mewara24-Mar-13 5:45
mveSandeep Mewara24-Mar-13 5:45 
AnswerRe: what is the database connectivity Pin
Maciej Los24-Mar-13 7:26
mveMaciej Los24-Mar-13 7:26 
Questiondisplay booked dates in red color in calender Pin
Member 870181324-Mar-13 3:07
Member 870181324-Mar-13 3:07 
AnswerRe: display booked dates in red color in calender Pin
Pallavi Waikar24-Mar-13 4:34
Pallavi Waikar24-Mar-13 4:34 
GeneralRe: display booked dates in red color in calender Pin
Member 870181325-Mar-13 7:58
Member 870181325-Mar-13 7:58 
GeneralRe: display booked dates in red color in calender Pin
Pallavi Waikar25-Mar-13 17:50
Pallavi Waikar25-Mar-13 17:50 
GeneralRe: display booked dates in red color in calender Pin
Member 870181325-Mar-13 20:58
Member 870181325-Mar-13 20:58 
now i have been instructed to use textboxes...
now i am using the following code
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{if (e.Day.Date < DateTime.Today)
{

e.Day.IsSelectable = false;
e.Cell.ForeColor = System.Drawing.Color.Gray;
}
else
{
e.Cell.ForeColor = System.Drawing.Color.Green;
}
if (e.Day.Date >= FromDate && e.Day.Date <= ToDate)
{
e.Cell.ForeColor = System.Drawing.Color.Red;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
FromDate = DateTime.ParseExact(txtFrom.Text, "dd/MM/yyyy", CultureInfo.InvariantCulture);
ToDate = DateTime.ParseExact(txtTo.Text, "dd/MM/yyyy", CultureInfo.InvariantCulture);
}
when i run the application the dates which user enters are appearing in red color in calender...but the pbm i am facing is i vil stop running the application & once again re-run application...this time user entered dates are not in red color....they are in green color. the same pbm i faced when i was using dropdownlist....even now also, the same issue i am getting...even when i stop & rerun the application user entered dates should appear in red color...by seeing red color in calender user comes to know that those dates are already booked...so he vil enter other dates..when the user clicks on calender image ,all past dates shoud be disabled....and booked dates in red color and rest of the dates in green color...at the bottom of the page indication is given to user that gray colored dates are not selectable,red colored dates are already booked and green colored dates are available for booking....this is the concept i am using...pls guide me how to solve my issue....
GeneralRe: display booked dates in red color in calender Pin
Pallavi Waikar25-Mar-13 22:01
Pallavi Waikar25-Mar-13 22:01 
QuestionDB Desing Check Pin
hamid-shrk23-Mar-13 22:40
hamid-shrk23-Mar-13 22:40 
AnswerRe: DB Desing Check Pin
Jörgen Andersson24-Mar-13 0:47
professionalJörgen Andersson24-Mar-13 0:47 
AnswerRe: DB Desing Check Pin
Mycroft Holmes24-Mar-13 2:19
professionalMycroft Holmes24-Mar-13 2:19 
AnswerRe: DB Desing Check Pin
Richard MacCutchan24-Mar-13 2:29
mveRichard MacCutchan24-Mar-13 2:29 
QuestionSSRS Pin
engine123-Mar-13 1:35
engine123-Mar-13 1:35 
AnswerRe: SSRS Pin
Richard MacCutchan23-Mar-13 1:37
mveRichard MacCutchan23-Mar-13 1:37 
Questiontwo phase commit in sql Pin
Soiraian22-Mar-13 23:22
Soiraian22-Mar-13 23:22 
AnswerRe: two phase commit in sql Pin
Mycroft Holmes23-Mar-13 13:36
professionalMycroft Holmes23-Mar-13 13:36 
QuestionOLAP cube question (a) Edit Dimension and (b) Delete Partitiion Pin
devvvy21-Mar-13 16:07
devvvy21-Mar-13 16:07 
QuestionWant a query for for finding total number of non defected items. Pin
VishwaKL19-Mar-13 23:07
VishwaKL19-Mar-13 23:07 
AnswerRe: Want a query for for finding total number of non defected items. Pin
Corporal Agarn20-Mar-13 1:03
professionalCorporal Agarn20-Mar-13 1:03 
GeneralRe: Want a query for for finding total number of non defected items. Pin
VishwaKL20-Mar-13 18:05
VishwaKL20-Mar-13 18:05 
GeneralRe: Want a query for for finding total number of non defected items. Pin
Mycroft Holmes20-Mar-13 18:58
professionalMycroft Holmes20-Mar-13 18:58 
QuestionMS Sql normalization Pin
Per Söderlund19-Mar-13 21:40
Per Söderlund19-Mar-13 21:40 
AnswerRe: MS Sql normalization Pin
Jörgen Andersson20-Mar-13 0:14
professionalJörgen Andersson20-Mar-13 0:14 
GeneralRe: MS Sql normalization Pin
Per Söderlund20-Mar-13 0:20
Per Söderlund20-Mar-13 0:20 

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.