Posts

Showing posts with the label dataset

Passing Multiple Dataset to View [MVC]

Passing Multiple Dataset to View [MVC] I am new to MVC, I referred this link (https://www.aspsnippets.com/Articles/Pass-Send-DataSet-DataTable-from-Controller-to-View-in-ASPNet-MVC.aspx) and passing data from Controller, but my project contains multiples Tables and I need to pass the data from Model->Controller->View. I am facing error while doing this. Kindly check and provide the solution for my issue. Error While running the Application Server Error in '/' Application. The model item passed into the dictionary is of type 'MyClassModel.Models.MyClass', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[MyClassModel.Models.MyClass]'. <--Model--> (Data Representation) using System.Collections.Generic; using System.Linq; using System.Web; namespace MyClassModel.Models { public class Myclass { public List<int> Colors_ID { get; set; } public List<string> ColorsInfo { get; set; ...