I have a class setup that captures a List of values. The class is calling a stored procedure and it captures the values correctly.
The variable below "searchresults" pulls back data as per below.
I need to return the results to the view and it never displays the data on the screen. I have a textbox which I'll add the code below and it never picks it up.
var searchresults = data.seekcustomer(paramname);
<input type="text" class="form" @Html.EditorFor(model => model.CustomerName)
Top of View Page:
Results on the VIew Page:
1. Blank Results
This is how I get data:
<input type="text" class="form" @Html.TextBox("txtCustomer", (string)ViewBag.Customer) />
Issue with this is when I change a value and click Submit button then it doesn't pass the variables over to the controller.
Any suggestions on either method would be appreciated.