發(fā)表日期:2019-04 文章編輯:小燈 瀏覽次數(shù):3024
1、信息表內(nèi)容調(diào)用語法
Html.InfoData()
無參數(shù)則默認(rèn)調(diào)用當(dāng)前欄目對應(yīng)的內(nèi)容頁的信息數(shù)據(jù),次方法模板中最常用。
2、根據(jù)信息表名和信息id獲取信息表內(nèi)容數(shù)據(jù)
Html.InfoData(string?infoTable,?int?infoId)
3、根據(jù)欄目Id和信息id調(diào)用信息表內(nèi)容頁數(shù)據(jù)
Html.InfoData(int?columnId,int?infoId)
實例1:調(diào)用當(dāng)前欄目內(nèi)容頁信息數(shù)據(jù)
@{ var?infoData?=?Html.InfoData(); } <div?class="news-content"> ????<h4?class="title">@infoData.Title</h4> ????<div?class="info"><span>@infoData.Thedate</span></div> ????<div?class="content">@Html.Raw(infoData.Content)</div> </div>
4、獲取當(dāng)前信息Id,只在內(nèi)容頁模型有效。
Html.CurrentInfoId()
5、獲取當(dāng)前信息頁欄目使用的信息表
Html.CurrentInfoTable()
6、獲取信息內(nèi)容頁Url地址,有兩個方法可獲取
Html.InfoDataUrl(string?intoTable,?int?infoId)
第一個參數(shù)為表名稱,第二個參數(shù)為信息id。
Html.InfoDataUrl(int?columnId,?int?infoId)
第一個參數(shù)為欄目Id,第二個參數(shù)為信息id。
日期:2019-04 瀏覽次數(shù):3145
日期:2019-04 瀏覽次數(shù):3120
日期:2019-04 瀏覽次數(shù):3029
日期:2019-04 瀏覽次數(shù):2856
日期:2019-04 瀏覽次數(shù):2946
日期:2019-04 瀏覽次數(shù):3112
日期:2019-04 瀏覽次數(shù):3048
日期:2019-04 瀏覽次數(shù):3310
日期:2019-04 瀏覽次數(shù):3361
日期:2019-04 瀏覽次數(shù):3013
日期:2019-04 瀏覽次數(shù):3390
日期:2019-04 瀏覽次數(shù):2811
日期:2019-04 瀏覽次數(shù):2955
日期:2019-04 瀏覽次數(shù):3072
日期:2019-04 瀏覽次數(shù):2923
日期:2019-04 瀏覽次數(shù):3367
日期:2019-04 瀏覽次數(shù):3267
日期:2019-04 瀏覽次數(shù):2947
日期:2019-04 瀏覽次數(shù):3171
日期:2019-04 瀏覽次數(shù):3005
日期:2019-04 瀏覽次數(shù):2776
日期:2019-04 瀏覽次數(shù):3083
日期:2019-04 瀏覽次數(shù):2972
日期:2019-04 瀏覽次數(shù):3072
日期:2019-04 瀏覽次數(shù):3023
日期:2019-04 瀏覽次數(shù):2895
日期:2019-04 瀏覽次數(shù):2749
日期:2019-04 瀏覽次數(shù):2766
日期:2019-04 瀏覽次數(shù):2828
日期:2019-04 瀏覽次數(shù):2853
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.