asp.net-mvc-3 Questions
3
Solved
I have a table in my db where one of the properties is an Html page (without the html, head and body tags), and I intend to put it in the middle of one of my views - say, I call a cotroller method ...
Irrelative asked 25/1, 2011 at 20:14
3
Solved
I know that I can use the filterContext to get to it. However, this is not very flexible if the action method parameter is named differently. This should work:
[HttpGet]
[NewAuthoriseAttribute(Som...
Mme asked 20/3, 2013 at 17:36
10
Solved
I'm adding an object to a list within an ASP.NET MVC 3 application using the following code but one of the properties of the object is giving me difficulties.
ls.Add(new UserRoleModel { UserRoleId...
Petey asked 28/6, 2012 at 14:12
4
Solved
Ok, so I really think I am doing this right, but the cookies aren't being cleared.
Session.Clear();
HttpCookie c = Request.Cookies["MyCookie"];
if (c != null)
{
c = new HttpCookie("MyCookie")...
Kele asked 25/2, 2011 at 20:44
4
Solved
My view is having issues finding a class located in one of my references.
This reference is to a dll built outside of the project.
The view always gives error:
The type or namespace name 'Compa...
Skiascope asked 7/3, 2011 at 17:54
9
Solved
I have an ASP.NET MVC3 project that uses Entity Framework 4.3 with the code-first approach. I use Migrations to keep the database up-to-date.
The project is under source-control and I have a numbe...
Sang asked 11/5, 2012 at 17:59
4
Solved
Currently I have a Item table and a ItemWaste table.
Both tables will have some fields, such as: Name, Amount, etc. But the ItemWaste table will have one more field, which is the TimeWasted.
I wis...
Nickelodeon asked 14/10, 2011 at 5:19
4
Solved
What is the best way to disable ASP.NET MVC controller conditionally?
I want to have an access to the controller actions if some value in web.config is "true" and 404 if it's "false"
Should I wr...
Manton asked 22/7, 2012 at 23:17
6
MVC App, client makes request to server, error happens, want to send the msg back to the client.
Tried HttpStatusCodeResult but just returns a 404 with no message, I need the details of the error s...
Nicky asked 10/2, 2014 at 16:26
4
Solved
While working over a windows domain intranet site (with <authentication mode="Windows" />) I came across the following problem:
[Authorize(Roles = "Domain Users, Domain Admins")]
public clas...
Afghan asked 25/10, 2012 at 6:40
6
Solved
Simple problem here (I think).
I have a form with a checkbox at the bottom where the user must agree to the terms and conditions. If the user doesn't check the box, I'd like an error message to be...
Nic asked 8/8, 2011 at 18:40
5
Solved
I am using JSON.Net as my serializer for a large MVC 3 web application in c# and the Razor view engine. For the initial page load in one view, there is a large amount of JSON dumped inside a script...
Dorton asked 20/8, 2012 at 17:35
42
Solved
I'm working on an MVC3 project and receive the following error:
Parser Error Message: Could not load type 'GodsCreationTaxidermy.MvcApplication'.
Source Error:
Line 1: <%@ Application C...
Pantomime asked 27/7, 2012 at 5:56
7
Solved
I'm having a problem where a controller action is called at least twice. I have a view that has another view as its layout page, and the view is called multiple times. If I remove the specification...
Grotesque asked 23/12, 2012 at 18:25
26
Solved
I am trying to deploy my web project and I keep getting this error:
Line 1: <%@ Application Codebehind=“Global.asax.cs” Inherits=“nadeem.MvcApplication” Language=“C#” %>
I looked at this p...
Brachycephalic asked 1/6, 2014 at 12:2
4
Solved
When I try to map an object that has a null string property, the destination is also null. Is there a global settings I can turn on that says all null string should be mapped to empty?
Formative asked 3/10, 2011 at 22:16
11
Solved
I am making an ASP.NET MVC application with the razor engine.
And I was wondering if it's possible to use Regions in a view.
something like:
#region blabla
<p>@Model.Name</p>
<p&...
Gignac asked 22/3, 2011 at 14:37
6
I'm trying to get an ASP.NET MVC 3 site running on IIS 6.0.
Currently when I request a page from the server it gives the following error:
Parser Error Message: This method cannot be called dur...
Humpback asked 7/1, 2011 at 14:45
16
Solved
I am having trouble with the AntiForgeryToken with ajax. I'm using ASP.NET MVC 3. I tried the solution in jQuery Ajax calls and the Html.AntiForgeryToken(). Using that solution, the token is now be...
Ruttger asked 23/1, 2013 at 6:18
6
Solved
I am pretty sure I am doing something wrong here. I have been developing a web app using MVC and Razor and I never thought of using the form element. Now so much has already been done with master p...
Telephonic asked 4/7, 2012 at 8:51
9
Solved
The Objective:
I have to print a PDF on a new tab after some tasks have finished correctly.
Steps: I want to execute a method that should go to the server, take the PDF and open it on a new Tab,...
Indehiscent asked 11/4, 2013 at 8:39
4
Solved
I have the following header of ASP.Net MVC page:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<NEOGOV_Ideas.Models.SubIdeaAdm...
Kaitlin asked 19/9, 2011 at 9:33
4
Solved
I have a jQuery function that on the click of a div element, gets that elements predefined ID value. What I want to do is load that parent elements children, so I'm planning to dynamically build so...
Crabb asked 2/11, 2012 at 15:19
4
Solved
I'm getting an error when I run my MVC3 application.
i:\Dev\mvc3Project\Views\Shared\EditorTemplates\SelectListEnum.cshtml(13): error CS0433: The type 'mvc3Project.UI.HtmlExtensions.HtmlAssist' ...
Anthiathia asked 9/3, 2011 at 12:23
5
I have a List<> binded with some data in Controller action and I want to pass that List<> to View to bind with DataGrid in Razor View.
I am new to MVC.Can any one help me how to pass and how...
Piece asked 12/6, 2012 at 10:28
1 Next >
© 2022 - 2025 — McMap. All rights reserved.