0

I'm going to use select list item in razor and it gives this error:

"Element 'Selectlistitem' its not supported "

@List s = sfc2.MVC.ViewModels.Category.MajorCategories();

1
  • 1
    You need to provide some more code-examples.. For instance, the code in your MajorCategories(); method Commented Mar 9, 2011 at 10:51

1 Answer 1

2

First of all, your razor syntax is wrong. If it is a void then you'd have to use it in @{}, e.g.:

@{List s = sfc2.MVC.ViewModels.Category.MajorCategories();}

and second, yeah you should provide more code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.