您的位置:首页 > 其它

在表格中的某列用超连接的方式显示, 点相应的超连接后弹出新页面显示祥细数据

2010-03-06 15:47 309 查看
sap.net aspx代码

代码

<td style="width: 944px; height: 19px;">
<asp:GridView ID="GVImage" AutoGenerateColumns="false" runat="server" Height="1px" Width="827px"
PageSize="10" AllowPaging="true" Font-Size="small"
ShowFooter="false" OnRowDataBound="GVImage_RowDataBound" >
<Columns>
<asp:TemplateField HeaderText="选择">
<ItemTemplate>
<asp:CheckBox runat="server" ID="CheckBox1" Width="10"/>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderText="序号" DataField="i_ID">
<ItemStyle Height="10px" Width="50px" />
</asp:BoundField>
<asp:TemplateField HeaderText="图号">
<ItemStyle Height="10px" Width="120px" />
<ItemTemplate>
<asp:HyperLink ID="HLImage" NavigateUrl='<%#"ShowImage2.aspx?imageID="+Eval("ch_ImageID") %>' runat="server"
Text='<%#Eval("ch_ImageID") %>'/>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderText="图片文件类型 " DataField="ch_ImageContentType">
<ItemStyle Width="150px" />
</asp:BoundField>
<asp:BoundField HeaderText="图片描述" DataField="ch_ImageDescription" >
<ItemStyle Width="480px" />
</asp:BoundField>
<asp:BoundField HeaderText="图片文件长度" DataField="i_ImageSize">
<ItemStyle Width="150px" />
</asp:BoundField>
</Columns>
<PagerSettings Visible="False" />
<HeaderStyle BackColor="#006699" ForeColor="white" Font-Bold="true" />
</asp:GridView>
</td>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