Questions tagged as 'razor'

0
answers

Error: Incorrect syntax near 'OFFSET' RAZOR MVC WEBMATRIX

Good I have the following error and I do not know where it will be originated Incorrect syntax near 'OFFSET'. Invalid use of the NEXT option in the FETCH statement. eh tried everything but I can not solve the problem, here I leave the code...
asked by 16.11.2017 / 17:22
1
answer

Error retrieving record from the DB in the Data layer for use in an ActionResult within the ASP Controller. Net MVC 5

I am running a billing system in ASP .Net MVC with 3 layers. I just need to record the detail of the sale, because the sale already inserts me. In the case of the detail I extract all the fields that are required to insert the detail, except t...
asked by 25.07.2017 / 06:33
1
answer

HtmlHelper for a FILE type input

I have a little doubt, I need to generate an input of type File to save images in my BD, I'm using razor views in asp.net mvc 5, but I can not find how to do it by HtmlHelper , but I see that gives you none for this type of input, any idea...
asked by 14.07.2017 / 22:44
1
answer

Error recognizing data model field with ADO.NET and ASP.NET

I am using Web APIS but only in the Controller. In my view I can not access the model, it tells me that a use is missing or something like that. What I want is to generate a type type input to capture the value and filter by customer name....
asked by 05.07.2017 / 03:01
1
answer

Put a checkBox as "checked" using an HTMLHelper

my question is short, in which part I must add the property of checked in my HTMLHelper , since I must show it by default as selected, I looked in the microsoft documentation but found nothing about it :( so I tried to do it, but...
asked by 20.07.2017 / 23:41
4
answers

Error Creating Partial View

Trying to do a partial view in ASP.NET with C #, it throws me the following error, it is worth noting that I try to do it in different ways and it keeps marking the same error, it is the first time it happens to me with a view and I do not have...
asked by 22.06.2017 / 20:28
0
answers

Validations with Data Annotations in the Entity framework do not work

I have a form made in Asp.NET MVC using Entity framework for persistence and using Data Annotations to validate the fields. The problem I have is that the validations do not work, I want to put fields with null value, I want to save the fields a...
asked by 12.06.2017 / 19:01
0
answers

Error when including a webform file in a view for MVC C #

Along with saying hello, I wanted to ask for your great help: It turns out that I want to incorporate in a view, a partial one that is a webform: I have a view called See: public ActionResult Ver(){ return View(); } in the cshtml I call...
asked by 18.05.2017 / 07:39
1
answer

Assign the default value to EditorFor, with current team date

Rescue the date with DateTime.Today or something else and assign it to the EditorFor, since the date is a string. <div class="form-group"> @Html.LabelFor(model => model.fecha, htmlAttributes: new { @class...
asked by 01.06.2017 / 05:26
3
answers

Error loading form data

I'm making a form that loads data and shows it in a view with MVC. Customer.cs using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Formulario2.Models { public class Customer {...
asked by 21.04.2017 / 21:36