Click here to Skip to main content
15,895,370 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey i have problem in displaying date because the calender control which is there in visual studio is consuming the page size and i wanted to make it to drop down please help me
Posted

what about jQuery approach??

XML
<div id="datepicker"></div>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.17.custom.min.js")" type="text/javascript"></script>
<script  type="text/javascript">
    $(function () {
        $("#datepicker").datepicker();
    });
</script>



and do not forget to add css link:
<link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
 
Share this answer
 
Comments
Pooja Sakpal 28-Dec-12 7:28am    
Hey this code is not working its generating error
Oleksandr Kulchytskyi 28-Dec-12 7:51am    
Which errors???
I would recommend to use ASP.Net Ajax calendar control extender. This will sort out your problem. Have a look at http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Calendar/Calendar.aspx[^] to know how it works.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900