I spent the better part of yesterday desiging a graphics viewing platform that consists of a single column datagrid on the left, and image tag on the right. In ChartDirector I put all the *.png files in Session so I can call them up when the Mouse over event is put in. Idea is to roll over the datacolum and change images.
Image of the platform can be seen at:
Two attractive starting points, both from Tek-Tips include:
<asp:HyperLinkColumn DataNavigateUrlField="ID" DataNavigateUrlFormatString="javascript:MyPage_window=window.open('MyPage.aspx?ID={0}','MyPage_window','width=700, height=475');Transaction_window.focus()" DataTextField="ID" DataTextFormatString="View"></asp:HyperLinkColumn>
...which has a Javascript call within the hyperlink column of a Grid, same condition I am facing. Zarcom added a modification, calling for an Item Template, when he re-adjusted the code as follows:
<asp:TemplateColumn> <ItemTemplate>
<asp:HyperLink id=HyperLink1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Rate" %>' NavigateUrl='<%# " "DataItem.Rate"&"&other="&DataBinder.Eval(Container, "DataItem.SubClassID" %>'> </asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
Gresko added:
<ASP:LABEL id=lblWording Text='<%# Convert.ToString(DataBinder.Eval(Container.DataItem,"Wording") %>' Runat="server" onmouseover=alert("hi"></ASP:LABEL>
...saying that it should be no problem citing the above as an example of how easy this would be.
...Not to call for any time, but a sentence or two might set the stage for some sleep later tonite!
Thanks as always.
Image of the platform can be seen at:
Two attractive starting points, both from Tek-Tips include:
<asp:HyperLinkColumn DataNavigateUrlField="ID" DataNavigateUrlFormatString="javascript:MyPage_window=window.open('MyPage.aspx?ID={0}','MyPage_window','width=700, height=475');Transaction_window.focus()" DataTextField="ID" DataTextFormatString="View"></asp:HyperLinkColumn>
...which has a Javascript call within the hyperlink column of a Grid, same condition I am facing. Zarcom added a modification, calling for an Item Template, when he re-adjusted the code as follows:
<asp:TemplateColumn> <ItemTemplate>
<asp:HyperLink id=HyperLink1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Rate" %>' NavigateUrl='<%# " "DataItem.Rate"&"&other="&DataBinder.Eval(Container, "DataItem.SubClassID" %>'> </asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
Gresko added:
<ASP:LABEL id=lblWording Text='<%# Convert.ToString(DataBinder.Eval(Container.DataItem,"Wording") %>' Runat="server" onmouseover=alert("hi"></ASP:LABEL>
...saying that it should be no problem citing the above as an example of how easy this would be.
...Not to call for any time, but a sentence or two might set the stage for some sleep later tonite!
Thanks as always.