日期:2014-05-17  浏览次数:20520 次

ascx连接数据库字符串什么意思?
C# code

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewReview.ascx.cs" Inherits="UseControls_LeftContorls_NewReview" %>
<table cellpadding="0" cellspacing="0" style=" width: 204px; height:94px;">
    <tr>
        <td style="vertical-align: top; width: 204px; height:94px;">
            <asp:DataList ID="ddlNewReview" runat="server" Font-Size="9pt" Height="100%">
                <ItemTemplate>
                    <table style="width: 204px;  vertical-align: top; text-align: left; ">
                        <tr>
                            <td colspan="3" style="width: 204px; height: 9px; vertical-align: top; text-align: center;" >
                            <a href="ViewReply.aspx?ArticleID=<%#DataBinder.Eval(Container.DataItem,"ArticleID") %>" ><%#DataBinder.Eval(Container.DataItem,"Subject") %></a>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList></td>
    </tr>
</table>

中的<a href="ViewReply.aspx?ArticleID=<%#DataBinder.Eval(Container.DataItem,"ArticleID") %>" ><%#DataBinder.Eval(Container.DataItem,"Subject") %></a>
什么意思?



------解决方案--------------------
就是显示ArticleID Subject 等字段的内容啊