Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

calendar Extender with textbox readonly

$
0
0
 i'm trying to not allow users to type anything in the textbox, but only be filled by the calendar extender
<asp:TextBox ID="txt_due_date" runat="server" ReadOnly="true"></asp:TextBox>
<asp:ImageButton ID="img_calendar" runat="server" CausesValidation="False" ImageUrl="app_images/Calendar.png" />
<cc1:CalendarExtender ID="img_calendar_CalendarExtender" runat="server" TargetControlID="txt_due_date"
Format="MMMM d, yyyy" PopupButtonID="img_calendar">
                                                                        </cc1:CalendarExtender>
the code works, but when i retrieve the value in code behind, its always null 

Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>