Questions tagged as 'asp.net'

0
answers

How to create the event for a textbox in runtime?

foreach (SobralFoodContext.Produto produtos in categoria) { string str = "<div class=\"col-sm-4\"><div class=\"card\"><div class=\"pricing-list dark-pricing\"><div class=\"prc-head\"><h4>" + produtos.Nome + "<...
asked by 12.12.2018 / 14:07
1
answer

Doubt with Update in Asp.NET MVC

Sorry for the question, I'm learning Asp.NET with EF and I'm having trouble performing a specific Update. I want to make a system where there are cash transactions between accounts. The structural part is ok, but the problem is this: When...
asked by 25.11.2018 / 23:28
1
answer

Generating fields by ASP.NET code

I'm doing a web application with ASP.NET and C #. In this application I can register multiple items of the same type, so it has a text field and a side button to create new text boxes. I have already worked with this in the desktop app, but I...
asked by 19.03.2014 / 17:52
1
answer

returning blank autocomplete

I do a search in my database to search for product names without exceptions (I do not know if it's relevant, but this return is a string list) var listaDosProdutos = _servico.ObterNomeDosProdutos(); Then I take this list and do a search of...
asked by 26.11.2018 / 19:15
0
answers

System.MissingMethodException: No parameterless constructor was defined for this object

I'm getting the following error:    System.MissingMethodException: No parameterless constructor has been defined for this object. My Controller: using BecomexTeste.Models; using BecomexTeste.Models.BracoViewModel; using BecomexTeste.Ser...
asked by 14.11.2018 / 15:10
0
answers

Validate fields on the Modal Bootstrap 4 screen with Asp.Net MVC

Hello, I am doing a CRUD in an Asp.Net MVC 5 application using modal screens bootstrap 4. My template class has required fields using data annotation. But when one of the required fields is not informed, I can not display the review on the mo...
asked by 05.11.2018 / 01:18
0
answers

The provider for MySqlClient of the Entity Framework can not be loaded, in ASP.NET application

I did some studies on American StackOverflow regarding this case and I was not successful. When I try to access my link page, I get the message below:   The Entity Framework provider type 'MySql.Data.MySqlClient.MySqlProviderServices, Entit...
asked by 04.11.2018 / 17:46
0
answers

Programming logic. Asp.Net Mvc

I'm trying to create an e-commerce. Where I have a product, this product may have several different colors and sizes, for example: I have an X product. Of this product X I have a total of 50 in stock. of the 50 that are in stock. 20 são Amarel...
asked by 03.11.2018 / 20:10
0
answers

Async Programming

Well I have some doubts about asynchronous programming. I'd like to know more about how AsParallel() works in a List<Task> list. That is, if the tasks of this list is executed in parallel. Code sample: var listaTaref...
asked by 31.10.2018 / 14:02
1
answer

Pass the id value from one view to another - Asp.Net MVC

I have the following view where I have a list of articles registered in the database, there I have the evaluate button that redirects to another view where it is in another controller, I want to pass id of the selected article to another control...
asked by 01.11.2018 / 03:14