The ASP.NET MVC Framework is a Microsoft web application framework that implements the model-view-controller (MVC) pattern. The latest release of the framework offers REST-style web services development capability, also known as Web API.
0
votes
1answer
8 views
asp.net mvc routing with $routeProvider
Is there any sane way to use these?
What I want to have - is a single page with a nav-menu and <ng-view> below it.
And all the routing should be angular's responsibility.
But, I'd like to ...
0
votes
0answers
3 views
Refresh Controllers/Views after Database Change in MVC4 Database First
My DBA decided to rename some fields in the database, so I refreshed my EF data context.
Now I'm wondering if I need to delete / re-create my controllers and views or if I can 'refresh' them without ...
0
votes
1answer
14 views
Entity - Automatically Create MVC Controller with dropdown
There's probably a really basic answer to this question but I am new to Entity and MVC and am getting used to the basics.
I'm trying to automatically generate a MVC controller for the main table ...
0
votes
3answers
38 views
C# Creating Multiple Custom Exceptions?
trying to create my first few custom exceptions in c#
I dont really understand the MSDN articles and why they have multiple instances of the same
public class CustomException : Exception
{
...
0
votes
0answers
13 views
Using EF to connect with existing Database
I had a project which contains a Database(SIS.mdf) in its App_Data folder.
Now I have a new MVC4 project. I manually added that database to my new App_Data folder by add existing item option on right ...
0
votes
0answers
14 views
How can I map a many to many relationship without a bridge using Automapper?
I have an asp.NET MVC 4 application in which I'm trying to use AutoMapper to map from our ORM objects to objects in a custom business logic layer I've created.
Here's the many to many objects I'm ...
0
votes
1answer
14 views
RedirectToAction in MVC3 returns “No route in the route table matches the supplied values”
I use this log in controller :
public ActionResult Index(LoginModel model)
{
if (model.usernam == "usernam" && model.password == "password")
{
return ...
0
votes
0answers
9 views
MVC4: model backing the 'SisContext' context has changed since the database was created. Consider using Code First Migration to update database
I asked this question before as well but I'm posting it again, hoping may b i can get help
Here it goes
When I try to Login with details that are available in database(SIS) I get this error.
The ...
0
votes
1answer
15 views
Populating Variables Declared in Model
I'm currently learning MVC 4 and Razor in Visual Basic.NET using this Lynda.com tutorial.
Right now, I have the main variables I want to be accessed throughout the website in a class called ...
-1
votes
1answer
21 views
How to use Simple Ajax Beginform in Asp.net MVC 4?
I am new in Asp.net MVC and i researched about AjaxBeginForm but when i apply codes it did not work.Can you share very simple example with Ajax Beginform with View,Controller,Model?
Thanks.
0
votes
2answers
34 views
ViewBag Data In Javascript/Ajax not passed in correctly
I have the following script.
<script>
$("#sendMSG").click(function () {
$.ajax({
type: "POST",
url: '@Url.Action("Action", "Controller")',
dataType: "JSon",
...
0
votes
1answer
33 views
ASP.NET exception: The value's length for key 'initial catalog' exceeds it's limit of '128'
I am self-learning ASP.NET MVC4, and setting up a simple website, I get the error as soon as I hit the register or login button on the site:
The value's length for key 'initial catalog' exceeds ...
1
vote
0answers
17 views
Adding Child Models at Runtime at the click of a link or button in ASP.NET MVC
I have been working on a MVC application for the past couple of weeks and I am currently stumped with a problem I have. The application has two entities
Application
Applicant
The Application can ...
0
votes
1answer
25 views
Creating a Custom Attribute ASP.NET MVC
Looking for some advice, I have a bool property value on a user object that indicates if the user is an admin.
I have some menu links on my view, which if your an admin I want to show(other wise dont ...
0
votes
1answer
24 views
Custom error on failed parameter binding
Normally on a web API action like this:
[HttpGet]
public async Task<Item> Get(Guid ItemId){...}
If the HTTP request contains no ItemId parameter, it will return 400 Bad Request with an ...