Dec 10, 2008, 9:35 PM
Dynamic Tab in MVC
Hi Geoffrey,
I'm having a hard time trying to do something very trivial with ASP.NET MVC Beta 1 and Coolite 0.6.0. I need to change the title on one Tab to some value stored in ViewData. I'm trying to do something like this:
Any ideas how I can accomplish this?
Thanks
- Juan
I'm having a hard time trying to do something very trivial with ASP.NET MVC Beta 1 and Coolite 0.6.0. I need to change the title on one Tab to some value stored in ViewData. I'm trying to do something like this:
<ext:Tab ID="Tab1" runat="server" Title="<%= Html.Encode(ViewData["Title"]) %>" AutoScroll="true">
but when I run it I get the error: "Server tags cannot contain <% ... %> constructs."Any ideas how I can accomplish this?
Thanks
- Juan