Click here to Skip to main content
15,908,444 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to get next & previous month view on button click , without using asp.net calendar control in asp.net
Posted
Updated 27-Aug-12 2:49am
v2
Comments
Kuthuparakkal 27-Aug-12 6:17am    
explain more.. what are you trying to achieve ? also provide what have you tried so far
Sandeep Mewara 27-Aug-12 7:15am    
Not clear.

1 solution

Is it a question? You should use DateTime object to find the next and previous months. Try this:
C#
int NextMonth = DateTime.Now.Month + 1;
int PreviousMonth = DateTime.Now.Month - 1;



--Amit
 
Share this answer
 
Comments
ridoy 27-Aug-12 7:48am    
simple but good..my 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900