摘要:
asp.net MVC 如何在aspx页面的head标签里输出Key为常量的ViewData呢?下面是有效的:<meta name="description" content="<%:ViewData["PageDescription"]%>" />直接放在head里,有效的:<%:ViewData[BaseConstant.STR_VIEWDATA_PAGEDESCRIPTION]%>下面使用了常量来代替"PageDescription"常量定义:public const st 阅读全文
posted @ 2011-11-08 17:35
猪头
阅读(1092)
评论(0)
推荐(0)
浙公网安备 33010602011771号