Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ajax/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 带有不可见文本框的Ajax Calendarextender位置_Asp.net_Ajax_Calendarextender - Fatal编程技术网

Asp.net 带有不可见文本框的Ajax Calendarextender位置

Asp.net 带有不可见文本框的Ajax Calendarextender位置,asp.net,ajax,calendarextender,Asp.net,Ajax,Calendarextender,我有一个div,里面有一个设置为显示的文本框:none,一个连接到它的CalendarExtender,还有一个按钮,在文本框旁边,显示日历。单击按钮时,日历将显示在窗体的左上角。有没有办法让它出现在文本框所在的按钮旁边?我用位置:绝对值固定了它;可见性:隐藏而不是显示:无 <asp:TextBox ID="t1" runat="server" Style="position:absolute; visibility: hidden" /> <asp:Button ID="b1

我有一个div,里面有一个设置为显示的文本框:none,一个连接到它的CalendarExtender,还有一个按钮,在文本框旁边,显示日历。单击按钮时,日历将显示在窗体的左上角。有没有办法让它出现在文本框所在的按钮旁边?

我用
位置:绝对值固定了它;可见性:隐藏而不是
显示:无

<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"/>