The ASP.NET MVC Framework is an open source web application framework and tooling that implements a version of the model-view-controller (MVC) pattern tailored towards web applications and built upon an ASP.NET technology foundation.

learn more… | top users | synonyms (7) | asp.net mvc jobs

0
votes
0answers
4 views

How to display image in modal popup Onclick- Ajax Bound Kendo UI for ASP.NET MVC

I'm not able to display VarBinary image fetched from DB when clicked "View" link inside clientTemplate (Ajax Bound Kendo UI for ASP.NET MVC). Pls see the code below and correct. Grid: columns....
1
vote
2answers
11 views

Retrieving 10 records from Oracle materialized view in Entity Framework VERY slow

I am building an ASP.NET MVC 5 application to get read-only access to a few records at a time (Roughly between 2 and 12 rows). The records are stored in Oracle 11, and accessed via Entity Framework 6, ...
0
votes
1answer
19 views

EntityFramework class with list of object

I'm using EF6.0 and ASP.NET C# mvc and I have two classes - project and features: public class project { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public Guid id { get; ...
-1
votes
0answers
7 views

Get raw html through html helper in current mvc view

Is it possible to get raw html string through html helper in current mvc view? This should be used in a custom extention class to html helper.
0
votes
1answer
11 views

Redirecting from exception handling filter

