Skip to main content

Questions tagged [asp.net-mvc-4]

ASP.NET MVC 4 is the fourth major version of the ASP.NET Model-View-Controller platform for web applications.

0 votes
1 answer
4k views

I work on asp.net core 2.2 web API using C# language I need to rewrite function below with best syntax and with best practice web API below get Excel file from upload and return Excel file it working ...
ahmed barbary's user avatar
2 votes
2 answers
164 views

I have an ASP.NET MVC project wherein I need to follow the open closed principles. The project converts a .csv file to a model from a database, but in the future we might also have to convert Excel ...
User1111's user avatar
5 votes
3 answers
754 views

How do I shorten these if else statements? As you can see, those elses are repeated. ...
Pop's user avatar
  • 387
2 votes
1 answer
186 views

I have the code below and I am looking for input as to how I can improve it. The main question here is should the code at the top in razor brackets be moved to the Controller and returned via a ...
Frazer's user avatar
  • 259
7 votes
1 answer
148 views

I'm checking each variable to prevent null exception, but still wondering can this be improve in much simpler and cleaner if you will be writing the same code? Please see the below snippet: ...
rpmansion's user avatar
  • 307
2 votes
2 answers
17k views

Our Project architecture is AngularJS + MVC + WebAPI. Angular JS would call MVC action and MVC action further calls API methods. Below are some of the action methods we used for calling api methods. ...
SivaRajini's user avatar
1 vote
1 answer
20k views

I have login page that looks like: It has a ViewModelBase and a ViewModel as: ...
niklodeon's user avatar
  • 193
3 votes
4 answers
434 views

The explanation I'm making a website for a hypothetical theatre to get a better feel of MVC web-applications in ASP.net. The idea is that there are newsmessages that are displayed on the homepage, ...
Bjorn De Rijcke's user avatar
1 vote
1 answer
324 views

Currently I am assigned to a project which has a standard view-flow, yet this flow is determined by whether settings are set to either true or false. So, for example, let the standard flow be ...
Dion V.'s user avatar
  • 529
5 votes
1 answer
3k views

I have a simple ASP.NET Web API project. Now I want to make all basic methods as asynchronous. I tried to do something, and it's working but I'm not sure that it was implemented properly. Please ...
Roman Marusyk's user avatar
3 votes
1 answer
539 views

My project manager is saying that there are many bad things in my code, but they are not helping me to correct it. Can you please specify the bad things they mean? I have 7 projects in my solution ...
Pankaj's user avatar
  • 127
4 votes
1 answer
11k views

The code below is the Index Action from a User Controllers. Basically this code returns a list of users from Azure Active Directory using Azure Authentication Library (ADAL). However I need to show ...
Luis Valencia's user avatar
2 votes
2 answers
155 views

I want to get the row of data that matches the user ID I have. Then I want to return that view to my view to be displayed in my textboxes for editing. Here's the action that gets called when a get ...
Kala J's user avatar
  • 542
7 votes
1 answer
160 views

I have a very simple form that is designed to update account expiration dates. I'm currently creating a View Model and sending that to the form, however, I still have to pass along a GUID so I know ...
Jonathan H's user avatar
2 votes
2 answers
2k views

I have a dialog that houses 6 security questions and 6 security question answers. I want to pass the data the user selects and enters from the view to the controller to save the data in session. ...
Kala J's user avatar
  • 542

15 30 50 per page
1
2 3 4 5
7