Posts

Showing posts with the label asp.net-mvc-5

How to get token asp.net mvc 5 equal vuejs ( login use jwt in vue )

How to get token asp.net mvc 5 equal vuejs ( login use jwt in vue ) How can I get token asp.net mvc 5 equal vuejs ( login use jwt in vue )? back-end i use asp.net mvc5 and front-end i use vuejs2, problem is i'm not understand it login, how? how to use login with jwt ? This question is liable to be put on hold since it is of very poor quality and you provided little code evidence. – Oighea Jun 30 at 2:50 By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

MVC - comparison of 2 viewdata

MVC - comparison of 2 viewdata I have 2 viewdata, ViewData["product"] & ViewData["ProductRetailPriceList"] values assigned in controller reading from database as follow: ViewData["product"] ViewData["ProductRetailPriceList"] values database var product = db.ProductTbls.ToList(); List<SelectListItem> productlist = new List<SelectListItem>(); List<SelectListItem> ProductRetailPriceList = new List<SelectListItem>(); foreach(ProductTbl item in product) { productlist.Add(new SelectListItem { Text = item.ProductName, Value = item.ProductID.ToString() } ); ProductRetailPriceList.Add(new SelectListItem { Text = item.RetailUnitRentPrice.ToString(), Value = item.ProductID.ToString() }); ViewData["product"] = pro...