Questions tagged as 'asp.net-mvc'

0
answers

How to create child objects from a parent class in Asp .Net MVC

Greetings, I am trying to make a system of people registration, where a person can have several documents, I would like to know how I can create the documents when creating the person. Let's say that my Models are this way. public class Per...
asked by 17.07.2017 / 21:24
2
answers

Pass data from cs to cshtml MVC

I manage a project which must generate the body of a personalized email message (HTML) for this I have an auxiliary .cshtml file which is taken as the body of the message. To fill this body in the controller I have a class that obtains the selec...
asked by 03.07.2017 / 20:09
1
answer

C # Error Edit detail

Currently I have an error to edit the detail of an order, I want to pass the field iCode which is the code of the detail, but with this code I have the error that passes the code of the header of the order. In my view the detail is as follows...
asked by 26.06.2017 / 16:42
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
1
answer

Problems with ajax.beginform and client side validation

I want to do validations on the client side but I run into the following problem. If the model is not valid, I will return the view with the error messages in UpdateTargetId of the form, so that: The part of the code of the form...
asked by 17.06.2017 / 18:50
1
answer

Procedures stored in Controller Entity framework

I have a stored procedure that edits a record, the date field is with getdate() , I'm trying to use that procedure in my controller but I get an error.    No argument corresponding to the formal parameter has been given   required a...
asked by 23.06.2017 / 17:17
2
answers

Error using helper DropDownList

I have a database with sites, which I retrieve to save them in a database of billboards. I use DropDownList to recover the values, but when I try to save, it says:    Server error in the application '/'. There is no element   ViewData of type...
asked by 30.06.2017 / 22:21
1
answer

How to relate a model to ApplicationUser

I can not find how to relate my client model with ApplicationUser, I want a one-to-one relationship. Someone knows where the error is: public class ApplicationUser : IdentityUser { public virtual Cliente Cliente { get; set; } publ...
asked by 20.06.2017 / 22:50
1
answer

Get a value from web.config from a class library

I have an ASP.NET app that has a presentation layer, data, business, entities, etc. One of the peculiarities of the presentation layer is that in the beginning it executes a task in 2nd plane whose mission is to generate every X seconds the...
asked by 16.06.2017 / 18:36
1
answer

Autocomplete jQuery-ui does not show data in Html.TextBox

I want to use jQuery ui Autocomplete in a MVC C # application that uses a WCF service. In my controller I make the call to the service and the service consults the database and everything goes well, the controller receives the letter that the...
asked by 29.05.2017 / 18:46