SaraDob
asked on
The parent Window/page Moves , when clicked on a calendar control
Hi All,
I have an aspx page, which has several textboxes, which has calendar icon next to it.When the user clicks on the icon, a little calendar control appears, just like the travel site.
But when the User clicks the icon, the parent window, moves up, taking the calendar control to the top of the page.The user has to scrool down to select the next textbox.
I want the calendar control to float next to the textbox, which calls it and The parent window to stop moving up.
Here is how i call my calendar.I tried setting the "top", It get to that point, but still parent window moves.
I have an aspx page, which has several textboxes, which has calendar icon next to it.When the user clicks on the icon, a little calendar control appears, just like the travel site.
But when the User clicks the icon, the parent window, moves up, taking the calendar control to the top of the page.The user has to scrool down to select the next textbox.
I want the calendar control to float next to the textbox, which calls it and The parent window to stop moving up.
Here is how i call my calendar.I tried setting the "top", It get to that point, but still parent window moves.
<asp:TextBox ID="txtStDate1" runat="server" onfocus="this.blur();"></asp:TextBox>
<% Dim clickHandlerStart1 As String = String.Format("calendar_window=window.open('Controls/Calendar.aspx?textbox={0}','calendar_window','width=235,height=218,top=300,left=200,scrollbars=no,status=no,minimize=no,resizable=no);calendar_window.focus()", txtStDate1.ClientID)
CS1.HRef = "#"
CS1.Attributes.Add("onclick", clickHandlerStart1)%><a id ="CS1" runat="server"><img alt="PopUp Calendar" src="Images/popup-calendar.gif" />
ASKER
Thanks for the suggestion. I will try to use in future projects, but this does not need ajax right now, is there any other way , other than ajax, to stop it from moving?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Calendar/Calendar.aspx