Calendar control

  • Thread starter Thread starter jorge
  • Start date Start date
J

jorge

Hi all,
Can I get the calendar not to autopostback om choosing a
date, it's alright when changing months but not on
choosing dates.

Also, is there a way to disable all dates before
the 'tomorrow' date?

Thanks,
/ jorge
 
Each date on the calendar is a hyperlink the puts in a call to a client-side
JavaScript function called __doPostBack(), which causes a postback. This is
the default behavior and works without you needing to do anything.
 
I want it to NOT postback. Tnx.
/ jorge

Scott M. said:
Each date on the calendar is a hyperlink the puts in a call to a client-side
JavaScript function called __doPostBack(), which causes a postback. This is
the default behavior and works without you needing to do anything.
 
This is not possible with the built in Calendar control. You should look for a Javascript based calendar control. I've built a Calendar Popup control...its completely driven via Javascript. Give it a look: http://www.eworldui.net/CustomControls/CalendarPopup.aspx

Matt Hawley, MCAD .NET
http://www.eworldui.net

I want it to NOT postback. Tnx.
/ jorge

Scott M. said:
Each date on the calendar is a hyperlink the puts in a call to a client-side
JavaScript function called __doPostBack(), which causes a postback. This is
the default behavior and works without you needing to do anything.



[microsoft.public.dotnet.framework.aspnet]
 
I understand, but my point was to inform you that the calendar control has
postback built into it and unlike many other server controls, it can't be
turned off.
 
Back
Top