MVC3 @html.radiobuttonfor

久未见 提交于 2019-12-02 00:59:23

You need to change:

  @model IEnumerable SQLOperation.Models.QuestionClass.Tabelfields

to this:

  @model List<SQLOperation.Models.Question>

That should fix the error.

Hope it helps.

Change your getallQuestion in model to this

public static IEnumerable<Question> getallQuestion(string email) 
        { 
            var list = (from q in context.Questions where q.Email==@email select     q).ToList(); 

            return list.AsEnumerable();  //just remove `ToList()` and place `AsEnumerable()`.
        } 

Try this. This should work for you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!