asp.net-mvc-4 Questions

4

Solved

I have an MVC4 project, and I am trying to get it working on URLs like /QRCode/address/amount. Here's how it is declared: Route: routes.MapRoute( name: "QRCode", url: "QRCode/{address}/{amount}...
Organism asked 16/12, 2012 at 19:34

2

Solved

I have an MVC 4 application that sends out multiple emails. For example, I have an email template for submitting an order, a template for cancelling an order, etc... I have an Email Service with m...
Champac asked 22/4, 2015 at 16:24

7

Solved

I using default ASP.NET MVC 4 validation bundle in my application. In view I have a date field in the format of "dd/MM/yyyy" and jquery validation failed to validate the format. Then I added the be...
Markup asked 31/12, 2013 at 6:16

11

Solved

I have just installed the mvc4 rc update and I am trying to build an api application with little luck. I am using ninject but cant get my controllers to load. I keep getting an error Type 'Api....
Langan asked 1/6, 2012 at 11:8

4

Solved

I have a MVC4 web app with the following controller [Authorize] public class AccountController : BaseController { [AllowAnonymous] public ActionResult SignInRegister(LoginModel loginModel, strin...
Rufinaruford asked 2/7, 2013 at 15:39

4

Solved

TemplateController: this works: return PartialView("_Create"); but this does not work: return PartialView(); The asp.net mvc convention should actually check a View folder with the name of ...
Cambyses asked 28/4, 2012 at 21:51

6

Solved

I am trying to execute below code. My goal is to check whether any user exists with the given email id or not. var result = userDbContext.users.SqlQuery("SELECT * FROM USERS WHERE @email='@emailVa...
Phio asked 18/4, 2014 at 11:33

3

Solved

I have problem in which i would like to create N, two in the example, user objects (e.g. Customer & Supplier) which all inherent from the asp.net IdentityUser object. These object have very dif...
Geographical asked 21/11, 2014 at 10:20

6

Solved

What is the preferred method for using raw websockets in an ASP.NET Web API application? We'd like to use binary WebSockets on a couple of our interfaces of our ASP.NET Web API application. I'm ha...
Endoenzyme asked 4/9, 2014 at 14:42

59

Solved

I have a test class and below I have posted a sample test from the test class namespace AdminPortal.Tests.Controller_Test.Customer { [TestClass] public class BusinessUnitControllerTests { priv...
Ivanivana asked 19/8, 2013 at 10:3

15

I have a form: @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) { @Html.AntiForgeryToken() @Html.ValidationSummary()... and action: [HttpPost] [AllowAnonymous] [ValidateAntiForger...
Resilience asked 1/5, 2014 at 4:53

2

Solved

I am using master layout of Razor MVC that have something like this @RenderSection("scripts", required: false) And have partival view _partial.cshtml That have this @section scripts { @Scri...
Pleomorphism asked 4/12, 2014 at 9:42

30

Solved

I have 4 projects : Toombu.Entities : all models are there Toombu.DataAccess: Mapping, Repository and ToombuContext Toombu.Logique : Logic of my application Toombu.Web : MVC 4 application. With all...
Extrasystole asked 11/5, 2013 at 14:9

3

Solved

ASP.NET is 'normalizing' backslashes in requests paths to forward slashes, and I need them to come through as backslashes (it is used to perform a look-up in the database). I don't mind if escaped ...
Soso asked 29/11, 2012 at 11:7

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

8

Solved

I have a Textbox with type as date. I am trying to set default value of the textbox to current date. @Html.TextBoxFor(x => x.Date, new { @id = "Date", @type = "date", @value = DateTime.Now.To...
Hypopituitarism asked 17/10, 2014 at 4:54

6

I am asp.net death page, this is coming after i upgraded webgrease and bootstrap for mvc4 using nuget. Server Error in '/' Application. Could not load file or assembly 'WebGrease' or one...
Frentz asked 16/7, 2013 at 7:36

7

Solved

I'm trying to learn Claims for MVC 5 OWIN login. I try'ed to keep it as simple as possible. I started with the MVC template and inserted my claims code (see below). I get an error when I use the @H...

10

Solved

I'm new to the C# MVC project type and when I created an empty C# MVC project, I noticed the following error: The view 'Index' or its master was not found or no view engine supports the searched l...
Him asked 8/8, 2014 at 18:28

8

Solved

Please let me explain the setup. I have a Change Password Controller/Action and View. Here are the Action Signatures in my Account Controller: public ActionResult ChangePassword(ChangePasswordMe...
Teplitz asked 17/7, 2014 at 12:45

27

Solved

After significant refactoring in my MVC 4 application, and Razor shows this error while debugging Views: The name 'model' does not exist in the current context. This is the offending line of c...
Weltanschauung asked 31/10, 2013 at 1:38

17

Solved

I'm trying to navigate to a page which its URL is in the following format: localhost:xxxxx/User/{id}/VerifyEmail?secretKey=xxxxxxxxxxxxxxx I've added a new route in the RouteConfig.cs file and so ...

2

Probably very silly issue but looking for help on this . I am adding MVC Fluent validation rules to model property but for some reason one of the validation rule is failing. Added a regular expre...
Unprofessional asked 17/12, 2014 at 22:56

6

Solved

I have a custom made class that use a long as ID. However, when I call my action using ajax, my ID is truncated and it loses the last 2 numbers because javascript loses precision when dealing with ...
Cadmarr asked 28/6, 2013 at 16:19

23

Solved

I am using Membership.create user function, then the following error is occurring, The required anti-forgery form field "__RequestVerificationToken" is not present How can I fix this?
Darrick asked 19/4, 2013 at 10:52

© 2022 - 2024 — McMap. All rights reserved.