D
DC
Hi,
why does this not work:
<asp:ImageButton
id="myButt"
runat="server"
OnCommand="myButt_kick"
ImageUrl="<% =GetMyButtUrl() %>"
</asp:ImageButton>
( I get src="<% =GetMyButtUrl() %>" in the resulting HTML)
while this (in a DataGrid) works perfectly:
<ItemTemplate>
<asp:ImageButton
id="myButtInAGrid"
runat="server"
OnCommand="myButt_kick"
ImageUrl="<%# GetMyButtUrl() %>">
</asp:ImageButton>
</ItemTemplate>
Regards
DC
why does this not work:
<asp:ImageButton
id="myButt"
runat="server"
OnCommand="myButt_kick"
ImageUrl="<% =GetMyButtUrl() %>"
</asp:ImageButton>
( I get src="<% =GetMyButtUrl() %>" in the resulting HTML)
while this (in a DataGrid) works perfectly:
<ItemTemplate>
<asp:ImageButton
id="myButtInAGrid"
runat="server"
OnCommand="myButt_kick"
ImageUrl="<%# GetMyButtUrl() %>">
</asp:ImageButton>
</ItemTemplate>
Regards
DC