Questions tagged as 'asp.net-mvc'

1
answer

User property, utility and possible casts

For educational purposes, I was looking at the User property of the Asp.Net MVC Controller class. I saw a example , very interesting , that a base class for controllers has been implemented and it has the CurrentUser property:...
asked by 25.09.2014 / 15:24
1
answer

How to register a default user at the beginning of the application?

In an ASP.Net MVC application I need to have a standard user registry and for this I am thinking of adding it at application startup. In the Global.asax file I did the following: public class MvcApplication : System.Web.HttpApplicati...
asked by 27.09.2014 / 19:01
3
answers

Problem with users when publishing application

I'm using SQL Server 2012, and when I publish my application, both on the client server and on my pc everything works fine. The connection strings for DB is correct, everything looks fine. Now where's the problem? When trying to authentic...
asked by 04.04.2014 / 17:57
1
answer

Save windows authentication id

I have an application whose authentication is via windows login. With this class I get the user login: public static class UserDetails { public static string GetLogin(string userName) { string login = userName.Substring(userNam...
asked by 26.06.2014 / 22:02
1
answer

How to disable the Zip Mask to save only the Digits numbers when doing a Post - Asp.net MVC

I'm using a Remark component that has a data-plugin="formatter" in which to apply a zip mask in field . The field has size of 8 characters, but with the mask it gets 9 because of "-" (Ex: 29780-000). When saving the re...
asked by 12.12.2018 / 23:58
1
answer

ASP.Net - JavaScript / Text GZip File Compression

Good afternoon, I'm having a hard time configuring traffic compression using GZip . Here are the steps I've taken to make compression work: I have already enabled the features of windows related to compressing files on the web; I'...
asked by 10.12.2018 / 18:48
2
answers

Relate Check Boxes with Radio Buttons

I'm with a project where I have to put occurrences. This is a project from a school. Then the occurrences would be like this: An occurrence would be a warning or a suspension, and its causes, that is, it messed up in a room, cursed a teacher, di...
asked by 05.05.2014 / 18:07
1
answer

Retrieve model list passed by ajax through FormData

I am sending an image, along with a model in which it contains a list of integers. But I can not recover when I enter the Action. I can retrieve the image, field1 and field2, the field fieldList is left blank. HTML <input type="file...
asked by 28.11.2018 / 20:40
1
answer

I can not insert into DB with entity

This is my embed code. Why does it make a mistake? What should I do? public int abreOsParceiro(string os, string cnpj, string dataAbertura, string dataVisita, string tecnico) { WEBEntities db = new WEBEntities();...
asked by 26.05.2014 / 21:13
3
answers

Route for static pages in MVC

I have a question in the ASP.Net MVC application: Structure Views | +-- Home | | | +-- Index.cshtml | | | +-- Page.cshtml | +-- Users | | | +-- Details.cshtml...
asked by 22.02.2014 / 16:24