Questions tagged as 'asp.net'

1
answer

Data type mismatch in criteria expression + Excel data manipulation

Analyze to see if the logic is consistent, please. The procedure for this code is: Query a procedure and store its data in DataTable : private DataTable ExportPerformanceEntrega() { try { String...
asked by 05.10.2017 / 14:35
1
answer

reference error .net 4.6.1 for .netStandart 2.0

I have a problem when referencing a Standart2.0 project in my api .net Framework 461; The following happens I have the class: public class MeuReturn : IHttpActionResult { private readonly string _objeto; public MeuReturn(st...
asked by 26.10.2017 / 00:47
1
answer

Error CS0012 The type 'Client' is defined in an assembly that is not referenced

Class manipulation with EF: ContextEF Contexto = new ContextEF(); public List<Cliente> Listar() { //var query = from c in Contexto.Cliente // select c; return Contexto.Cliente.ToList() ; }...
asked by 25.09.2017 / 23:52
2
answers

CPF Mask and Birth Date Asp.net MVC

My question is this: I created a simple CRUD and I am wanting to use masks in the fields of birth date, CPF and telephone. Functioncode%ofCRUD%:@modelWebApplication1.Models.Bdfinal@{ViewBag.Title="Create"; Layout = "~/Views/Shared/_Layout.c...
asked by 09.10.2017 / 03:49
2
answers

Validation with data annotations ASP.NET MVC works but does not display message

Good evening! I'm having a problem in my project where I'm trying to validate with date annotations and it's working, I just register in the database if I answer the validations, but the problem is that the messages I put to display along the da...
asked by 12.08.2017 / 02:17
1
answer

Force a SqlDataReader result

I have the following method: public ClassCardapio MontaCardapioEdit(string periodo, int tipo) { ClassCardapio cardapio = new ClassCardapio(_stringconexao); _conexao.Open(); var sql = $"SELECT " +...
asked by 04.08.2017 / 14:17
1
answer

Problem with accentuation

I'm populating a list in javascript with a ViewBag . The ViewBag has a list of objects and these objects have properties with accented words. They are coming correctly from ViewBag , but when I add the object to the javascr...
asked by 28.08.2017 / 19:03
2
answers

How to implement the Gentelella Bootstrap Admin theme? [closed]

I'm starting now with web development in Visual Studio. I have already understood the MVC, I have some knowledge of HTML and I started to study the bootstrap. I discovered this beautiful template Free Bootstrap 3 Admin Template Who has an exam...
asked by 04.07.2017 / 15:42
2
answers

Doubt Update Panel GridView

I have a GridView inside an Update Panel, but when I click on the GridView event, it does not happen, I tried to put it as a direct trigger in the selectedindexchanged event, but it does not work as well, it follows the code from my UpdatePanel...
asked by 21.06.2017 / 18:00
2
answers

Enter Button in Chrome and Firefox

I need to press the enter key when the user presses the button. I'm doing it this way, but it's not working in Google Chrome or firefox: if (!IsPostBack) { txtsenha.Attributes.Add("onkeydown", "if(event.w...
asked by 12.06.2017 / 14:55