Category "asp.net-mvc-5"

Image not Showing in crystal report viewer

I am using Crystal Report version 13.0.16.1954, In the data which is displayed in Crystal Report Viewer (Main report preview in visual studio 2013) having the i

Why does return RedirectToAction("/Index") work and RedirectToAction("Index)" not work

For a long time, I've had an action that returned return RedirectToAction("Index","Vendor"); and it worked as expected. At the completion of this function, my

ampersand symbol in url param, after encoding also throwing an error - MVC

In one of my action methods , I do have a parameter "filename", which some times can be a string with ampersand symbol. The problem is when ever we have an ampe

visual studio is running, but localhost can't connect

I have vs 2015, and a asp.net mvc 5 website. It was running fine until a while back, but just today I noticed it stopped working. When I start debugging, visual

MVC POST requests losing Authorization header - how to use API Bearer Token once retrieved

I have spent the last week creating an API for an existing MVC application, and am now attempting to secure the API along with reworking the MVC side security a

MVC 5 @Scripts.Render("~/bundles/bootstrap") error 'Object reference not set to an instance of an object.'

_Layout.cshtml file fails when attempting to render the bootstrap 5 script bundle (works for earlier versions of bootstrap) Bundle.Config File _Layout Debugging

Passing @Html.DisplayFor() - values from view to controller

I'm having these classes: public class ProductViewModel { public IEnumerable<Product> Products { get; set; } } public class Product { public in

Serving static file on ASP.NET MVC (C#)

I am completely new to .NET framework and i would like to know what is the best way to serve static content and to access user generated content. Suppose i hav

Serving static file on ASP.NET MVC (C#)

I am completely new to .NET framework and i would like to know what is the best way to serve static content and to access user generated content. Suppose i hav

Why images paths not store in database MVC5?

I'm new to MVC so I hope to get help regarding my question. I am making users upload images. the image path will store in the database but the image itself will

Displaying an iframe with @Html.Raw is not working like when displaying Script with @Html.Raw

Note: This is written in asp.net mvc 5. That is the tech I am using for this. I am used to displaying certain data when I use @Html.Raw to show data from a Mode

How to Bind a group by data in view in mvc5? what are the best ways to do

I am using Entityframework context, i dont know how to bind to view. I am grouping items by gender public SQLChallengeEntities Sqlcontext = new SQLChallengeEn

Update Entity from ViewModel in MVC using AutoMapper

I have a Supplier.cs Entity and its ViewModel SupplierVm.cs. I am attempting to update an existing Supplier, but I am getting the Yellow Screen of Death (YSOD)

Some (official or not) upgrade Mvc3 to Mvc5 guide?

There is a (non-Microsoft) NuGet package that allows upgrading the Mvc3 to Mvc4. There is a (Microsoft) article that explains how to manually migrate from Mvc3