I have a DLL which I need to use in an MVC application. I have added the namespace to the web.config file, but this doesn’t work when I try to use the control in a View. I can’t do:
<%@ Register TagPrefix="fjx" Namespace="com.flajaxian" Assembly="com.flajaxian.FileUploader" %>
because MVC Views won’t allow this. Any ideas on how I can use an existing control in an MVC application?
You can import namespaces in razor views razor like this:
or when using the classic aspx engine:
Using the flajaxian asp.net webforms controls in MVC won’t work though. See this post for details and alternatives.