I am pretty new to programing and so far I got great help for my project from the questions and the answers of other members here on stackoverflow, but i stumbled across this problem and I dont know how to solve it so any help is welcome :)
I have this droddownlist that populates from a jQuery:
@Html.DropDownListFor(Model => Model.labs,
new SelectList(
Enumerable.Empty<SelectListItem>(),
"labsn",
"labdescr"),
"Choose Lab",
new { id = "ddllab" })
I want to create a button (or an html.actionlink) that will take the selected value labsn and redirect me to another page where I will be creating a new table (a labclasses table) where the labsn is FK so I want the labsn field to be auto filled with the selected value from the previous page
and also I want another button that will delete the lab table with the labsn that is selected and any labclasses with that labsn as FK.
The pages ActionResult that I want to be redirect to:
public ActionResult Create_LabClasses()
{
return View();
}
Thank you all for your time.