如何使我的“datalist”控件在设计视图中可见?
我知道它存在,该站点运行完美,并且 C# 代码引用它,以及 asp 代码,但是,我在设计视图中找不到它。请指教。
谢谢!安娜
后期编辑(有人建议我发布代码):
<asp:DataList ID="DataList1" runat="server">
<ItemTemplate>
<table class="style1">
<tr>
<td>
Name:</td>
<td>
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='<%# MyLinkGen.ToFilm(Eval("fid").ToString()) %>'
Text='<%# HttpUtility.HtmlEncode(Eval("name").ToString()) %>'></asp:HyperLink>
</td>
</tr>
<tr>
<td>
</td>
<td>
<asp:Image ID="Image1" runat="server"
ImageUrl='<%# String.Format("~/img/{0}.jpg",Eval("imgpath1")) %>' />
</td>
</tr>
<tr>
<td>
Directed by:</td>
<td>
<asp:Label ID="Label2" runat="server"
Text='<%# HttpUtility.HtmlEncode(Eval("director").ToString()) %>'></asp:Label>
</td>
</tr>
<tr>
<td>
Actors:</td>
<td>
<asp:Label ID="Label3" runat="server"
Text='<%# HttpUtility.HtmlEncode(Eval("actors").ToString()) %>'></asp:Label>
</td>
</tr>
<tr>
<td>
Rating:</td>
<td>
<asp:Label ID="Label4" runat="server"
Text='<%# HttpUtility.HtmlEncode(Eval("rating").ToString()) %>'></asp:Label>
</td>
</tr>
<tr>
<td>
Description:</td>
<td>
<asp:Label ID="Label1" runat="server"
Text='<%# HttpUtility.HtmlEncode(Eval("descrip").ToString()) %>'></asp:Label>
</td>
</tr>
<tr>
<td>
Price:</td>
<td>
<asp:Label ID="Label5" runat="server"
Text='<%# Eval("price", "{0:c}") %>'></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>