Questions tagged [displayname-attribute]

Question about Display attribute from System.ComponentModel.DataAnnotations of .Net Framework.

Question about Display attribute from System.ComponentModel.DataAnnotations of .Net Framework.

Display attribute provides a general-purpose that lets you specify localizable strings for types and members of entity partial classes.

48 questions
0
votes
0 answers

.Net Core how to show display name instead of Email address?

I've built an email service using SMTP (System.net.mail nuget package) which also sends out text messages. When I send an email it shows the display name using the following technic: MailAddress from = new MailAddress("fromEmailId@gmail.com",…
0
votes
0 answers

C#, Display Name with UserPrincipal wont work

I want to read out the full name of an user. I am developing a WPF application for Windows with .NET 5. I tried it with this line of code: String Fullname = UserPrincipal.Current.DisplayName; That worked fine on my PC, but when I wanted to test it…
0
votes
0 answers

Why my android app name is displaying this.. androidx.multidex.....? Please see the image

After I install my apk , my app name is displaying as below. Is there any thing I'm missing on parameter setting..? Does any one has similar issue..?
0
votes
2 answers

Python OPCUA DisplayNames not showing

When I try to launch a OPC UA server with Python (running python 3.7) and setting a DisplayName for a node I have weird behavior. The DisplayName attribute is set right. When I inspect it in a OPC UA client tool, like…
VStOTH
  • 1
  • 1
0
votes
2 answers

Flutter Firebase: How do I only record the first name of a display name in Firestore?

I have the following code writing to Firestore for an auth class with Google Sign in: import 'package:firebase_auth/firebase_auth.dart'; import 'package:google_sign_in/google_sign_in.dart'; import…
0
votes
1 answer

Need SMTP Address for Accepted Senders, ManagedBy and ModeratedBy in Distribution List

So I'm working in PowerShell to pull some data down from my exchange server. I'm looking to get the following fields from the distribution list. Display Name, SAM Account Name, Primary SMTP Address, Accepted Senders, Moderation Enabled,…
Ryan
  • 19
  • 2
  • 8
0
votes
1 answer

displayname localization from different assembly (not referenced)

i'm making a website in mvc5 with a referenced project/dll "core" where i've all business logic, repos, mapping etc etc i want to add resx for localization of viewModel's properties i need to put in inside website right? (or is possible from…
0
votes
1 answer

Set/Change Display(Name="") Attribute of a Property in Controller/ViewComponent

According to this answer from 2010, regarding mvc-2, it wasn't possible. What about now, in asp.net-core 2.2? My usecase: I have a BaseViewModel that is being used by 2 views: TableView (for users) and TableManagentView (for admins). The…
vixero
  • 514
  • 1
  • 9
  • 21
0
votes
1 answer

Display Property Name Gives the resource cannot be found error

I'm a newbie in MVC web application development in c#. Here I'm building a c# MVC Web application. I have a login form. I created the web application MVC project with .net framework 4.5. I'm using visual studio 2017. The work I did with my…
ChathurawinD
  • 756
  • 1
  • 13
  • 35
0
votes
2 answers

Am I missing a using to use [Display(Name = "string")] on an enum?

"The type or namespace name Display cannot be found ... " "The type or namespace name Name cannot be found ... " public enum MyEnum { [Display(Name = "The First")] first = 1, [Display(Name = "The Second")] second, [Display(Name = "The…
jeffcodes
  • 726
  • 2
  • 8
  • 20
0
votes
1 answer

Binding a SelectTagHelper to an Enum, using Display(Name) for SelectList (yet persisting string Value instead of int)

(WPF dev here, new to web apps) In my DB, I have a field containing strings. For simplicity, let's pretend the strings denote countries. The strings contain spaces (e.g. "United States"). I need to provide a way to update that field for a given…
0
votes
0 answers

Changing the Caption of an AD-User in the AD-Management Console with VB.NET

I have a working code for creating a new AD user along with its distinct properties. The only thing I can't get to work is: The users entry in the AD-Management window (caption) is the same as the CN. But I need the entry to be the same as the…
Zeh Kah
  • 1
  • 2
0
votes
1 answer

Searching Active Directory and exporting a list of names in mulitpule groups to a txt file for powershell

I am attempting to create a simple PowerShell script that will look at a list of Active Directory groups from a text file, then search Active Directory for the Groups (regardless of type), then get the list of members in each of the groups, and then…
0
votes
1 answer

Im Creating Registration with email and Password but with Fullname in Android Studio with Firebase

Im Creating Registration with email and Password but with Fullname of the user and display it when the users Login i try to find tutorials in youtube but no one provide or i dont just find it, only email and password tutorials , Anyone here could…
0
votes
0 answers

why bin needs an update online after change in class model [DisplayName("Name")]

I addded Data annotations in my class model, but it was not showing online, only offline. [DisplayName("Last Name")] public string Name { get; set; } After some research I realised I was not doing anything wrong. So, I decided to upload the whole…