Hi Alex,
Thank you for posting.
As for the ASP.NET Calendar control, so far it is still concentrating on
server-side processing, and there hasn't pure client-side based interfaces
to let us manipulate it at client-side(like AJAX ...). Also for your
scenario, you want to populate a textbox with date value supplied in
Calendar control, generally we will need to use two separate pages to do
it. One page is the main page which contains the textbox, and another is a
page contains the Calendar and this page will be opened as a popup page to
let user select Date. Here is a web article which has mentioned this
approach:
http://www.mikepope.com/blog/DisplayBlog.aspx?permalink=501&count=no
Also, based on my review on the article, there is one place we need to
change. Since the Calendar control will still postback when selected Date
changes, we need to use server code to embeded the new selected value into
client script. e.g:
==============
<script language=javascript>
window.opener.document.all[control].value = '<%=
Calendar1.SelectedDate.ToString()%>'
window.close();
</script>
==============
BTW, if you do need pure client-side based approaches, there exists some
3rd party calendar or web based DateTimePicker controls available. You can
try searching in the
www.asp.net or codeproject ...
Hope this helps.
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)