Ajax Calendarextender location with invisible text box

I have a div and inside it I have installed TextBox: none, CalendarExtender connected to it and a button next to the TextBox that displays the calendar. When I click the button, the calendar appears in the upper left corner of the form. Is there a way to do this next to the button where the text box is?

+3
source share
1 answer

I installed it position:absolute; visibility: hidden;instead display:none;.

<asp:TextBox ID="t1" runat="server" Style="position:absolute; visibility: hidden" />
<asp:Button ID="b1" runat="server" Text="Button" />
<asp:CalendarExtender ID="c1" runat="server" TargetControlID="t1"
        PopupButtonID="b1"/>
+3
source

Source: https://habr.com/ru/post/1773539/


All Articles