Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

CalendarExtender is ressetting their value when postback

$
0
0

Hello there.

I have a CalendarExtender in my form and im setting a value to on page.load event. Like this;

If Not IsPostBack Then
    CalendarExtender1.SelectedDate = Today
End If

When i postback the form with another control (a button or combobox, etc.) calendarextender resets their value to their first value.

I searched forum and found gread solution. If i set calendarExtender's EnableViewState to False, everything works fine but there is another problem comes. I cannot set their first value to write it's textbox. It's not working.

I want to set it's value to a date and preserve it's value when postback.

Is this possible for this beautiful control?

Thanks all.


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>