I want to implement an Star Rating code. For that I am using a PartialView called as:
@{ Html.RenderAction("Rate"); }
The purpose is to show and handle the star rating code separately from the current page. Thus, I dont really need to use the css or other javascripts that are being rendered in the parent .cshtml.
I am removing the layout as follow:
@{ Layout = null; }
From the controller:
public ActionResult Rate() {
return PartialView(); }
But I noticed that the parent css and javascript are messing up with the star rating thus I don't really want to use them. How to protect the partial view?
Aucun commentaire:
Enregistrer un commentaire