Made solution change: I am trying to display a html table of data.. In my controller I start an object as null and then pass the object as a reference to update the object based on the info in the DB like so "user control named(Indexcontrol.ascx)":
List<dataob> data = null;
dataManager target = new dataManager();
//pass the parameter to a stored procedure and update it
target.LoadFromDatabase(ref data);
this.ViewData.Model =data;
return View("Index");
I am trying to see how to display a table once the information is in the data object using a similar route all this is in the user control
<tbody >
<% foreach (businesslayer.dataob m in ViewData.Model)
{ %>
<tr>
<td><%= m.ID%></td>
<td><%= m.Date %></td>
<td><%= m.Description %></td>
</tr>
<% } %>
</tbody>
I figured out the problem....since I had the table attribute set to runat=server thats what gave me the error..don't know why but it did