Not able to fire selectionChanged event of Calendar Control in ASP.NET 2.0

Last post 06-23-2009 10:07 AM by chintanpshah. 2 replies.

Sort Posts:

  • Not able to fire selectionChanged event of Calendar Control in ASP.NET 2.0

    06-23-2009, 9:18 AM
    • Member
      point Member
    • callnitin_kr
    • Member since 06-23-2009, 1:06 PM
    • Posts 1

    Hi all,
           I am using calendar control of asp.net inside the formview control. I have to put selected value of the calendar control in a textbox. But I am not able to get selectionchanged event of the calendar control in code behind.
          If any one of you can help, Please help me.

    Nitin Kumar

        

    Nitin Kumar
    Web Developer (.net)
  • Re: Not able to fire selectionChanged event of Calendar Control in ASP.NET 2.0

    06-23-2009, 9:59 AM
    • Contributor
      5,138 point Contributor
    • papabear
    • Member since 08-08-2005, 3:49 PM
    • Posts 851

     Are you using the Calendar control of Ajax? -> http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx? If not, I would strongly encourage using it as it will also keep you entire page from reposting (something I always hated about the original Calendar control).

    If you are, I would suggest using fiddler -> http://www.fiddler2.com to take a look at the callback and see what problem it is triggering.

    hope this helps,

    m

    give me suggestions for what to blog... http://www.myfriedmind.com/techblog -> thx

    Mark as "Answered" if this solves that wee old problem...
  • Re: Not able to fire selectionChanged event of Calendar Control in ASP.NET 2.0

    06-23-2009, 10:07 AM
    • Star
      9,833 point Star
    • chintanpshah
    • Member since 11-19-2008, 5:39 AM
    • Ahmedabad
    • Posts 1,765

    Write like this in FormView Control:

    <asp:Calendar ID="Calendar1" runat="server" OnSelectionChanged="Calendar1_SelectionChanged"></asp:Calendar>

    Hope this helps...

    Don't forget to mark as answer, if it helps
Page 1 of 1 (3 items)