Lightbox SelectList and MVC Issue

Hi,

I am creating a list of options, whch is displayed when lightbox loads for an event. However, i need it to default to the saved data for the selected event.

The code in the partial lightbox control is

Category : @Html.DropDownListFor(x=>x.eventCat.Category, Model.Categories)

However, I can’t see how i access the data passed to the controller in order to locate the ssaved information for the event.

Regards

Hi,
you can create a model class for your lightbox, and pass all needed data within it