Questions tagged as 'asp.net'

1
answer

Use Forms Authentication in an ASP.NET Core application

I'm migrating an ASP.NET Web site (.NET Framework 4.7) to ASP.NET Core (but still using .NET 4.7 as a "target framework" ) - The goal is to use Razor Pages, dependency injection, and other resources present in Core while maintaining more "tra...
asked by 25.08.2018 / 00:30
0
answers

ASP.NET - Associate controller with partial empty view

I have a partial empty Razor view that does not depend on any entity in my class model. I want to put two drodpowns with a button for each one that allows you to add records. For this, I will need a controller. How do I bind a controller to an e...
asked by 17.08.2018 / 15:41
0
answers

Save XML asp.net

Hello I have a webservice that receives an XmlDocument. This file necessarily comes with the following information: <nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="4.00"> <NFe xmlns="http://www.portalfiscal.inf.br/nf...
asked by 17.08.2018 / 21:39
0
answers

I have a ready-made ticket program but it generates the wrong barcode

I have a Macoratti program in ASP.NET that generates a bank slip but the barcode always has a 0 in the beginning of the numbers, how do I get it? private string CodigoBarras25I( string Valor) { int f, f1, f2, i; string s;...
asked by 26.08.2018 / 07:05
0
answers

rodape .net using css materialize

I'm doing a project in asp net but the footer is on top of the menu; What can I do? HTML <div class="container"> <div class="row"> <div class="col s10"> </div>...
asked by 22.08.2018 / 21:49
1
answer

How to load fields from the viewmodel dynamically in asp.net core mvc

I have a 1: N relationship between the Person and Contacts classes. In my view edit, I get a viewmodel containing a list of contacts. In my View, I made a for which you should scroll through the contact list and load a contact row dynamically. T...
asked by 30.08.2018 / 00:11
2
answers

Code-First Fluent API with complex classes in ASP.NET Core 2.1

Error while performing Add-Migration when using ComplexType classes. public class Cliente : EntityBase { public Cliente() { #region Create HashSet Properties Lists Dependences Titulares = new HashSet<ClienteC...
asked by 15.08.2018 / 19:02
0
answers

CSS - Switch does not change text when clicked

I have a checkbox that I turned into a switch so that the user could choose "Yes" or "No": yes when it is clicked, not when it is not clicked. When the switch is not clicked, the text "No" appears as expected. However, when I load the switch, th...
asked by 21.08.2018 / 13:03
0
answers

RadioButtonFor not presenting option checked correctly

I need to keep the radiobutton checked when the property VINC_ESTRAT_OPERA = 1 comes from the bank. However, all the controls are showing the last radiobutton arrived, regardless of the value. <fieldset> <legend>1. Possui víncu...
asked by 09.08.2018 / 16:58
0
answers

form does not upload file for upload

I have a form that I need to upload to an ftp. When I put it down the form does not load file. <form id="frmEnviar" name="frmEnviar" data-ajax="false" method="post" runat="server" enctype="multipart/form-data"> </form> Alrea...
asked by 30.07.2018 / 19:59