Questions tagged as 'c#'

1
answer

With identifying if the access is internal or external?

I have an application in asp.mvc that has 3 (three) access types, 2 internal and 1 external. Internal access is done by LDAP and the external one by a user table. No entanto o usuário externo também pode está na rede interna.(aqui é a xarada)...
asked by 14.05.2018 / 14:47
1
answer

View call @ controller model [closed]

I use EF Design and I import all my models from the bank to .EDMX . I ask: How do I call the controllers objects I create within a View ? I have tried to put @model up to controller and it will no...
asked by 06.01.2018 / 02:13
1
answer

Refresh console row with C #

I've already asked this same question once, but in that case I needed it for the python language, now I need to solve this same problem with the C # language I have a loop in C # , and I would like to enter the value of a variable each time...
asked by 13.12.2017 / 11:57
1
answer

Store / Load generic types in Redis with C #

Scenery I created a function using AOP to do information cache, when the method is called I store in Redis using cache.StringSet , but when I need to capture back the value of Redis I need to return the same type as I received, I know...
asked by 11.12.2017 / 19:32
1
answer

How to use a hyphenated parameter in an HTML Helper?

Hello, I'm using the ASP.NET MVC Data Annotation in the C # language, but I'm not able to pass data-toggle on helper CheckBoxFor : @Html.CheckBoxFor(model => model.ReceberEmail, new { @class ="fo...
asked by 14.12.2017 / 14:05
1
answer

C # - Check if dates are missing in the selected date range

I have the following SQL SELECT dt_finished::date AS "DataFinalizacao", count(DISTINCT tba.id_batches) AS "Quantidade Total" FROM tb_batches AS tba INNER JOIN tb_routes tro ON (tro.fk_id_products = tba.fk_id_products AND tro.fk...
asked by 08.12.2017 / 18:19
1
answer

Root and power in C #

I need to do root and power calculation according to the logic that I'm following .. until now I'm fuming using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq;...
asked by 27.02.2018 / 04:58
1
answer

How to manipulate different data in the combobox at runtime

I have a textfield field and a combobox next to it ... Follow the image I want to make, given the value in the textfield field, that by clicking on another combobox item , convert textfield strong> to the corresponding element...
asked by 23.02.2018 / 20:56
1
answer

How to clean an @Html.TextboxFor using JavaScript?

I'm trying to clear the value entered in the TextBoxFor field from the following form shortly after the submit. @BHS_Treinamento.WebApi.Models.Curso @{ ViewBag.Title = "Cadastrar"; } <h1>Cadastrar</h1> @using (Html.Be...
asked by 23.02.2018 / 19:32
1
answer

Registering the value of a variable in a table

I'm trying to save data from 2 variables in a table, but when I look at the table in the database the values are recorded as 0. public void inserir(List<Conta>list) { List<Conta> lista = new List<Conta>();...
asked by 24.02.2018 / 21:26