從資料在頁面顯示不解析

zhaohjjq發表於2014-05-27
                            <asp:Repeater ID="Rptnewstop" runat="server">
                                <ItemTemplate>
                                    <h2>
                                        <a target="_blank" href='<%=url %>/<%#new YJ.BLL.Brand().GetBrandById(new YJ.BLL.Article().GetArticleById(int.Parse(Eval("i_Id").ToString())).i_Bid).vc_Name %>/<%#Eval("i_Id") %>.html'
                                            title='<%#Eval("vc_Title") %>' >
                                            <%#YJ.CommonLib.CutString.GetSubStringsNoHtmlIndent(Eval("vc_Title").ToString(),18) %></a></h2>
                                    <p>
                                        <%#YJ.CommonLib.CutString.GetSubStringsNoHtmlIndent(Server.HtmlDecode(Eval("vc_Content").ToString()),70) %></p>
                                </ItemTemplate>

                            </asp:Repeater>


在讀取的資料前加:Server.HtmlDecode

相關文章