zoukankan      html  css  js  c++  java
  • asp.net 前台 对列进行加工(用DataBinder.Eval 不要用Bind)

     <asp:TemplateField HeaderText="稿件">
                                                    <EditItemTemplate>
                                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("[sServerVirtualityPathHttpRemote,sOppositePath,sSmallPhotoFileName]") %>'></asp:TextBox>
                                                    </EditItemTemplate>
                                                    <ItemStyle Font-Size="9pt" Width="8%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                    <HeaderStyle Font-Size="9pt" Width="8%" HorizontalAlign="Center" VerticalAlign="Middle" />
                                                    <ItemTemplate>
                                                        <table style="margin-top: 0px; margin-left: 0px">
                                                            <tr>
                                                                <td style="height: 58px">
                                                                    <a href='<%# string.Format( "PhotoInformation.aspx?ImageID={0}&sType={1}&sImage=1", DataBinder.Eval(Container.DataItem, "sGuidID"),DataBinder.Eval(Container.DataItem, "sGuidIDtBaseDraftType")) %>'
                                                                        target="_blank">
                                                                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# string.Format("{0}/{1}/small/{2}",DataBinder.Eval(Container.DataItem, "sServerVirtualityPathHttpRemote"),DataBinder.Eval(Container.DataItem, "sOppositePath"),DataBinder.Eval(Container.DataItem, "sSmallPhotoFileName")) %>'
                                                                            Height="53px" Width="60px" /><asp:HyperLink ID="HyperLink_txt" runat="server" Visible="False"
                                                                                Target="_blank">HyperLink</asp:HyperLink></td>
                                                            </tr>
                                                        </table>
                                                    </ItemTemplate>
                                                </asp:TemplateField>

  • 相关阅读:
    kudu 存储引擎简析
    Kudu vs HBase
    HBase原理–所有Region切分的细节都在这里了
    4月第3周业务风控关注 | 文化部再次审查直播和游戏产品,已下架4939款直播应用
    知物由学 | 如何应对日益强大的零日攻击
    Apache 流框架 Flink,Spark Streaming,Storm对比分析(二)
    Apache 流框架 Flink,Spark Streaming,Storm对比分析(一)
    poj1637Sightseeing tour(混合图欧拉回路)
    计算机网络_学习笔记 第一章 概述
    [Codecademy] HTML&CSS 第三课:HTML Basic II
  • 原文地址:https://www.cnblogs.com/zhwl/p/2434416.html
Copyright © 2011-2022 走看看