Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
154818 Points
19853 Posts
Moderator
MVP
Feb 13, 2012 06:13 PM|LINK
grid.Column(format:@<text>@(item.status != "Lorem" ? Html.Raw("<a href=\"/view/post/" + item.id + "\">View</a>") : "")</text>)
Mikesdotnett...
All-Star
154818 Points
19853 Posts
Moderator
MVP
Re: Trouble formatting a hyperlink inside a webGrid conditional statement
Feb 13, 2012 06:13 PM|LINK
grid.Column(format:@<text>@(item.status != "Lorem" ? Html.Raw("<a href=\"/view/post/" + item.id + "\">View</a>") : "")</text>)Beginning ASP.NET Web Pages with WebMatrix | My Site | Twitter