G
Guest
I have a default page that I load usercontrols depending on requirements
through a master template using a PlaceHolder i.e.
//some logic here.....
Control UCUsers = LoadControl("../UserControls/users.ascx");
PlaceHolderUC.Controls.Add(UCUsers );
the datalist control (ascx) loads correctly but when I try click the
datalist template image button
i.e. <ItemTemplate>
<asp:ImageButton ID="imgBtnClick" tooltip ="click to view
user" height="8" ImageUrl="../Images/icon_blue_triangle.gif" runat="server"
CommandName="show" />
<%# DataBinder.Eval(Container.DataItem, "username")%>
<%# DataBinder.Eval(Container.DataItem, "startdate",
"{0:d}")%>
</ItemTemplate>
the control dissapears and even putting a breakpoint on the
DataList_ItemCommand
method does not get hit
can any suggest a workaround for this
Thanks
through a master template using a PlaceHolder i.e.
//some logic here.....
Control UCUsers = LoadControl("../UserControls/users.ascx");
PlaceHolderUC.Controls.Add(UCUsers );
the datalist control (ascx) loads correctly but when I try click the
datalist template image button
i.e. <ItemTemplate>
<asp:ImageButton ID="imgBtnClick" tooltip ="click to view
user" height="8" ImageUrl="../Images/icon_blue_triangle.gif" runat="server"
CommandName="show" />
<%# DataBinder.Eval(Container.DataItem, "username")%>
<%# DataBinder.Eval(Container.DataItem, "startdate",
"{0:d}")%>
</ItemTemplate>
the control dissapears and even putting a breakpoint on the
DataList_ItemCommand
method does not get hit
can any suggest a workaround for this
Thanks