------------------
Public ActionResult Author()
{
SelectList Newterms = null;
IEnumerable
{
Text = objauth.ReplaceTagValueToTerm(c.TagValue, c.Term),
Value = c.Id.ToString(),
Selected = true,
});
Newterms = new SelectList(Author, "Value", "Text");
ViewBag.NewTerms = Newterms;
}
}
-------------------------------------------------------------------------------------
View Page
@Html.DropDownList("NewTerms", (SelectList)ViewData["NewTerms"], new { @class = "NewCssdropdown" })
--------------------------------------------------------------------------------------
Jquery
---------------------------------------------------------------------------------------------
HAPPY CODING
No comments:
Post a Comment