Hi, Could anyone please tell me how can i display datepicker when i click textbox or button and i want the date to be in textbox.
could any one give me code to do thhis? i have master page in my project
Thanks for any assistance
Have a look at the ASP.NETAJAX Calendar control.
Hi Tweety,
If you want use CalendarExtender, please download theAjax Control Toolkit. And some pretty samples are contained inside the package.
I hope this help.
Best regards,
Jonathan
Hi. thanks for both of you
im using ajax calender tool kit, jus searchin for good design(i mean css) to apply.
if u have any please suggest me.
thanks again
It really depends on your application as to what style to apply, but if you read thecalender page (specifically the theming section) it will show you how you can customize it to suit your application.
<asp:TextBoxID="TextBox5"runat="server"Width="120px"CssClass="textile"></asp:TextBox></td>
<cc1:CalendarExtenderrunat=serverTargetControlID=textbox5Format="dd/MM/yyyy">
</cc1:CalendarExtender>
im using this code.i have a pblm here once i selected date my date appears in textbox but the calender still can able to see until i clik some where on the page...
why like this?
That's how the control has been built. View thecalendar page for 3 different examples on how it behaves.
Hi Tweety,
If you want to hide the Calendar immediately after we selected a date, you should add thisOnClientDateSelectionChanged="function hideCalendar(cb) { cb.hide(); }" to your source code. OnClientDateSelectionChanged is one property of the CalendarExtendar.
Hope this helps.
Best regards,
Jonathan
Hi thanks but once a date is selected calender hide , but when i reclick the textbox it wont appears...
did i need to quote another javascript here to make calender visible when i click textbox after date selection?
Its fixed...thanks.
http://forums.asp.net/t/1067091.aspx?PageIndex=2
i found my soluntion here..
thanks for everyone.
forums.asp.net ROCKS!!!!
No comments:
Post a Comment