Empty DropDown After Submit your Form and Information Lost

My case: It's a standard register form created in a SharePoint WebPart (but this error could happen even if you're not using SharePoint). When I submit the form, sometimes I loose the information of DropDowns (but not the information of textboxes) and it seems to happen randomly. I checked the packages sent with Wireshark and …

Sigue leyendo Empty DropDown After Submit your Form and Information Lost

Add WebService to my project (ASMX + CS) in Visual Studio

I've never found on my Visual Studio an option to directly add a new WebService file so I looked for a solution and I got this one, I hope it'll help you:1. From anywhere in your Solution Explorer (where you want to add the WebService), create a "New Item".2. In the "New Item" Window, select …

Sigue leyendo Add WebService to my project (ASMX + CS) in Visual Studio

Retrieve User Profile Properties using Client Object Model in SharePoint 2013

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" }; …

Sigue leyendo Retrieve User Profile Properties using Client Object Model in SharePoint 2013

SharePoint 2013 + Visual Studio 2012: File «.g.cs» dissapeared

Sometimes, when you're developing a visual web part, the designer file (with .g.cs extension) dissapears in front of your eyes. After finding nothing in the internet, we've just discovered why it is happening: You've to add the "Site URL" property in the Project properties. That's beacuse it is a web part for sharepoint, and Visual …

Sigue leyendo SharePoint 2013 + Visual Studio 2012: File «.g.cs» dissapeared

HttpModule Correctly Created, but doesn’t work

If you've created your HttpModule correctly but when you open your web it doesn't work, it could be a configuration error. You should open your web.config and check if your HttpModule is correctly added, because it's differente between IIS versions: IIS 6 <system.web> <httpModules> <add name="myModule" type="myModuleNamespace.myModuleClass"/> </httpModules> </system.web> IIS 7+ <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <add …

Sigue leyendo HttpModule Correctly Created, but doesn’t work

Example: Web.config for Custom HttpModule

<configuration> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules runAllManagedModulesForAllRequests="true"> <add name="myModule" type="ModuleNamespace.ModuleClass, ModuleNamespace"/> </modules> </system.webServer> <system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime targetFramework="4.5" /> <trust level="Full" originUrl=""/> </system.web> </configuration>

Obtener Información de los Perfiles de Usuario en SharePoint y no Morir en el Intento

El servicio de perfiles de usuarios almacena la información en una ubicación central, a la que podemos acceder desde la propia administración de SharePoint. No obstante, si queremos acceder a través de código podemos encontrarnos con ciertos problemas, siendo la velocidad uno de los principales inconvenientes. En un rango bajo (1-50 usuarios) no tenemos dificultades, …

Sigue leyendo Obtener Información de los Perfiles de Usuario en SharePoint y no Morir en el Intento