{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/3810","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/3810/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/3810/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/3810/events","html_url":"https://github.com/aspnet/Mvc/issues/3810","id":123935201,"number":3810,"title":"Http Error 500 Using If in razor view","user":{"login":"Eneuman","id":12099277,"avatar_url":"https://avatars.githubusercontent.com/u/12099277?v=3","gravatar_id":"","url":"https://api.github.com/users/Eneuman","html_url":"https://github.com/Eneuman","followers_url":"https://api.github.com/users/Eneuman/followers","following_url":"https://api.github.com/users/Eneuman/following{/other_user}","gists_url":"https://api.github.com/users/Eneuman/gists{/gist_id}","starred_url":"https://api.github.com/users/Eneuman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eneuman/subscriptions","organizations_url":"https://api.github.com/users/Eneuman/orgs","repos_url":"https://api.github.com/users/Eneuman/repos","events_url":"https://api.github.com/users/Eneuman/events{/privacy}","received_events_url":"https://api.github.com/users/Eneuman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Mvc/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-26T15:34:35Z","updated_at":"2015-12-28T19:11:55Z","closed_at":"2015-12-28T19:11:55Z","body":"Using the following line of code in a MVC 6 razor view generates a Server Error 500, why ?\r\nI have double checked the model and it works fine, The problem only occurs when I add the if statement.\r\nThe code is working fine in MVC5.\r\n\r\n```\r\n<div class=\"form-group\" style=\"@if (Model.Id==\"\") {<Text>display:none;</Text>}\">\r\n</div>"},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/167630607","html_url":"https://github.com/aspnet/Mvc/issues/3810#issuecomment-167630607","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/3810","id":167630607,"user":{"login":"NTaylorMullen","id":2008729,"avatar_url":"https://avatars.githubusercontent.com/u/2008729?v=3","gravatar_id":"","url":"https://api.github.com/users/NTaylorMullen","html_url":"https://github.com/NTaylorMullen","followers_url":"https://api.github.com/users/NTaylorMullen/followers","following_url":"https://api.github.com/users/NTaylorMullen/following{/other_user}","gists_url":"https://api.github.com/users/NTaylorMullen/gists{/gist_id}","starred_url":"https://api.github.com/users/NTaylorMullen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NTaylorMullen/subscriptions","organizations_url":"https://api.github.com/users/NTaylorMullen/orgs","repos_url":"https://api.github.com/users/NTaylorMullen/repos","events_url":"https://api.github.com/users/NTaylorMullen/events{/privacy}","received_events_url":"https://api.github.com/users/NTaylorMullen/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T19:11:55Z","updated_at":"2015-12-28T19:11:55Z","body":"Duplicate of: https://github.com/aspnet/Razor/issues/594\r\n\r\nIs fixed for next release :smile: "}}