168
rated 0 times
[
171]
[
3]
/ answers: 1 / hits: 17438
/ 13 Years ago, thu, october 6, 2011, 12:00:00
I'm trying to write the following code inside ASP.Net-MVC razor view but the page won't compile.
<script>
@(if (Model.IsValid))
{
(#ErrorMessage).text(Error);
}
else
{
(#Registration).text(Done!);
}
</script>
There are workarounds that I did to achieve that operation, but is there a simple way?
More From » c#