G
Guest
Can you add client side controls inside a asp .net datagrid?
The code below shows what I have template column inside a asp .net datagrid...
<Columns>
<asp:TemplateColumn HeaderText="Exist Or Not">
<ItemTemplate>
<!--<asp:ImageButton ID="btnViewReply" Runat="server"
CommandName="btnViewReply" ImageUrl='<%#
selectimage(DataBinder.Eval(Container.DataItem, "spec_hold_status"),
DataBinder.Eval(Container.DataItem, "spec_submit_date"))%>'
AlternateText='<%#iif(DataBinder.Eval(Container.DataItem,
"spec_hold_status"),"Reply Exists","No Reply")%>'
CssClass='<%#iif(DataBinder.Eval(Container.DataItem,
"spec_hold_status"),"imagebutton","button")%>'/>--->
<IMG id="imgImage" height="21" width="34" alt="Reply" style="Z-INDEX: 103;
LEFT: 874px; CURSOR: hand; POSITION: absolute; TOP: 36px" src='<%#
selectimage(DataBinder.Eval(Container.DataItem, "spec_hold_status"),
DataBinder.Eval(Container.DataItem, "spec_submit_date"))%>' />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
--
I am running some code that works great when I use a Imagebutton server
control inside the datagrid, except of course it has to make a trip to the
server, flash the screen before the rest of the code (not included here)
executes. (That line with the imagebutton is commented out in this code) I
have attempted many times to simply add a client side image (<IMG ) control
instead, but it won't show up in the datagrid. No errors, but no button
either. Any ideas??
The code below shows what I have template column inside a asp .net datagrid...
<Columns>
<asp:TemplateColumn HeaderText="Exist Or Not">
<ItemTemplate>
<!--<asp:ImageButton ID="btnViewReply" Runat="server"
CommandName="btnViewReply" ImageUrl='<%#
selectimage(DataBinder.Eval(Container.DataItem, "spec_hold_status"),
DataBinder.Eval(Container.DataItem, "spec_submit_date"))%>'
AlternateText='<%#iif(DataBinder.Eval(Container.DataItem,
"spec_hold_status"),"Reply Exists","No Reply")%>'
CssClass='<%#iif(DataBinder.Eval(Container.DataItem,
"spec_hold_status"),"imagebutton","button")%>'/>--->
<IMG id="imgImage" height="21" width="34" alt="Reply" style="Z-INDEX: 103;
LEFT: 874px; CURSOR: hand; POSITION: absolute; TOP: 36px" src='<%#
selectimage(DataBinder.Eval(Container.DataItem, "spec_hold_status"),
DataBinder.Eval(Container.DataItem, "spec_submit_date"))%>' />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
--
I am running some code that works great when I use a Imagebutton server
control inside the datagrid, except of course it has to make a trip to the
server, flash the screen before the rest of the code (not included here)
executes. (That line with the imagebutton is commented out in this code) I
have attempted many times to simply add a client side image (<IMG ) control
instead, but it won't show up in the datagrid. No errors, but no button
either. Any ideas??