I am trying to use Jquery to load a partial view on my page but I keep getting this Invalid Expression Flag G error, I have no idea what it means.
Here is the code that I have created in my cshtml file:
@foreach (var item in Model)
<a href="#" id="getDetails">@Html.DisplayFor(modelItem => item.Description)</a>
public ActionResult Index()
ReferenceRepository test = new ReferenceRepository();
var response = test.GetParts("A");
public ActionResult GetDetails()
/Home/GetDetails is being interpreted as a regular expression, using "Home" as the pattern and "GetDetails" as the flags. That's an invalid regular expression, hence the error.
You should wrap it in quotes, like this::