Questions tagged as 'asp.net-mvc'

1
answer

Error adding view in visual studio

Hello, I'm starting in ASP.NET MVC and am having this problem when adding a view, would anyone know what this error is about? Error:    There was an error running the selected code generator:       Exception has been thrown by the target o...
asked by 09.01.2018 / 04:15
1
answer

Duplication of Chat messages at the time of the Webinar (client side)

Hello, I have a chat that at the time of the webinar when receiving enough clients watching at the time of sending message, the same on the screen seems duplicate, but in the database does not save duplicate, follow the chat code. function salv...
asked by 28.12.2017 / 12:44
0
answers

Return Image (Database Blob)

I can not return the images from a controller. Below I explain all the encoding: I created a controller, and a view for this controller that returns the image that is in an Oracle blob field. It worked, usually with the controller and view be...
asked by 04.01.2018 / 00:45
0
answers

Binding wrong on select ASP.NET MVC option

When I give a form post to Controller , the binding on asp-for="VehiclePlate" takes value from option from select ( @vehicle.Category ). However, I want to get the text of option of select...
asked by 21.12.2017 / 17:02
1
answer

Failed to add reference to "System.runtime" in ASP.NET

I'm trying to install the latest "stable version" of Mysql.Data by NuGet package manager. The version in question is 6.10.5. When you try to install, the following message is displayed: Failed to add reference to 'System.Runtime'. Please...
asked by 18.12.2017 / 17:11
1
answer

Parameters between pages (ASP.NET Core / C #)

Hello, I have a question that I have researched a lot and did not get any concrete answers. I am a beginner in C # and ASP.NET, forgive me for ignorance. I have an ASP.NET Core MVC project. In it I have Page A and Page B. On Page A I ha...
asked by 28.12.2017 / 20:49
1
answer

AdminLTE: jQuery collapse

I'm trying to use the "box collapse" of the AdminLTE template (figure below), but when rendering dynamically it does not expand when clicking on '+'. I'm using the code below in a PartialView. I tried to use the delegate function of jQuery, b...
asked by 29.12.2017 / 15:12
2
answers

How to walk through a C # class?

I have DeserializeObject that fills a request class and items, in the items I need to go through this class to write the data, the way I'm doing is zeroing the records, how could I read the data? > public class Item { public string i...
asked by 13.12.2017 / 21:18
1
answer

MetaTag Description - Special Characters - Influence on SEO

My metatag description is made up of a text, which has accents . I create it in my Controller MVC and send it to view via viewbag . However, in my html text (via display page source ) is getting different encoding...
asked by 06.12.2017 / 14:23
1
answer

Retrieve parameter filled in in ActionResult

I have a problem that I have tried in many ways to solve and nothing. When loading the page the page is filled into a table a list, but when it is submitted the template is null, but if you query the Request.Form.ToString () property the values...
asked by 04.12.2017 / 18:21