Date Navigation buttons

2 posts, 0 answers
  1. Jorge
    Jorge avatar
    11 posts
    Member since:
    Jul 2011

    Posted 06 Sep 2012 Link to this post


    How can I get the next or previous Date when i push the the Navigation button in code behind?
    It's possible?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 07 Sep 2012 Link to this post

    Hi Jorge,

    Here is the sample code that I tried based on your scenario.

    <script type="text/javascript">
     function OnCalendarViewChanged(sender, args)
      __doPostBack("Button1", sender.get_focusedDate());

    protected void Page_Load(object sender, EventArgs e)
     if (Request["__EVENTTARGET"] == "Button1")
      string Date = Request["__EVENTARGUMENT"];

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top