Hi,
I have a asp:button that calls the shopPopup() method of the datetimepicker as below.
Although this visibly works, the popup is only momentarily displayed before becoming hidden. This is so fast that it looks like a flicker. I presume this is something to do with the postback from the page when the button is pressed resetting the datetimepicker but I am unsure of how to fix it.
If anyone can help it would be very welcome.
I have a asp:button that calls the shopPopup() method of the datetimepicker as below.
Although this visibly works, the popup is only momentarily displayed before becoming hidden. This is so fast that it looks like a flicker. I presume this is something to do with the postback from the page when the button is pressed resetting the datetimepicker but I am unsure of how to fix it.
If anyone can help it would be very welcome.
<script type="text/javascript"> |
function ShowPopup() |
{ |
var datetimepicker = $find("<%= txtcalMeetingDate.ClientID %>"); |
datetimepicker.showPopup(); // Show Calendar popup |
} |
</script> |
<asp:button runat = "server" name= "View Calendar" id = "CalendarPopup1" visible = "false" />
and in code-behind:
CalendarPopup1.Attributes.Add(
"onClick", "ShowPopup();");