Click here to Skip to main content
16,020,343 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi
i am using ASP.NET calender which read events & appointments from database. i create hyperlinks dynamically for each event. when i click hyperlink i send eventid with querystring to same page , and in pageload i read the eventid and select the details of event and put it on asp:label. this is working fine, but when i go to next month and click other hyperlink the details is coming but the calender goes back to previous month automatically. how to prevent the calender from back to prev month.


thank you
Posted
Comments
Parwej Ahamad 9-Jul-11 16:06pm    
Are you setting selected event date to Calender control too?

1 solution

You didn't share the code.

VisibleDate[^] property specifies the month to display on the Calendar. Also take a look at the Calendar Class[^] which contains many examples about everything related to calender control.
Also I found this one in CP. Event Calendar [ ASP.NET 2.0 / C# ][^]
 
Share this answer
 
Comments
RaviRanjanKr 10-Jul-11 0:50am    
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