I
IntraRELY
When I click the next or previous month in the Calendar control the Calendar
disapprears. I assume this is due to the post back. This is the expected and
needed behavior when you click a day. However, when you are changing
months, you are not selecting a date, so you have to click the Calendar
Popup link again and it will be on the previous/next, which ever you
clicked, month so you can select the date you require.
I need a way to sort through the months, w/o it closing. Any ideas?
Thanks,
Steve
------------------------------------------------------------------------
----------------------------Problem Prototype-------------------------
------------------------------------------------------------------------
<%@ Page Language="VB" %>
<script runat="server">
</script>
<head runat="server">
<script type="text/javascript">
function displayCalendarBegin(cal)
{
var datePicker = document.getElementById(cal);
datePicker.style.display = 'block';
}
</script>
<style type="text/css">
.calStyle
{
display:none;
position:absolute;
border:solid 2px black;
background-color:White;
}
</style>
<title>Calendar Test</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h3>Time Entry</h3>
<div class =calStyle ID=calBegin>
<asp:Calendar ID="calStartDateTimeBegin" runat="server"
ToolTip="Select begin date to view hours." />
</div>
<img src="App_Themes/DefaultTheme/Images/CalendarLink.jpg"
onclick="displayCalendarBegin('calBegin')" />
</div>
</form>
</body>
</html>
disapprears. I assume this is due to the post back. This is the expected and
needed behavior when you click a day. However, when you are changing
months, you are not selecting a date, so you have to click the Calendar
Popup link again and it will be on the previous/next, which ever you
clicked, month so you can select the date you require.
I need a way to sort through the months, w/o it closing. Any ideas?
Thanks,
Steve
------------------------------------------------------------------------
----------------------------Problem Prototype-------------------------
------------------------------------------------------------------------
<%@ Page Language="VB" %>
<script runat="server">
</script>
<head runat="server">
<script type="text/javascript">
function displayCalendarBegin(cal)
{
var datePicker = document.getElementById(cal);
datePicker.style.display = 'block';
}
</script>
<style type="text/css">
.calStyle
{
display:none;
position:absolute;
border:solid 2px black;
background-color:White;
}
</style>
<title>Calendar Test</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h3>Time Entry</h3>
<div class =calStyle ID=calBegin>
<asp:Calendar ID="calStartDateTimeBegin" runat="server"
ToolTip="Select begin date to view hours." />
</div>
<img src="App_Themes/DefaultTheme/Images/CalendarLink.jpg"
onclick="displayCalendarBegin('calBegin')" />
</div>
</form>
</body>
</html>