AJAX PopupControlExtender
Kan det passe at man ikke kan bruge en PopupControlExtender inde i f.eks et gridview? Jeg får en fejl i nedenstående kode. Og som i kan se så virker det fint, når PopupControlExtender er udenfor gridview'et<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div>
<asp:Button ID="Button1" runat="server" Text="Button" />
<cc1:HoverMenuExtender ID="HoverMenuExtender1" runat="server" TargetControlID="Button1" OffsetX="0" PopDelay="55" PopupControlID="Panel1">
</cc1:HoverMenuExtender>
<asp:Panel ID="Panel1" runat="server" Height="142px" Width="243px" BackColor="gray">
<asp:HyperLink ID="HyperLink1" runat="server">HyperLink</asp:HyperLink><br />
<br />
<asp:HyperLink ID="HyperLink2" runat="server">HyperLink</asp:HyperLink></asp:Panel>
<cc1:PopupControlExtender ID="PopupControlExtender2" runat="server" TargetControlID="label22" PopupControlID="Panel22" Position="Bottom" />
<asp:Label ID="label22" Text="Tryk her" runat="server"></asp:Label>
<asp:Panel ID="Panel22" runat="server" Height="50px" Width="125px">
<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
</asp:Panel>
<br /><br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
<Columns>
<asp:TemplateField HeaderText="Navn" SortExpression="Navn">
<ItemTemplate>
<asp:Label ID="Label1UAS" runat="server" Text='<%# Bind("Navn") %>'></asp:Label>
<cc1:PopupControlExtender ID="PopupControlExtender1" TargetControlID="label1UAS" PopupControlID="Panel1UAS" runat="server" />
<asp:Panel ID="Panel1UAS" Width="200" BackColor="Wheat" runat="server">
<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
</asp:Panel>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Telefon" HeaderText="Telefon" SortExpression="Telefon" />
<asp:BoundField DataField="Mobil" HeaderText="Mobil" SortExpression="Mobil" />
<asp:BoundField DataField="Titel" HeaderText="Titel" SortExpression="Titel" />
<asp:BoundField DataField="Ansvar" HeaderText="Ansvar" SortExpression="Ansvar" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ICSystem %>"
SelectCommand="SELECT [Navn], [Telefon], [Mobil], [Titel], [Ansvar] FROM [ICDKontakter]">
</asp:SqlDataSource>
</div>
</form>
</body>
</html>