Questions tagged as 'asp.net'

1
answer

"JsonResult" does not contain a constructor that accepts 0 arguments

I'm trying to return a JsonResult for my View, but it's returning the following error.    "JsonResult" does not contain a constructor that accepts 0 arguments Would you help me out? [HttpGet] public async Task<IActionResult> GetAl...
asked by 16.10.2018 / 19:07
1
answer

Problem when printing a report using ReportViewer

Problem I have several Report Services Client reports that when I try to print two possible errors happen: If rsclientprint.dll is not installed, the following message appears when I try to print the report: Ifrsclientprint.dllisinstal...
asked by 04.02.2014 / 20:02
2
answers

Limit query in index but not in combo

Good afternoon, In the company's ERP we have a query in the Index that is limited to 80 records. The problem is that in create we have combos that bring more than 150 records and also limiting to 80 records. How can I do to just leave in i...
asked by 05.10.2018 / 18:02
2
answers

Enter comma after checking more than one name

foreach (var user in users) { var strTypesModel = ""; foreach (var typesModel in user.typesModel) { strTypesModel = strTypesModel + typesModel.Name; } user.TypesModelAggregate = strTypesModel; } I want to insert a...
asked by 18.09.2018 / 16:31
1
answer

How to choose (depending on login) which master page to run?

I wanted something like this (this one does not work). Error "The 'MasterPageFile' property can only be set on or before the 'Page_PreInit' event." foreach (DataRow item in dt.Rows) { if (item["tipoLogin"].ToString(...
asked by 09.08.2018 / 19:08
1
answer

Error System.Data.Entity.Infrastructure.DbUpdateConcurrencyException while doing update with entity

Good morning. I need to do an update via entity and it accuses me of the following error: System.Data.Entity.Infrastructure.DbUpdateConcurrencyException: 'Store update, insert, or delete statement affected an unexpected number of rows (0)....
asked by 01.08.2018 / 13:43
1
answer

String in Entity Expression C #

I need to make a dynamic query similar to the example below String tabela = "NomeTabela"; Var x = db.("NomeTabela").ToList(); Something like that where the table name will change as needed.     
asked by 08.09.2018 / 13:37
3
answers

ASP.NET MVC Project Publishing

Good morning, gentlemen, I work with systems development, but until then I never had to make an online publication of an application of mine, since I always worked with ready projects, what is the best way and where to publish my project where I...
asked by 25.06.2018 / 15:21
1
answer

What is the purpose of ConcurrencyStamp and SecurityStamp in ASP.NET Identity?

The summary of both properties in the entity IdentityUser are in English: ConcurrencyStamp: A random value that should change whenever the user is persisted to the store. Translating would be something more or less like this:...
asked by 13.05.2018 / 07:14
1
answer

ASP.NET MVC after updating the packages does the default template get lost?

I'm new to this area, I'm "walking barefoot on the rocks" to learn ASP.NET, I use the VISUAL STUDIO 2017 Community 2017 Version 15.8.4. When creating a new ASP.NET MVC project visual studio generates an empty application with a menu. When up...
asked by 12.09.2018 / 19:15