I am using the filter from the solution posted to Clean way to catch all errors thrown in an MVC 3.0 application?, and I was wondering how I could redirect to a view (of a simple error page that ...
0
votes
1answer
22 views

Passing an object to another method and then the view

So I have this index method: public List<ParkingLot> parkingLot; public async Task<ActionResult> Index(Position postData) { string json = new WebClient() { Encoding =...
0
votes
0answers
8 views

MVC, show modal content dependent on dropdown (ajax)

I have no idea how to do something like this. I have a dropdown with six element, and button. When I click butto I want to show bootstrap modalpopup. It's a simple. But I want to tt depends on the ...
-1
votes
0answers
19 views

How to make a class diagram using MVC pattern?

I'm trying to make a class diagram of my ASP.NET web project using MVC pattern. I'm having trouble in establishing the relationships between classes and basically how to represent my views (aspx.cs ...
3
votes
1answer
31 views

How can I manually bind data from a ModelStateDictionary to a presentation model with ASP.NET MVC?

I wrote an application using ASP.NET MVC 5 framework. I am using a two way binding between the views and the ViewModels. Since I am using two way binding, I get the benefit of client and server side ...
1
vote
1answer
19 views

MVC with Bootstrap Model Dialog

So lets say I have a SalesOrder object that has a collection of SalesOrderItems. On the SaleOrder Edit screen in my MVC application there is all the fields you would expect and a table at the bottom ...
0
votes
1answer
22 views

MVC Joining many 2 many tables and filling list based on result in c#

I am doing a school project and need help with this last problem I am having. Currently I am trying to do a many 2 many join and then fill an IEnumerable list with the result - using linq and lambda....
0
votes
2answers
20 views

Create dynamic Menu constructed from database

I'm working in Asp.Net MVC, and I want to populate menu from database, but I don't really have an idea how can I do it to insert sub-menus into each menu, and each of this sub-menu can have another ...
0
votes
0answers
17 views

A very weird error and the code in view in mvc has converted to a weird format

A very weird error and the code in view in mvc has converted to a weird format This view has lost all the code that was written in it and converted to a very strange format: and this server error ...
-1
votes
0answers
33 views

MVC - using viewmodel with default constructor

Below is my ViewModel. namespace Web.ViewModels { public class Employee { public Employee() { this.EmployeeId = null; } public Employee(int employeeId) { this....
2
votes
1answer
21 views

How to get ASP.NET MVC Action Method to Parse a Property defined in an Interface and implemented in an Abstract class

I have a wizard with 5 steps, each step has a View Model that implements IUserAddUpdateStep Interface. An Action Method in my Controller looks like this [HttpPost] public ActionResult AddUpdate(...
0
votes
0answers
6 views

Invalid column name 'LanguageID' in Nopcommerce

I want to install Nopcommerce in local host. When I open it in visual studio and run, I fill in install page like this: When I click on install button, after seconds this error message has been ...
1
vote
1answer
26 views

Odd behavior with Json when inheriting

I've run into a type of issue. I have an ErrorModel class, bare bones, that was inheriting ICollection. public class ErrorsModel : ICollection<string> { private ICollection<...
0
votes
2answers
52 views

How to pass data to controller's field from URL?

I know how to send data to controller's action method as parameter from URL. Here I wonder how can I send data from URL to controller's field? public MyAwesomeController : Controller { public ...
0
votes
0answers
14 views

Dynamically loaded controls from Web API

So this is more of a best practices question. I have a restful web api with a data access layer that is using EF6 and a web MVC project that sends DTOs via RestSharp to the API get what I need from ...
0
votes
0answers
16 views

Getting HttpRequestMessage when using IActionFilter

How can I extract the HttpRequestMessage from the ActionExecutedContext or ActionExecutingContext when using a IActionFilter
0
votes
0answers
13 views

Issue after creating identity ICollection

i am trying to use Entity Framework to set up a 1-to-many relationship using the built-in Identity framework. My 2 models look like this (with unneeded attributes removed) PropertyModel [System....
0
votes
0answers
14 views

httpErrors vs customErrors to get verbose errors in IIS Express

The differences between the customErrors and httpErrors are well documented. Now that Visual Studio uses IIS Express, and thus httpErrors, for running and debugging locally, I had assumed there was ...
0
votes
1answer
34 views

Update mutiple records in database MVC 5 EF

Good evening, Now I'll describe my situation: Here is my Model: [Table("Items")] public class Item { [Key] public string Id { get; set; } public DateTime Generated { get; set; } ...
0
votes
1answer
37 views

Unwanted attribute in code-first .NET database

I've been working ono an ASP.NET MVC Web Application, and I have run into a problem I can't solve. I have the following classes: public abstract class QuestionAbstract { public int Id { get; set; ...
1
vote
1answer
16 views

Adding header to action request and response

How can I add a HTTP header to all action calls in ASP.NET MVC. Looking at the IActionFilter but could I interact with the HttpRequestMessage instance if I was to use it?
0
votes
1answer
17 views

How can add to Session without erase previous value in asp.net?

I'm new in asp.net want to add value to session without erase previous value,write this code: Session["behzadList"] = BookIDI.Trim(); but that code when run erase previous value and add it to ...
0
votes
0answers
20 views

How to do things properly with MVC, Automapper and Entity Configuration's constraints (IsRequired)?

I'm currently facing an issue with MVC, Automapper and Entity Configuration, and I need your help ! I've been searching it for a while but did'nt find anything about it... Actually, I have three ...
0
votes
0answers
17 views

Adding an object datasource to an SSRS report in an MVC Project

I have added an SSRS report to my MVC project, but when I go to add a dataset all I have in the data source wizard is SQL data connections. I had worked with SSRS reports in the past and I was able ...
1
vote
1answer
21 views

Can I call any method in XmlHttpRequest not only GET, POST, PUT

Can I call any method in XmlHttpRequest not only GET, POST, PUT ? *More Information: * I have Controller named equal = AccountsController In Controller I have method named ...
0
votes
1answer
14 views

Using angularJs mvc How to Redirect from one page to another page when we select value from autocomplete

Here i did upto binding values into autocomplete text but when i select the value why its not transfor that page please Guid me public class CoursesList { public int Id { get; set; } ...
0
votes
1answer
14 views

Get custom error message with Ajax form

I'm using an ajax form with this initialization on the view: @using (Ajax.BeginForm("EditUser", "Admin", new AjaxOptions() { HttpMethod = "POST", OnSuccess = "AddEditSuccessul", OnFailure ...
0
votes
1answer
13 views

passed model of asp.net identiy user have wrong id

I have a very confusing issue ... I have a controller called "UsersController" on that controller I list all asp.net identity users together with a link to edit each user. The view that list all ...
1
vote
1answer
24 views

publish the Views in dot net core

In my app, after dotnet run I was able to see the view called by: return View("~/Views/v1.cshtml"); and I got the Views folder copied in the publish folder after adding in my project.json the below:...
-1
votes
0answers
11 views

Cut audio / Video using ffmpeg on the server [on hold]

I am rebuilding a project that I built with meteor js from scratch using asp.net mvc and c# the project is basically used to cut audio and video given the start time and the end time using ffmpeg on ...
0
votes
1answer
27 views

Setting connection string after publishing on IIS Server

I have two projects, an asp.net MVC project called Home and a c# class library project called Home.Dao. Home is a simple MVC Project with no connectionstring property in its web.config Home.Dao is a ...
0
votes
0answers
11 views

jquery dosen't work for each markers in google map API

hi i have google map v3 javaScript library api i use infoBubble for customize infowindow i have a link in infoBubble and a span button role in content for each markers in initMap fucntion. i want ...
0
votes
1answer
14 views

post table data to MVC action using ajax

Hi I have a web page with some input field and the datatable to handle some client-side actions. I am using ASP MVC to control the server side process and i am quite stuck at how I can submit the form ...
1
vote
1answer
51 views

How to create response from dictionary?

I am trying to create below response from dictionary: ['Employee1'] : List of skills Code : public class Skills { public string Skill {get;set;} } var skills=FetchSkills(); var dictionary = new ...
-7
votes
0answers
28 views

wants a textbox that can only allow six letters. Once it is full, it automatically goes to the next textbox [on hold]

we want to make a custom control text box in MVC a textbox that can only allow six letters. Once it is full, it automatically goes to the next textbox and if next control is drop down then open it.
0
votes
1answer
39 views

How to upload files in an Asp.net MVC 5 application

I'm trying to upload files in my application. I've used HttpPostedFileBase in my model and a byte[] array but don't know why this error is showing when i'm running my application. Below I've also ...
1
vote
1answer
12 views

Filter by DateTime Range MVC 5

Good evening everyone, I home, anyone can help my with Date time range filter on view part. Here is my model: public class IndexVM { public DateTime? StartDate { get; set; } public DateTime? ...
0
votes
1answer
14 views

how to get instance of usermanager in asp.net identity in custom controller

How can I in my custom controller get an instance of ApplicationUserManager so that I can find a user by its id and then be able to update the user?
0
votes
2answers
22 views

jsGrid won't render JSON data

I'm trying to use jsGrid in my MVC project as the client would like inline editing and filtering. However, I cannot get it to load my JSON source into the table. My js to load the table looks like so: ...
0
votes
0answers
18 views

Error on external login with facebook

The past 2 days I'm struggling to fix the error I'm getting when I try to login to my site using Facebook authentication. The error I'm getting: How can I find what causing this problem? I debugged ...
0
votes
3answers
22 views

I want to use Url.Action with Knockout

I am new to knockout and I am having trouble getting the syntax right when using it with MVC markup. For example this code here; <a href="text.Answer" target="_blank"> <span style="...
0
votes
1answer
12 views

List in Model in DB keeps on changing its order

my db looks like this: public class BrContext:DbContext { public DbSet<Conversation> AllConversations { get; set; } public DbSet<ChatReference> ChatReferences { get; set; } public DbSet&...
1
vote
3answers
30 views

In asp.net-mvc, what is the correct way to do expensive operations without impacting other users?

I asked this question about 5 years ago around how to "offload" expensive operations where the users doesn't need to wait for (such as auditng, etc) so they get a response on the front end quicker. I ...
-1
votes
1answer
9 views

Security concerns regarding unique JWT token in asp.net web api c#

I have created an asp.net MVC web API application which uses JWT token to authorise the users after normal login. I am able to implement it correctly but I have following concerns regarding security:...
0
votes
0answers
22 views

When scaling asp.net-mvc website, what are the top things to focus on in terms of priority?

I asked this question on server fault around web site scalability but this was more focused around hardware configuration, increasing memory, etc. So i thought I would ask it here as well as there is ...
-1
votes
1answer
17 views

Popup in Listview

I have a Listview which consist of field called description(Which can be lengthy) now i want to set read more and when user click on read more it should give full description in popup. Code Designing ...