background preloader

.NET

Facebook Twitter

WebCast ASP.NET & HTML5 & CSS3.

ADO.NET

Arquitectura de 3 capas en .NET. Reports. How to get C# property names without magic strings – static reflection « Cℓinton's Blog. 11 November 2008 by handcraftsman A problem I’ve encountered a number of times when writing tests for C# code is that I need the name of a property or method so that I can invoke it through reflection in the tester.

How to get C# property names without magic strings – static reflection « Cℓinton's Blog

It is easy to get a property name through reflection: The problem is that if you rename the property you won’t discover that the code is now broken (due to the property name in the string being passed to GetProperty) until you run it. This makes for brittle tests. Another place one might want to avoid magic strings is in numerous places where the framework wants to take the name of a property to which to bind in order to fill a DataGrid, DropDownList, ArgumentException, etc: As I haven’t seen a solution for this particular problem anywhere else I’m posting mine here.

Next refactor out a reusable method: This solution suffers somewhat from being obscure in intent due to the lambda, a drawback I try to alleviate with a good method name. It works but … is really ugly. Nifty! Introduction to ASP.NET Master Page. WebControl.CssClass (Propiedad) (System.Web.UI.WebControls) Public virtual string CssClass { get; set; } Valor de propiedad Tipo: System.String .NET Framework Compatible con: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0 Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (no se admite el rol Server Core), Windows Server 2008 R2 (se admite el rol Server Core con SP1 o versiones posteriores; no se admite Itanium)

WebControl.CssClass (Propiedad) (System.Web.UI.WebControls)

[ASP.NET] Simple pero poderoso: Literal webcontrol - <Jose A. Fernandez /> [ASP.NET] Simple pero poderoso: Literal webcontrol Justamente tenia este post en el tintero porque hace unos dias conversamos en los grupos de noticias de asp.net sobre la diferencia de webcontrol Literal y Label, y justamente hoy leí el post en Geeks.ms de Sergio Tarrillo: Diferencia entre un control Litral y un control Label (asi que los invito a leerlo con enlaces interesantes) Asi que esta primera parte ya estaba escrita.Si tenemos la famosa frase: "Que la fuerza te acompañe", y utilizamos los dos controles para visualizar Como dice Sergio en tu articulo, renderiza en esto si vemos el HTML resultante... <span id="ctl00_contenidoCentral_lblEjemplo">Que la Fuerza te acompañe. </span><br /> Que la Fuerza te acompañe. (aqui el Id del Label en el browser del cliente quedo armado: ctl00_contenidoCentral_lblEjemplo, porque esta bajo un MasterPage) Lo que nunca me gusto es cuando definen al control como "Reserva una ubicación en la página Web para mostrar texto estático Salida:

June 2007 - Artículos - <Jose A. Fernandez /> June 2007 - Artículos Manuales, libros, enlaces sobre ASP.NET 2.0 Esta es una recopilación en base a posts del grupo de noticias de ASP.NET y que fuimos aportando los lugares que nos parecian interesantes darles una mirada. Queria tenerlo aquí como bitácora. Por ejemplo de un post sobre manuales de asp. siempre se selecciona el lugar que más nos gusta o nos sentimos mas comodos, o por ejemplo buscar en blogs de los arquitectos y/o MVP's de ASP.NET.

Estos son algunos post que intente recopilar los enlaces.... AYUDA que viene con el programa -------------------------------------------------------------------- - Cuando instalas el VS2005 o Cualquier version express tiene la opción de cargar la ayuda MSDN Library, te recomiendo que lo hagas tiene muy buena información.

JavaScript

Adding CSS Template to ASP.NET master page (www.asplessons.com) ASP.NET Tutorial - Master Pages & Site Navigation - Part1. Tutorial WebService ASP.NET Parte 1. jQuery. ASP.NET Tutorial Part1. C# - Find an item in List by LINQ. WCF. Descarga de manuales y ejemplos. Programacion Web [Clase 1] - JavaScript - Tu primer Script - Variables. W3Schools Online Web Tutorials. HTML Javascript in ASP.NET Visual Studio Video 1 - Part 1 [BestDotNetTraining.com] Intro to ASP.NET - Creating your first webpage.