From: sindhoor on 7 Oct 2009 10:57 hope this works for you. <asp:TextBox ID="txtDate" runat="server" ></asp:TextBox> <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" Format="MM/dd/yyyy" OnClientShowing="showDate" > </cc1:CalendarExtender> <script type="text/javascript" language="javascript"> function showDate(sender,args) { if(sender._textbox.get_element().value == "") { var todayDate = new Date(); sender._selectedDate = todayDate; } } mohaaro wrote: CalendarExtender.SelectedDate without populating text box 15-Dec-07 Does anyone know how to select the current date without the associated text box being populated with the date? EggHeadCafe - Software Developer Portal of Choice C# Mutipart MIME Encoding Library using CDO http://www.eggheadcafe.com/tutorials/aspnet/74032d0b-6662-4b82-acc0-6623da269eb5/c-mutipart-mime-encoding.aspx
|
Pages: 1 Prev: GridView - problem with paging Next: CalendarExtender.SelectedDate without populating text box |