Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello sir,

I m working on asp.net application in which i am working on calender control. i have taken two view in a multiview .calender is shown on one view but it is not displaying on another view.please help me.I have use javascript to take the calender control.....

thanks in advance
Posted
Comments
zan0701 6-Apr-11 4:47am    
Can you be more clear from where you are changing the view? I mean using javascript or from code behind? It seems to me that it is something related to postback only.
Anuj kumar jain 6-Apr-11 4:54am    
sir i am changing the view from code behind.....by default view 1 is open & calender control is shown but when we come to view 1 from the view 2 ,then problem occurs.........

thanks in advance
Albin Abel 6-Apr-11 14:48pm    
You supposed to have the calender control on both views. Control in one view will not be display in the other view automatically. Else in code behind you need to get the control in view 1 and add to view 2.
LakshmiNarayana Nalluri 2-May-11 5:18am    
how can you navigate from view1 to view2

1 solution

hi.
you use the ajax calender control use the this code for the .aspx page
ASP.NET
<![CDATA[<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<body>
<asp:textbox id="txtDate" runat="server" height="21px" width="177px" Style="text-align: left" autocomplete="off"</asp:textbox>
                                                                        <cc1:calendarextender id="CalendarExtender2"  runat="server" enabled="True" targetcontrolid="txtDate" Format="yyyy-MM-dd">
                                                                        </cc1:calendarextender>
</body>
 
Share this answer
 
v2

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