Questions tagged as 'asp.net-mvc-5'

1
answer

Datapicker with @ Html.EditorFor

I have the following model [DisplayName("Data Inicial Contrato")] [Required] [DataType(DataType.Date)] [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")] public DateTime DataInicialContrato {...
asked by 08.12.2016 / 10:56
2
answers

Log Generation with NLog?

I am using NLog , and for each client logged into the system I would like to create a behavior for generating logs as follows: [nome-cliente-1]-[dataAtual].txt [nome-cliente-2]-[dataAtual].txt Ex: Joao-da-silva-01-11-2016.txt I would lik...
asked by 01.11.2016 / 14:32
2
answers

How to redirect if user is unauthorized

I'm using in my application, roles and I'm trying to case, the user is not authorized, to be redirected to an error page. I'm using ASP.NET MVC com Identity , in internet search and here in StackOverFlow, I found some answers, bu...
asked by 28.10.2016 / 15:05
1
answer

Concurrent Use in Asp.net Applications [closed]

I'm starting to study programming in asp.net mvc (and trying to follow the DDD) and with that, I had a question about competing use: Asp.net already performs this control for me or I'm the one who should to control this with Threads in all that...
asked by 12.10.2016 / 18:33
2
answers

Error while executing project in Visual Studio 2015 - Process with an id 7256 is not running

I'm trying to run a project that I've developed and this error is occurring. Process with an id 7256 is not running. What should I do to solve this problem.     
asked by 01.03.2017 / 23:19
1
answer

Connection string for different users logged in

I'm doing a work and I came up with a possibility that I would like to know if it's possible to do it: the purpose of this idea is to switch a certain connection string as the logged-in user. That is, I will have a connection string...
asked by 18.11.2016 / 12:23
1
answer

How to return only the data ref. to logged in user

I have a table that returns the following data from a SQL Server database: Initial KM; Final KM; Liters; Value R $. ButIwouldliketoonlyreturntherefvalues.totheloggedinuser.InthetableintheDB,Ihaveacolumnthatsavestheusername(Note:Ikn...
asked by 01.12.2016 / 10:52
1
answer

How to show audio preview while playing? [duplicate]

Hi stackoverflow folks, You have an example GitHub , showing audio preview. How to do this in asp.net mvc? View: <audio controls style="width: 375px;height:225px;"> <source src="@Url.Action("StreamUploadedSong", "Acc...
asked by 30.11.2016 / 22:15
2
answers

Why does the background-image url look for the image inside the Content folder?

I have a CSS like this: #hero { height: 100%; background-image: url("~/img/bg-img.jpg"); background-position: top center; padding: 0; overflow: hidden; } When I squeeze, the image does not appear, when I have to i...
asked by 21.10.2015 / 22:50
1
answer

Differentiate list of items shown in View using "Individual User Account" Asp.Net MVC 5

I do not have much practice in programming and I'm creating a system for registering items like movies, books, games, etc. for a college job. The problem is that I need to use a user manager system so that in the view index of each item type sho...
asked by 25.02.2016 / 20:12