Material de la tercera clase del workshop sobre ASP.NET MVC
El jueves pasado fue la tercer y ultima clase del workshop sobre ASP.NET MVC en el MUG.
Los temas de esta clase fueron:
- jQuery
- AJAX
- Soporte Asincrónico
- Web API
- SignalR
Aquí pueden descargar la aplicación de ejemplo que construimos durante todos las clases, y en donde están implementados todos los temas que vimos, y continuación la presentación.
Muchas gracias a todos los que asistieron, y espero que les haya sido útil :-).
Material de la segunda clase del workshop sobre ASP.NET MVC
Ayer fue la segunda clase del workshop sobre ASP.NET MVC en el MUG.
En esta oportunidad los temas tratados fueron:
-
Diseño guiado por pruebas
-
Unit Testing
-
Mocking
-
Inyección de dependencias
-
TDD
-
Data Validation
Aquí, aquí, y aquí pueden descargar los ejemplos, y a continuación la presentación.
La mañana es la ultima clase semana, y al finaliza publicare la versión final de la aplicación de ejemplo que mis alumnos están desarrollando clase a clase.
Material de la primera clase del workshop sobre ASP.NET MVC
Esta semana estuve dando la primera clase de un workshop sobre ASP.NET MVC en el MUG.
En la primera clase explique los siguientes temas:
- Arquitectura
- Web
- ASP.NET
- Introducción a ASP.NET MVC
- Acciones y Rutas
- Controladores
- Vistas
- Razor
- Model Binding
Aquí, aquí, y aquí pueden descargar los ejemplos, y a continuación la presentación.
La próxima semana publicare el material de la segunda y tercera clase. ¡Esten atentos!
Pop3RT
Today I updated my POP3 client library for use in Windows Runtime.
The work for convert the existing .NET 4.5 code for support WinRT was more easier than I thought. In fact almost the entire code base is the same for .NET4.5 and WinRT, the only that I needed for reuse the code is a little bit of condicional compilation magic, and reimplement the socket layer using new WinRT Socket API.
You can download the library from NuGet, or if you want to browse the code go to GitHub repository.
Enjoy it!
Desarrollo Web con Visual Studio 2012
Ayer di una charla sobre Visual Studio 2012, y desarrollo Web en el MUG.
Aquí pueden ver y descargar la presentación, y aquí pueden hacer descargar el código de ejemplo que utilice.
¡Gracias a todos los que vinieron!
New version of POP3.NET with async methods
Today I updated my POP3 client library to support .NET 4.5 asynchronous programming model.
You can download the library from NuGet, or if you want to browse the code go to GitHub repository.
Enjoy it!
Workshop de desarrollo de aplicaciones Windows Store
La semana próxima con mi compañero de Lagash, Mariano Sanchez, estaremos dando un Workshop de desarrollo de aplicaciones Windows Store en el MUG los dias 10, 11, y 12 de Octubre.
Durante esos 3 dias haremos un repaso de la plataforma Windows 8, el diseño de aplicaciones Modern UI, y las herramientas y lenguajes que tenemos disponibles para desarrollarlas, todo esto con mucha practica.
!Y como bonus al final del workshop se ofrecerá la posibilidad e subir las aplicaciones que se desarrollen al Windows Store!
Aqui pueden ver el detalle del curso y registrarse.
Los esperamos
Lanzamiento Visual Studio 2012 en Buenos Aires
Ayer estuve presente en el lanzamiento de Visual Studio 2012 que organizaron mis amigos del MUG en Buenos Aires. En este evento di una sesión sobre desarrollo de aplicaciones Windows Store para Windows 8.
Aquí pueden ver y descargar la presentación, y aquí pueden hacer descargar el código de ejemplo que utilice.
¡Gracias a todos los que vinieron!
Curso ASP.NET MVC, HTML5 y WPF
Las ultimas semanas estuve dictando en el MUG algunas clases introductorias sobre ASP.NET MVC, HTML5 y WPF.
Aquí les dejo las presentaciones, y durante esta semana voy a estar publicando todos los ejemplos de código que mostre en GitHub.
¡Espero que las disfruten!
POP3.NET in NuGet Gallery and GitHub
Today I uploaded POP3.NET binaries to NuGet Gallery and the code to GitHub.
If you need the binaries go to here, or (if you use Visual Studio) install Package Manager Console, and run the following command:
Install-Package Pop3
If you want to browse the code go to here.
Enjoy!
JSONP in SharePoint 2010 and .NET 3.5
Recently I need to implement JSONP in SharePoint 2010 to address a multi farms scenario. My service layer are built around WCF REST API in .NET 3.5 and in my production environment an upgrade to .NET 4 (that support JSONP via CrossDomainScriptAccessEnabled attribute of WebHttpBinding) or implement any kind of extension is not option.
So, the solution was write the JSONP string directly in the response.
The steps to do this are:
- Define an operation that does not return a value (void):
[OperationContract] [WebGet(UriTemplate="jsonpFeed")] void GetJsonpFeeds();
- Implement the operation:
- Use JavaScriptSerializer to obtain the JSON string.
- Wrap the JSON string with callback function call and write the string directly to Http Response (previously is important to change the Response Content Type to application/json).
public void GetJsonpFeeds() { JavaScriptSerializer s = new JavaScriptSerializer(); HttpContext.Current.Response.ContentType = "application/json"; HttpContext.Current.Response.Output .Write("jsonpcallback("+s.Serialize(GetFeeds())+")"); } - Active the ASP.NET Compatibility in WCF, this is important because if not activate it you can’t access to HttpContext.Current:
- In the Web.Config (in SharePoint 2010 is activated by default):
<system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/> </system.serviceModel>
- And in the service class (via the AspNetCompatibilityRequeriments attribute):
[AspNetCompatibilityRequirements( RequirementsMode= AspNetCompatibilityRequirementsMode.Allowed)] public class FeedService : IFeedService
- In the Web.Config (in SharePoint 2010 is activated by default):
- Finally implement the AJAX call in the client:
$(document).ready(function() { $('#getFeedsButton').click(function() { $.ajax({ url: 'http://localhost:1040/FeedService.svc/jsonpFeed', data: null, dataType: "jsonp", jsonp: "callback", jsonpCallback: "jsonpcallback" }); }); }); function jsonpcallback(data) { $('#feedsList').html(''); $.each(data, function(i, item) { $('#feedsList').append($('<li>' + item.Title + '</li>')); }); }
Download the complete code here





