Questions tagged as 'asp.net-mvc'

1
answer

Short date submission not working abbreviated asp.net mvc

I am creating a form in ASP.NET MVC and creating the field "DataMessage", at first I put the TextBox to load a date with the month in full, as below: Image of the form with the field "Message date" containing the month in full. Be...
asked by 28.06.2017 / 19:26
2
answers

Web system accessed by several companies appsettings

I'm developing an ASP.NET Core application, where each company owns its database. The question is: how can I do for the company to access the site by putting user and password and access information of it, remembering that there are several comp...
asked by 01.05.2017 / 07:56
1
answer

How to create a View for screens smaller than X

I have a MVC4 site, which is not responsive, and changing its entire implementation just to make it responsive does not seem productive at all because it's a site where many people worked and there's a lot of " give me life My idea was to cre...
asked by 25.05.2017 / 21:52
1
answer

Doubt with List C #

After querying the data, keeping them in memory and using the "Contains" to find a product, what would be the best way to do this? I thank you I have my DAL: public class BuscaProdutosDermaDAL { private Contexto contexto;...
asked by 26.05.2017 / 15:26
1
answer

Receiving Token via WebRequest?

Personal is there any way I can generate a token through a WebRequest? Because every time I use the Google Drive function, I need to open the authentication page only to generate the access Token, is there any way I can do it through WebRequest?...
asked by 05.04.2017 / 16:34
1
answer

Routine to download and unzip zip file on the server itself

I need to develop a routine on my site (ASP.NET MVC) that will download a weekly zip file from another server and unzip it on my own hosting service. This routine can be triggered via a button that checks the file's availability and executes...
asked by 30.10.2017 / 21:58
1
answer

Validate StreamReader twice

I get a .csv file in my Controller . This file can contain two templates , with 2 or 5 lines. First I have to do the validation to check if the file contains 5 lines: var arquivo = new StreamReader(model.Arquivo.InputStream, Encoding.UTF...
asked by 28.04.2017 / 22:23
1
answer

How to call a bank function from code

I would like some help, I have the following function that is in the database postgres CREATE OR REPLACE FUNCTION public.get_id(campo character varying) RETURNS integer AS $BODY$ DECLARE _id integer; BEGIN select into _id vlr_c...
asked by 29.08.2017 / 17:17
2
answers

DropDownListFor selected values do not persist

I'm using ASP.NET C # with mvc 4 and in my View I have a DropDownListFor, with a class I used from bootstrap-multiselect, as in the image: Andthecodeintheview:@Html.DropDownListFor(m => m.Estagios, (IEnumerable<SelectListItem>)Model...
asked by 02.08.2017 / 17:43
1
answer

Notifications with SignalR

I want to create a notification system in my web app (MVC) using SignalR 2. When someone in the app does a certain action some users (not all and not always the same) should be notified. Something similar to what we have here in the OS when s...
asked by 02.02.2017 / 20:11