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
0answers
4 views
Using TextBoxFor to set HTML attributes that have a namespace prefix
I am converting some existing HTML to work with ASP.NET MVC, and have some forms containing input fields that have additional attributes (that, for now, I need to preserve) that contain a namespace ...
7
votes
2answers
310 views
ASP.NET Compiler complaining of mismatching framework versions with MiniProfiler
I have an MVC3 project that I upgraded from VS2010 to VS2012. The project also has a reference to MiniProfiler. Our application compiles and runs fine in VS2012 without any warnings/errors. Both ...
0
votes
0answers
8 views
multiple login page in asp.net mvc
I have an mvc 4 application, where I have to define multiple login pages, one for each role type user.
Is there any way to do this? trying to configure multiple login pages inside the location tag ...
0
votes
2answers
80 views
Spa hot towel user authentication module?
I installed hot towel template. However, unlike the built-in spa template, there is no log in code. Can I create an empty project using visual studio built in spa template and copy the login code ...
2
votes
3answers
73 views
Include script once and only once in a custom Editor
So I'm trying to create a custom editor so that for a DataType of "Duration" a textbox appears with a masked format of HH:MM:SS.
I've created a very simple piece of code so far
@Html.TextBox("", ...
0
votes
1answer
18 views
MVC 4 Routing Listing page and Detail page
I am having to do a 'hack-around' getting simple routing to work as I need.
site.com/Event <--- controller = Event, action = Index
site.com/Event/{id} <--- controller = Event, action = ...
0
votes
0answers
5 views
Restructure syntax to remove existing open DataReader in MySql/net connector error
I am converting an application which used to work with mssql to use mysql and I am been punished for the lack of MARS in mysql .net connector. Can anyone help me restructure this syntax perhaps in a ...
0
votes
1answer
15 views
Convert Asp.Net MVC/ EF application to NoSQL application
We are thinking about convert Asp.Net MVC/EF/SQL application to NoSQL application to improve development speed and application speed. It looks like there is mixed response on ravendb, I want to know ...
4
votes
4answers
83 views
Url.Action Assumes Additional RouteValue
I have a partial page containing the following javascript:
var url = '@Url.Action("Details", "Users", null)/' + userID;
This works fine on every page, except for pages with the url structure:
...
0
votes
1answer
18 views
Lifetime and multiple use of an AntiForgeryToken?
I'm trying to implement antiforgerytokens to an angular application's ajax requests.
Is there a lifetime attached with the antiforgerytoken? If I have the app open for a long while in a web browser ...
0
votes
0answers
21 views
Knockout Js Binding
I am working in Asp.net mvc4 and using web api trying to bind WebApi Json Result to Knockout Js but the below binding not showing any value in text box or span
<input type="text" ...
1
vote
5answers
62 views
EF code-first how to use POCO objects in client layers
I'm new to asp.net MVC and EF, so excuse me if my question is not clear or easy.
I have read some tutorials about EF Code-First approach and now I'm trying this tutorial Getting Started with EF ...
22
votes
2answers
2k views
Turning off the WebFormViewEngine when using razor?
I downloaded Glimpse this morning to try it out and noticed this when I click on the views tab:
It checks all of the loaded view engines. I found where the RazorViewEngine is specified in ...
-1
votes
1answer
32 views
Missing Assembly Reference And Method must have a return type?! MVC 4
im working in mvc 4 and try to implement jquery file uploader.
but in my FileStatus class and UploadHandler give me several errors.
-namespace FileStatus cannot be found,
-Method FileStatus need a ...
0
votes
0answers
11 views
How can I troubleshoot the email functionality of Elmah - asp.net mvc
I've integrated Elmah with my Asp.net MVC3 project with SQL logging and it's working fine except for the email functionality. I'm using gmail smtp. I am using the same information to send emails from ...