Questions tagged as 'attribute'

2
answers

Best way to implement DataAnnotations

Is there any difference in the following implementations? [Required, StringLength(150, ErrorMessage = "Insira no máximo 150 caracteres")] [Index(IsUnique =true)] public int MyProperty { get; set; } [Required] [StringLength(150, ErrorMess...
asked by 22.12.2016 / 02:27
1
answer

Catch value of the data-atrabus and apply as text in another html element

I have a series of checkboxes in an interface that are already configured to display / hide other elements of the interface conditionally. In this same interface I have a div set to display messages to the user also conditionally dependin...
asked by 20.05.2015 / 00:43
2
answers

Can I override existing anottation in .NET?

I have the following annotation: [XmlElement(IsNullable = true)] I would like to see the code that has behind it, so I create my own based on it Or if you have how to override it     
asked by 12.03.2014 / 14:57
1
answer

How to get the value of a property and how to get the property where the attribute is declared?

Let's say I'm creating an Attribute like this: TCompareAttribute = class(TCustomAttribute) private FPropertyToCompare: string; public constructor Create(APropertyToCompare: string); function IsValid: boolean; end; implementation ... fu...
asked by 25.02.2015 / 15:18
1
answer

Attribute Reading Problem in C #

I have the following problem, I have my ENUM class: public enum DataBaseType { DATA_BASE_NAME, SERVER_IP_NAME, PORT, USER_NAME, PASSWORD }; I have my Attributes, in which you have this ENUM: public class Connect : System.Attribute {...
asked by 21.08.2018 / 23:07
0
answers

I need the Attribute of a Dataset HDF5 to be a string

Good afternoon, I'm trying to create some attributes for my datasets, I was able to create the attributes but at the time of setting their values I'm not getting it, I've already tried it in several different ways, and currently the string that...
asked by 04.06.2018 / 21:29
1
answer

remove Attribute from a Node in NexXMLDocument in DELPHI

I created an XML Document, when creating the 2nd. Node 'Header' comes with the attribute of the previous node. The Node is created as <Header xmlns=""> how can I remove the xmlns="" from the Node I used the following code...
asked by 07.07.2017 / 01:38
0
answers

Error passing request attribute to an angular directive

I have to pass an array of objects to an angular directive, but I have the error below. How do I solve it? angular.js:12330 Error: [$parse:ueoe] Unexpected end of expression: [{ http://errors.angularjs.org/1.4.3/$parse/ueoe?p0=%5B%7B at an...
asked by 23.03.2016 / 18:20
2
answers

List all "date" attributes that contain a certain code

I need to list all data faults that contain certain code in their name ( not in value ). HTML tag example with attributes: <input type="hidden" id="products-end" data-flavor-id-15515-1="abc" data-flavor-pr-15515-1="abc" data-flavor-id-15...
asked by 16.11.2015 / 23:16
1
answer

How do I set HTML attribute with @yield () in Laravel?

I'm trying to create a template for my control panel in Laravel. I want the top right corner to have a BACK button, where I can link to @yield I tried to make the following code, but I was not successful, it shows as if hr...
asked by 12.10.2014 / 18:45