Questions tagged as 'asp.net'

1
answer

Asp Net Core MVC - Create Multiple Form

It's the first time I ask a question, and I'm getting used to the page, so forgive me if I make a mistake. I'm new to Asp Net Core MVC and I'm getting a lot to understand some things. The one that is preventing me from continuing my work the...
asked by 06.07.2018 / 00:10
1
answer

How to add fields dynamically and link them to the viewmodel in Asp.Net

I have a 1: N relationship between Person and Contact. In my view, I can list all the contacts of a client when it is opened. Ineedtoimplementthe"New Contact" button so that when clicked, dynamically add the fields (Type of Contact, Contact,...
asked by 01.09.2018 / 12:47
1
answer

Redirect ActionResult

Good to all. I'm trying to redirect from one Actionresult to another and have tried everything ever without success. At this point I find the following code: [AllowAnonymous] public ActionResult Index_GA_ER(string tkn)...
asked by 18.07.2018 / 12:06
1
answer

Problems with embedding masks in PartialViews - Asp.Net Core

I'm having problems with bootstrap on all screens. I found the following interesting: All my Views that are returned in the form of "PartialView", the input masks do not work. For tests, when I create a View and a controller that returns a View,...
asked by 11.06.2018 / 13:14
1
answer

Validate fields with OnClientClick

I'm trying to call a JavaScript function through OnClientClick . The problem is that when running in the browser it does not validate the fields, it is as if the function was simply not called. JavaScript: function VerificaCamp...
asked by 18.04.2018 / 14:56
1
answer

Import data from an excel spreadsheet into the Database- Epplus

Gentlemen, I have the following problem: I created the code below, I made some changes, however I can not import my file. My application is in .NET , and the database is the Oracle Sql , and I have adapted the EPPLUS library. If anyone has...
asked by 15.02.2018 / 18:08
1
answer

mounting a RegEx

I'm picking up a bit here to mount the Regex of a pattern I put together, which would be this: ALTERAC[AO,OES] [DE] CADASTRO[S] [-] SOCIAL What is between [ ] is what can vary. The doubt is that in the words "DE" and "-" may or m...
asked by 05.04.2018 / 16:11
1
answer

String size exceeds the value set in the maxJsonLength property

I'm trying to generate a Json file from a SELECT of the SQL SERVER 2016 table. There are about 4713 rows, this is in excess of the value set in the maxJsonLength property. Can I exceed this set value? Web.config <s...
asked by 13.04.2018 / 00:01
1
answer

Why this @Html.DropDownListFor does not accept htmlAttributes?

I have a View that will be read-only in some cases. And I do not want to use javascript because it can be disabled on the user side. In the end ... When I do this (for testing) it works perfectly. <div class="form-group"> @Html.LabelF...
asked by 16.11.2017 / 11:50
1
answer

Single entry in ASP.NET form

I have a code that makes the register of certain types of equipment, the form fields that I have are: Name, Server, Type and Port of the equipment. I would like the user not to register two devices with the same port and I do not know how to...
asked by 03.07.2017 / 15:08