Questions tagged as 'asp.net'

0
answers

How to get "x_" from Html tags in outlook with ASPNET

I have the following problem when sending an email with my application, at the time of opening the email, the Outlook provider modifies the template tags by placing the "x _" at the beginning of the name and id attributes of the tag. Hom...
asked by 25.07.2018 / 21:30
0
answers

Does Swagger 3.x work with .net 4.7?

I'm trying to create Swagger Answer and Entry examples but I'm not succeeding. So far, the most I've been able to do is to create the MOCK of the request input, the output I'm not getting. Follow the code below: [SwaggerRequestExample(ty...
asked by 18.07.2018 / 23:01
0
answers

ASP.NET MVC - Change input to dropdown and popular with table values SQL Server

I have a partial view (in this case, one of those Razor Pages) of type "Create" created from a table in SQL Server (which is stored as entity of a template in my application). @model Candidaturas.Models.DadosPessoai @using (Html.BeginForm("A...
asked by 01.08.2018 / 18:39
2
answers

Creating a foreach with result of a query coming from the Entity

Hello, I'm trying to make a foreach with a query result, the field I need to go through is a string, but at the time I step into the foreach it is being transformed into another value. I need to compare two date, in case the conversion of the...
asked by 20.06.2018 / 16:00
0
answers

How to change angular version within an asp.net core project

I have an Asp.Net Core 2.0 project. Well, I need to now build some screens to make a CRUD using Angular . You should use the Angular 6 , here in the company. Well, when I added this Solution to the project in Angular the version of this...
asked by 13.07.2018 / 20:04
0
answers

Paging with checkboxes in the grid loaded with Linq

On my page there is a grid with pagination. It has fields to check that can not be lost when paging, but my grid is being loaded by Linq. I tried to do it this way but it did not work: protected void grdControleUnimed_PageIndexChanging(obje...
asked by 22.06.2018 / 20:36
1
answer

Convert Time 24 hours to 00 hours

I have an account in int, that I need to return it for hours, and it is working perfectly, the error occurs when the time appears 24, and it should appear 00:00. Here's how I'm doing: string horaStg; decimal valor = int.Parse(item.HoraInicio);...
asked by 06.06.2018 / 15:22
2
answers

asp.net core 2.0 authentication with cookies

I'm doing an authentication using cookies following the examples Custom Authentication in ASP.Net-Core Creating a simple login in ASP.NET Core 2 using Authentication and Authorization (NOT Identity) I was able to do, already checkin...
asked by 12.06.2018 / 14:53
0
answers

Bank Image Download with ASP.NET MVC5

I'm saving images to the database in varbinary format. byte[] arrayImagem = null; using (MemoryStream memoryStream = new MemoryStream()) { novaSolicitacao.Anexos.InputStream.CopyTo(memoryStream); arrayImagem = memoryStream.ToArray();...
asked by 11.06.2018 / 17:12
0
answers

Doubt to create TableAdapter with unsupported SQL command

I am creating a report in the ReportViewer however the SQL command I need to use for the Query is not supported by the TableAdapter PIVOT command. Command Used SELECT Descricao , Codigo , [012017] AS JANEIRO , [022017] AS FEV...
asked by 09.07.2018 / 15:01