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>

  • 相关阅读:
    compilation debug= true targetframework= 4.0 / configuration error
    Using Temp table in SSIS package
    Using an Excel Destination in SSIS with x64
    SQL Server 中的两个查询级别的Hint NOLOCK和ROWLOCK
    SQL Server中的timeout设置
    Global.asax 转
    VC++动态链接库编程之MFC规则DLL
    堆栈详解(数据与内存中的存储方式) .
    [C++]拷贝构造函数和赋值运算符重载
    #ifdef __cplusplus extern "C" { #endif”的定义的含义 .
  • 原文地址:https://www.cnblogs.com/zhwl/p/2434416.html
Copyright © 2011-2022 走看看