Questions tagged as 'atributos'

1
answer

When and why to use the Obsolete attribute?

At least on the projects I worked with, I see no point in using the Obsolete " in methods that are no longer used. What I do, and I see people doing is removing or commenting codes that are no longer used / obsolete. When and why shoul...
asked by 11.02.2017 / 13:11
4
answers

Set generic "data - *" attributes with javascript;

I need to retrieve all my data attributes, and set the information to a specific date attribute. Example: <div class="box_campo"> <input type="text" data-valor="0"> <ul> <li>apenas exemplo</li>...
asked by 13.07.2015 / 21:59
1
answer

How can I change file attributes in windows with python?

I'm trying to leave a hidden .txt file. How can I do this using python command line?     
asked by 17.12.2016 / 17:41
2
answers

How to change the name of a column in a select in the database?

I'm doing a database for a college activity and was asked to show the table by changing the name of the attributes (columns) to " Nome do Cliente " and " Endereco do Cliente ". How can I do this? Example: Tabela: nome...
asked by 03.09.2017 / 20:52
2
answers

Problem with '.data ()' and its value inside an if

I'm creating If 's so I do not lose the habit of using them, but when trying something a little different than what I usually do, an error occurs, if does not work. How can I fix it? I tried the following modes: if($('.carousel-i...
asked by 16.02.2017 / 12:11
2
answers

What is the name of these parameters in ASP.NET MVC?

What is the name of these parameters in brackets used to restrict some access or define the protocol used, as in the example: [Authorize] and [HttpPost] . Is it possible to create a custom "filter"? for example, to allow access t...
asked by 29.02.2016 / 22:50
4
answers

Create const string array in C #

Is there a way to create a constant array of string ? Something like: class Teste { public const string[] Array = new string[] {"a","b"}; } But it does not compile. In this case no would replace const with static read...
asked by 10.09.2015 / 19:01
1
answer

Is it possible to insert parameters in the filters attributes?

I use ASP.NET and to do access control by level, I use a filter that checks the user's permission level and allows access to view . [HttpPost] [AutorizacaoFilterAttribute] //Esse filtro analisa a permissão do usuário public ActionResult GetEm...
asked by 08.05.2018 / 17:17
1
answer

What is the purpose and use of the GuidAttribute?

I know the GUID is a 'unique' identifier, but I do not see the why of your application's attribute, as in the example below: [GuidAttribute("C281C7F1-4AA9-3517-961A-463CFED57E75")] [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]...
asked by 19.02.2017 / 13:45
1
answer

What is the purpose of the "[Bind (" ID, Title, ReleaseDate, Genre, Price ")]" in a method?

I'm creating a project in ASP.NET Core MVC for learning purposes. In a given part of the Microsoft guide when the scaffold technique is approached to generate the controller and views controller , I came across an instruction in some meth...
asked by 13.11.2017 / 01:44