Problem with javascript

Aug 14, 2011 at 12:10 AM

Hi,

Sorry about my english. I have this block of code:

@foreach(var stream in Model.Streams) {
<a href="#" onclick="server.send('Post', { Id: @stream.Id }); return false;">@stream.Title</a>
}
and the result is:

<a href="#" onclick="server.send('Post', ); return false;">Title</a>


How do I escape the "{" char?

Thank you.