Click here to Skip to main content
15,501,351 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Difference between postbackurl and response.redirect Pin
Christian Graus8-Nov-09 18:52
mveChristian Graus8-Nov-09 18:52 
AnswerRe: Difference between postbackurl and response.redirect Pin
April Fans9-Nov-09 22:22
MemberApril Fans9-Nov-09 22:22 
QuestionFireFox Problem!! Pin
Sr...Frank8-Nov-09 11:17
MemberSr...Frank8-Nov-09 11:17 
AnswerRe: FireFox Problem!! Pin
Abhishek Sur8-Nov-09 12:20
professionalAbhishek Sur8-Nov-09 12:20 
AnswerRe: FireFox Problem!! Pin
Kannan Ar8-Nov-09 16:46
professionalKannan Ar8-Nov-09 16:46 
QuestionHaving Multiple Gridviews Pin
AndyASPVB8-Nov-09 6:20
MemberAndyASPVB8-Nov-09 6:20 
AnswerRe: Having Multiple Gridviews Pin
Gamzun8-Nov-09 6:46
MemberGamzun8-Nov-09 6:46 
QuestionHow to set a range to a Calender? Solved [modified] Pin
alaminfad7-Nov-09 22:36
Memberalaminfad7-Nov-09 22:36 
Hello all , i've a calender that i want the user to navigate through a particular period of time ,for instance he has to apply for a vacation 3 days in advance ,and can only apply for a vacation in this year , so the calender range should be from NOW +3 days to NOW + an year this is the code and the calender doesnt comply to it why? how to fix it?



Protected Sub ddlVacationTypes_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlVacationTypes.SelectedIndexChanged



Dim startDate As DateTime = Convert.ToDateTime(Now.ToShortDateString)
Select Case ddlVacationTypes.SelectedIndex
Case 0, 2, 3
startDate = startDate.AddMonths(1)

Case 1
startDate = startDate.AddDays(3)

End Select


Dim endDate As DateTime = startDate.AddYears(1)
Dim dateSpan As TimeSpan = endDate.Date - startDate.Date
Calendar1.SelectedDates.Clear()
Dim i As Integer = 0

For i = 1 To dateSpan.Days
Calendar1.SelectedDates.Add(startDate.AddDays(i))
Next

End Sub

modified on Monday, November 9, 2009 2:23 AM

AnswerRe: How to set a range to a Calender? Pin
Abhishek Sur7-Nov-09 22:57
professionalAbhishek Sur7-Nov-09 22:57 
GeneralRe: How to set a range to a Calender? Pin
alaminfad8-Nov-09 21:19
Memberalaminfad8-Nov-09 21:19 
GeneralRe: How to set a range to a Calender? Pin
Abhishek Sur8-Nov-09 22:17
professionalAbhishek Sur8-Nov-09 22:17 
AnswerRe: How to set a range to a Calender? Pin
Christian Graus7-Nov-09 23:19
mveChristian Graus7-Nov-09 23:19 
GeneralRe: How to set a range to a Calender? Pin
alaminfad8-Nov-09 21:24
Memberalaminfad8-Nov-09 21:24 
QuestionData Inser Update with Gridview and Business objects Pin
mmdullah7-Nov-09 18:41
Membermmdullah7-Nov-09 18:41 
AnswerRe: Data Inser Update with Gridview and Business objects Pin
Abhijit Jana7-Nov-09 18:47
professionalAbhijit Jana7-Nov-09 18:47 
Questionswf files have not shown in my sites Pin
mehran.asg7-Nov-09 10:31
Membermehran.asg7-Nov-09 10:31 
AnswerRe: swf files have not shown in my sites Pin
Christian Graus7-Nov-09 11:17
mveChristian Graus7-Nov-09 11:17 
GeneralRe: swf files have not shown in my sites Pin
mehran.asg7-Nov-09 19:37
Membermehran.asg7-Nov-09 19:37 
AnswerRe: swf files have not shown in my sites Pin
Abhishek Sur7-Nov-09 11:19
professionalAbhishek Sur7-Nov-09 11:19 
AnswerRe: swf files have not shown in my sites Pin
Abhijit Jana7-Nov-09 17:32
professionalAbhijit Jana7-Nov-09 17:32 
Questionsoftware development Pin
mnemonic697-Nov-09 6:46
Membermnemonic697-Nov-09 6:46 
AnswerRe: software development Pin
Abhijit Jana7-Nov-09 6:58
professionalAbhijit Jana7-Nov-09 6:58 
AnswerRe: software development Pin
Abhishek Sur7-Nov-09 6:59
professionalAbhishek Sur7-Nov-09 6:59 
AnswerRe: software development Pin
N a v a n e e t h7-Nov-09 9:11
MemberN a v a n e e t h7-Nov-09 9:11 
AnswerRe: software development Pin
Christian Graus7-Nov-09 9:58
mveChristian Graus7-Nov-09 9:58 

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.