ASP.NET control with MVC's Razor engine -


I am using ASP.NET MVC 3 with the razor template engine for my website. I currently allow uploading files like this:

   & Lt; Input type = "submit" name = "submit" value = "submit" /> & Lt; / Form & gt;   

But a third party control, such as, which allows a progress bar, multi file selection, etc.

In the document, they show control as being used in this way:

  & lt;% @ Register TagPrefix = "Upload" namespace = "Brattle. Web.natuploads "assembly =" braille web.nettypeload "%" & Lt; Upload: Input file id = "inputFileId" runat = "server" /> Some code-behind   

Razor engine does not like this syntax. Is there another way to use third party control, or am I out of luck?

Controls that work with third party web forms are actually net MVC After saying this, you can work with a hybrid solution, take advantage of web forms in some places and use MVC in others. It's not something I personally do, but you can do it

Look at Scott Hanselman who goes to some details about doing something.

Using the web form control on the razor page however will not work though.

Comments