How can i insert this in razor view page
<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
TagPrefix="asp" %>
<asp:ScriptManager runat="server" ID="MainScriptManager" />
How can i insert this in razor view page
<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
TagPrefix="asp" %>
<asp:ScriptManager runat="server" ID="MainScriptManager" />
To add new register in MVC, you can put in the web.config:
You can put it in the Web.Config that exists in your Views folder. It took me a while to figure this one out hope this helps.
you can try
@using Namespace;
where Namespace is what you needYou cannot. You are using ASPX markup in your example. In razor you can write:
btw. check this syntax quickref: