G'day guys, I just happened to notice this bug in the system I have built and have been maintaining.... This only happens in the pop-up panels that is used to insert data into the system. The key snippets of the code are included below... <%@ Page Language="VB"
AutoEventWireup="false" CodeFile="SalaryClasses.aspx.vb" Inherits="FormData_SalaryClasses" EnableEventValidation="false" StylesheetTheme="Theme" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" > <head id="Head1" runat="server"> ... <body> <form id="form1" runat="server"> <div> ... <asp:Panel ID="pnlSalaryClassPopUp" CssClass="modalPopup" Style="display:none" runat="server" Height="380px" Width="640px"><asp:UpdatePanel ID="updpnlSalClassInsert" runat="server" EnableViewState="False" ChildrenAsTriggers="False" UpdateMode="Conditional" ViewStateMode="Disabled"> <ContentTemplate> ... <asp:TextBox ID="txtCurrentAsAt" runat="server" Width="250px" AutoPostBack="false"
ReadOnly="false"> </asp:TextBox> <ajax:MaskedEditExtender ID="MEEtxtCurrentAsAt" TargetControlID="txtCurrentAsAt" runat="server" MaskType="Date" Mask="99/99/9999"> </ajax:MaskedEditExtender> <ajax:CalendarExtender ID="CEtxtCurrentAsAt" runat="server" TargetControlID="txtCurrentAsAt"
Animated="true" Format="dd/MM/yyyy" FirstDayOfWeek="Monday"> </ajax:CalendarExtender> The problem as i've noticed today is that any time I select the date from the pop-up calender and then change focus to any other field on the form...the text box loses it's
selected value. BUT if I was to type the date in manually, on chaing of focus the date still remains... On the other hand I manually type the date, then over-write it by selecting a date from the pop-up....on losing focus, the date reverts to the date that
was manually entered... Any help on this issue would be appreciated... Worst case would me to remove the calender extender and just stick with manual entry with the masked edit extender to maintain data integrity. Regards, Phil
↧