Click here to Skip to main content
15,861,168 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Difference between postbackurl and response.redirect Pin
Christian Graus8-Nov-09 17:52
protectorChristian Graus8-Nov-09 17:52 
AnswerRe: Difference between postbackurl and response.redirect Pin
April Fans9-Nov-09 21:22
April Fans9-Nov-09 21:22 
QuestionFireFox Problem!! Pin
Sr...Frank8-Nov-09 10:17
Sr...Frank8-Nov-09 10:17 
AnswerRe: FireFox Problem!! Pin
Abhishek Sur8-Nov-09 11:20
professionalAbhishek Sur8-Nov-09 11:20 
AnswerRe: FireFox Problem!! Pin
Kannan Ar8-Nov-09 15:46
professionalKannan Ar8-Nov-09 15:46 
QuestionHaving Multiple Gridviews Pin
AndyASPVB8-Nov-09 5:20
AndyASPVB8-Nov-09 5:20 
AnswerRe: Having Multiple Gridviews Pin
Gamzun8-Nov-09 5:46
Gamzun8-Nov-09 5:46 
QuestionHow to set a range to a Calender? Solved [modified] Pin
alaminfad7-Nov-09 21:36
alaminfad7-Nov-09 21: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 21:57
professionalAbhishek Sur7-Nov-09 21:57 
GeneralRe: How to set a range to a Calender? Pin
alaminfad8-Nov-09 20:19
alaminfad8-Nov-09 20:19 
GeneralRe: How to set a range to a Calender? Pin
Abhishek Sur8-Nov-09 21:17
professionalAbhishek Sur8-Nov-09 21:17 
AnswerRe: How to set a range to a Calender? Pin
Christian Graus7-Nov-09 22:19
protectorChristian Graus7-Nov-09 22:19 
GeneralRe: How to set a range to a Calender? Pin
alaminfad8-Nov-09 20:24
alaminfad8-Nov-09 20:24 
QuestionData Inser Update with Gridview and Business objects Pin
mmdullah7-Nov-09 17:41
mmdullah7-Nov-09 17:41 
AnswerRe: Data Inser Update with Gridview and Business objects Pin
Abhijit Jana7-Nov-09 17:47
professionalAbhijit Jana7-Nov-09 17:47 
Questionswf files have not shown in my sites Pin
mehran.asg7-Nov-09 9:31
mehran.asg7-Nov-09 9:31 
AnswerRe: swf files have not shown in my sites Pin
Christian Graus7-Nov-09 10:17
protectorChristian Graus7-Nov-09 10:17 
GeneralRe: swf files have not shown in my sites Pin
mehran.asg7-Nov-09 18:37
mehran.asg7-Nov-09 18:37 
AnswerRe: swf files have not shown in my sites Pin
Abhishek Sur7-Nov-09 10:19
professionalAbhishek Sur7-Nov-09 10:19 
AnswerRe: swf files have not shown in my sites Pin
Abhijit Jana7-Nov-09 16:32
professionalAbhijit Jana7-Nov-09 16:32 
Questionsoftware development Pin
mnemonic697-Nov-09 5:46
mnemonic697-Nov-09 5:46 
AnswerRe: software development Pin
Abhijit Jana7-Nov-09 5:58
professionalAbhijit Jana7-Nov-09 5:58 
AnswerRe: software development Pin
Abhishek Sur7-Nov-09 5:59
professionalAbhishek Sur7-Nov-09 5:59 
AnswerRe: software development Pin
N a v a n e e t h7-Nov-09 8:11
N a v a n e e t h7-Nov-09 8:11 
AnswerRe: software development Pin
Christian Graus7-Nov-09 8:58
protectorChristian Graus7-Nov-09 8: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.