Tag: by

En ocasiones no podemos añadir una Vista de SQL Server a nuestro modelo de Entity Framework y nos dice que es porque la vista no contiene ninguna “Key”. Para resolver este problema debemos tener en cuenta que No se pueden crear Primary Keys en Vistas. La solución para por crear una columna nueva autonumérica. Seguiremos […]
1. Add Role from Server Manager 2. Role-based or feature-based installation 3. Select a server from the server pool 4. Select Active Directory Domain Services and DNS Server. 5. Once installed, from Notifications Menu, select Promote this server to a domain controller 6. Add a new Forest 7. Write a password 8. Next 9. Check […]
I’ve found an interesting link about how to retrieve some properties of user profiles in SharePoint 2013 by using its client object model, like this: const string serverUrl = "http://serverName/"; const string targetUser = "domainName\userName"; ClientContext clientContext = new ClientContext(serverUrl); PeopleManager peopleManager = new PeopleManager(clientContext); string[] profilePropertyNames = new string[] { "PreferredName", "Department", "Title" }; […]
Error Cannot have multiple items selected in a DropDownList Solution This message means that you're trying to select an item and another one is already selected. To solve this problem you've to clear the previous selection an then select the new one, like this: myDropDownList.ClearSelection(); myDropDownList.Items.FindByValue(myValue).Selected = true;