Zhi-QiangNi's tech blog--AJAX's paradise
I'm working at the Microsoft IBS DevDiv Community Support Team, in charge of the customer service of ASP/AJAX forum. Welcome to my blog and AJAX forum, anyone interested in ASP.Net Ajax can discuss it with me. :-)

Preface

Everytime we want to display the CalendarExtender at the client side, we need to use this code:

Code

 

Text

How can we change the location of the Calendar as we wish?

Here is the solution:

Code

 

Comment

The cal_popupDiv document is the popup div of Calendar "cal", it can also be find by using

Code

Or

Code

We need to check if it is null before using it.

Note

Note that I set the Calendar’s popup position as the Mouse’s offset position and it can only be used in IE, you can change it as your wish.

The related thread url:http://forums.asp.net/t/1373908.aspx

posted on 2009-01-27 10:44  Zhi-Qiang Ni  阅读(1459)  评论(2)    收藏  举报