Welcome Guest Search | Active Topics | Sign In | Register

Datepicker return same default value problem Options
Terrence
Posted: Tuesday, July 27, 2010 2:07:42 AM
Rank: Member
Groups: Member

Joined: 6/23/2010
Posts: 18

Hi,

I have created a user control to contain the EO menu which I used to control the menu items return from my database based on different user permissions. It works beautifully. Howevee, I noticed pages where I have deployed EO datepicker is now behaved differently. I can change the date in the datepicker but when the page is posed, it reverts back to the default date regardless. I also noticed that, after I included the menu user control in the page, the datepicker is not firing the selectionchange event.

Terry
eo_support
Posted: Tuesday, July 27, 2010 9:09:38 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We can't think of anything that can cause that. Can you try to isolate the problem into a test project? Once you have the test project, we will try to run it here and see what we can find.

Thanks!
Terrence
Posted: Tuesday, July 27, 2010 3:55:10 PM
Rank: Member
Groups: Member

Joined: 6/23/2010
Posts: 18
Here is the isolated project. I have even stripped out the menu control now but the date picker still only returns the default date.


<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="GTHLPortal.WebForm1"%>
<%@ Register TagPrefix="eo" Namespace="EO.Web" Assembly="EO.Web" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<TABLE class="noprint" id="TABLE01" cellSpacing="0" cellPadding="0" width="800" border="0">
</TABLE>
Date Selected:
<asp:textbox id="TextBox1" runat="server"></asp:textbox>

<eo:datepicker id="DatePicker1" style="Z-INDEX: 101; LEFT: 278px; POSITION: absolute; TOP: 115px"
runat="server" TitleRightArrowDownImageUrl="00040104" WeekSelectorVisible="True" DayHeaderFormat="Short" MonthSelectorVisible="True" TitleLeftArrowDownImageUrl="00040103"
DayCellHeight="16" TitleRightArrowImageUrl="00040102" TitleLeftArrowImageUrl="00040101" ControlSkinID="None" VisibleDate="1-jan-1990" DayCellWidth="22"
PickerFormat="dd-MMM-yyyy">
<SelectedDayStyle CssText="FONT-SIZE: 8pt; FONT-FAMILY: Tahoma; background-image:url('00040105');color:white;"></SelectedDayStyle>
<DayHoverStyle CssText="FONT-SIZE: 8pt; FONT-FAMILY: Tahoma; text-decoration:underline"></DayHoverStyle>
<TodayStyle CssText="background-image:url('00040106');"></TodayStyle>
<MonthStyle CssText="MARGIN: 0px 4px; cursor:hand"></MonthStyle>
<DisabledDayStyle CssText="FONT-SIZE: 8pt; FONT-FAMILY: Tahoma; COLOR: gray"></DisabledDayStyle>
<DayHeaderStyle CssText="FONT-SIZE: 11px; COLOR: #0054e3; BORDER-BOTTOM: black 1px solid; FONT-FAMILY: Tahoma"></DayHeaderStyle>
<CalendarStyle CssText="border-bottom-color:Black;border-bottom-style:solid;border-bottom-width:1px;border-left-color:Black;border-left-style:solid;border-left-width:1px;border-right-color:Black;border-right-style:solid;border-right-width:1px;border-top-color:Black;border-top-style:solid;border-top-width:1px;padding-bottom:5px;padding-left:5px;padding-right:5px;padding-top:5px;background-color:white"></CalendarStyle>
<DayStyle CssText="FONT-SIZE: 8pt; FONT-FAMILY: Tahoma; text-decoration:none"></DayStyle>
<FooterTemplate>
<div style="FONT-WEIGHT: bold; FONT-SIZE: 11px; FONT-FAMILY: Tahoma&quot;">
<img src="{img:00040106}"> Today: {var:today:dd-MMM-yyyy}
</div>
</FooterTemplate>
<TitleStyle CssText="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; FONT-WEIGHT: bold; FONT-SIZE: 8pt; PADDING-BOTTOM: 3px; COLOR: white; PADDING-TOP: 3px; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #0054e3"></TitleStyle>
</eo:datepicker></form>
</body>
</HTML>


Code Behind


#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub

'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()

End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not IsPostBack Then
DatePicker1.AllowMultiSelect = False
DatePicker1.AutoPostbackOnSelect = True
DatePicker1.SelectedDate = Now()
Else
TextBox1.Text = Format(DatePicker1.SelectedDate, "dd-MMM-yyyy")
End If
End Sub

Private Sub DatePicker1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DatePicker1.SelectionChanged
TextBox1.Text = dpFrom.SelectedDate
End Sub

End Class


eo_support
Posted: Tuesday, July 27, 2010 4:24:55 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We tested your code on the latest version and it works fine. We did have to change "dpFrom" to "DatePicker1" in your SelectionChanged handler in order for the code to compile. If you still have problem, you can create a test project with only the code needed and send it to us. We will PM you as to where to send.

Thanks!

Terrence
Posted: Tuesday, July 27, 2010 4:42:17 PM
Rank: Member
Groups: Member

Joined: 6/23/2010
Posts: 18

Yes, I forgot to change the dp name in the selectionchange event. But it doesn't matter as the system does not invoke the event when I trace it. I might be using the 2009 version. Is there anyway from the dll that I can tell if it is 2010 or 2009? Thanks.
eo_support
Posted: Tuesday, July 27, 2010 4:49:26 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Terrence
Posted: Tuesday, July 27, 2010 11:16:58 PM
Rank: Member
Groups: Member

Joined: 6/23/2010
Posts: 18

I reverted the DLL back to the 2009 version and the datepicker works with my menu user control now. That might mean a possible bug in the 2010 version for .net 1.1

We are planning to upgrade to .net 2.0/3.x later on this year so we will try the 2010 version again when that's done.
Terrence
Posted: Tuesday, July 27, 2010 11:39:04 PM
Rank: Member
Groups: Member

Joined: 6/23/2010
Posts: 18

Now that I have switched back to 2009 DLL I also need to reinstall EO Web in our development server. However, the only version that's available for download is 2010. Is there another location where I can download the 2009 installation file?

Thanks.
eo_support
Posted: Wednesday, July 28, 2010 8:54:43 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please see your private message for download location.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.