Can i shorten this to one line? I have tried various ways but can\'t quite get it right.
@if(SiteMap.CurrentNode.Title == \"Contact\") { @:
The shortest possible way to do is like:
@(SiteMap.CurrentNode.Title == "Contact" ? "" : "") or @(SiteMap.CurrentNode.Title == "Contact" ? @"" : "") or even shorter if you don't repeat your html code 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
or
@(SiteMap.CurrentNode.Title == "Contact" ? @"" : "") or even shorter if you don't repeat your html code 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
or even shorter if you don't repeat your html code
0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复