The ASP.NET Capsule #21: Telerik Extensions for ASP.NET MVC

Hi all.

Telerik was probably the first company to offer components that supported ASP.NET MVC long before it was released. Even Scott Hanselman created some videos with Preview 2 of ASP.NET MVC and showed how to incorporate Telerik components instead of regular components.

Now, they have gone one step further. Telerik is presenting the first CTP of their Extensions for ASP.NET MVC.

This first CTP of the Telerik Extensions for ASP.NET MVC lays a foundation for the new UI extension framework, and offers a preview of its power by providing .NET wrappers for the following jQueryUI components:

Accordion
The Accordion is a web control that allows you to provide multiple panes and display them one at a time. It is like having several collapsible panels where only one can be expanded at a time.

DatePicker
A highly configurable UI component that enables developers to quickly implement the most widely used date selection interface for web applications.

ProgressBar
The jQueryUI progress bar allows you to display the progress of processes.

 

Slider
A flexible UI component that allows users to select a value from a defined range using a smooth or step-based slider.

Message Box
Displays a message box that can contain text and symbols that inform and instruct the user.

Tab
Tabs are generally used to break content into multiple sections that can be swapped to save space, much like an accordion.

Web Asset Manager
Similar to the ScriptManager available in the Microsoft Ajax suite, the Web Asset Manager combines all configured JavaScript files to reduce the number of requests made to the web server.

More information can be found in the Telerik Extensions for ASP.NET MVC page. Also on TelerikTV the videos start to show up.

One important aspect is the licensing:

Telerik Extensions for ASP.NET MVC will be offered under the Microsoft Public License (MS-PL), the OSI-approved license used in the distribution of the ASP.NET MVC framework. Under this license, developers can freely use and redistribute the Telerik ASP.NET MVC Extensions in all projects, both commercial and open source. A commercial license that includes support will also be available.

And you can find the source code on CodePlex here: http://telerikaspnetmvc.codeplex.com/ 

Enjoy!

The ASP.NET Capsule #20: Telerik Reporting Now Supports Medium Trust

Hi all.

Many of us web developers use Telerik Reporting for our reporting needs, however when it comes to medium trust environments such as shared hosting packages Telerik Reporting wasn’t of much help… until now!

There is great news from the folks of Telerik. In their blog the Telerik Reporting Team has announced the availability of Telerik Reporting Q2 2009 SP1 with Medium Trust Support. Here is the list of new things in this release.

Enjoy!

Book Review: ASP.NET MVC 1.0 Quickly

184719754X[1]

Hi all.

I want to share my thoughts about the book ASP.NET MVC 1.0 Quickly from Packt Publishing.

The book is quite nice I think. I has provided me the great option to read about ASP.NET MVC (as the name implies) quickly. I was very entertained with it.

I have to say it up front. I’m not an MVC guy. I said it before, and I will do it again. I still don’t find any good reason (to me) to start using ASP.NET MVC, not because I don’t like it or I consider it wrong or anything. It’s a matter of taste, job role and well, I just haven’t had the need. However, that doesn’t mean I shouldn’t learn it, and because I have been doing some stuff for my own learning process, really I don’t get my head to “love” it as many of my fellow MVC friends do. (I love the webforms model… don’t ask.)

After clearing my position, I have to say a few things about this book:

Pros:

  • I like the “quickly” part of it. It doesn’t goes through the same thing over and over.
  • All chapters revolve around specific implementations, thus giving the opportunity to try it in a real program.
  • Samples DO work.
  • It’s very easy to follow and concepts are very clear and not too deep.
  • I ended up with lots of ideas on things to build (still figuring how to get the time for them).
  • You can have it as a quick reference.
  • I can help you get up and running with ASP.NET MVC “quickly”.

Cons:

  • As the “quickly” implies, the book is not the definite guide. If you are looking for a lot of information in one book, this is not the book for you.
  • ahh, hmmm, erm… that’s it I think…

So, hope this will help you make a decision in getting it or not.

Enjoy!

News: Webcast de ReSharper – Agosto 31 En Español

logo_resharper

Este lunes 31 de agosto tendremos un webcast sobre Resharper. El evento es gratuito y será impartido en español.

Registro: https://www323.livemeeting.com/lrs/8000181573/Registration.aspx?pageName=r7p7f53m2d224k0v

Estaremos rifando una licencia de R# entre todos los asistentes.

Los esperamos!

logo_jetbrains     academy

The ASP.NET Capsule #19: Examine “The located assembly’s manifest definition does not match the assembly reference”

Hi all.

Today I got reported from one of our clients that he was having problems printing a report they have. The error he was getting was:

    *  An error occurred during local report processing.

          o The definition of the report ‘Main Report’ is invalid.

                + An unexpected error occurred in Report Processing.

                      # The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I have never seen this error before, and it was odd because everything was working perfectly right yesterday (or so I though).

I’m using Microsoft local reports (RDLC files). The page only has a report viewer which loads a report file with some parameters coming from the query string.

The descriptions I found on the Internet was that the problem is caused by a reference to an assembly with specific version that is not found, but another one named the same with a different version is found.

I went looking into the GAC for the missing assembly, I could not believe this could be the cause, so after checking I found that there were two versions of the Microsoft.Reporting assemblies:

Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
Microsoft.ReportViewer.Design, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
Microsoft.ReportViewer.ProcessingObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
Microsoft.ReportViewer.ProcessingObjectModel, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
Microsoft.ReportViewer.WebDesign, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
Microsoft.ReportViewer.WinForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL

The application is using version 8 of the report viewer and reports definitions, so I was very surprised that the application was not able to find the right assembly, even with the complete definition of version and public token in the Web.Config file.

The worst came when examine a test environment, setup on the same server, connecting to the same database and here it was working.

I just could not believe it.

Well, I checked every single post I found on the Internet until something came up that I haven’t tried yet, so I did it.

I recycled the Application Pool. What?? Yes! After recycling the application pool everything went back to normal.

I’m still trying to figure it out what happened because is not clear to me how the application pool got corrupted in that way. Once I find more (if I do find more) about it I will update this post.

Hope this will help some of you. And if you know more about this error, please comment so others benefit.

Thanks!

The ASP.NET Capsule #18: Running C# & VB.NET in the same web application

Hi all.

You know, sometimes you just find some code on the Internet or a colleague handed out a piece of code written in a language other than the one you use.

Well, fear no more. Just modify your Web.Config file to include the other compiler and off you go.

<system.codedom>
<
compilers>

<compiler language=c#;cs;csharp extension=.cs  type=Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 warningLevel=4>
     <
providerOption name=CompilerVersion value=v3.5 />
     <
providerOption name=WarnAsError value=false />
</
compiler>

<compiler language=vb;vbs;visualbasic;vbscript extension=.vb type=Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 warningLevel=4>
     <
providerOption name=CompilerVersion value=v3.5 />
     <
providerOption name=OptionInfer value=
true
/>
     <
providerOption name=WarnAsError value=false />
</
compiler>

</compilers>
</
system.codedom>

 

Enjoy!


Tips de Uso de Internet Explorer 8

Este arículo está en español / This article is in Spanish

Hola a todos.

Quiero mostrarles algunos tips que pueden ser útiles en el uso de Internet Explorer 8.

1. Personalizar la barra de título

Esta personalización se puede realizar por medio de una llave en el registro. Para ello tenemos que abrir el programa editor del registro de Windows.

Para usuarios de Windows XP: Ir al botón Inicio y seleccionar la opción ejecutar. Escribir regedit y presionar la tecla ENTER. Para usuarios de Windows Vista y Windows 7: Ir al botón Inicio y escribir regedit y presionar la tecla ENTER

Una vez en el programa del registro, expande la llave HKEY_CURRENT_USER y luego expande las llaves Software -> Microsoft -> Internet Explorer ->Main.

Luego debes presionar el click derecho en cualquier area abierta (no sobre un valor o llave) y seleccionar la opción Nuevo -> Valor de Cadena. Debes nombrar a este Nuevo valor “Window Title”. Luego presionas ENTER y listo.

Debes editar el dato del valor “Window Title” que acabas de crear y lo que escribas allí será lo que verás la próxima vez que reinicies Internet Explorer

image

2. Buscar más fácilmente

La mayoría de buscadores tienen facilidades para hacer las búsquedas más fácilmente. En Internet Explorer 8 puedes realizer una búsqueda con solo ingresar en la barra de direcciones un signo de interrogación seguido de un espacio en blanoc y finalizando con las palabras que deseas buscar.

image

3. Ahorrar tinta/toner al imprimir

Si deseas imprimir una página pero no quieres imprimir todo, por ejemplo, no quieres imprimir las imagines puedes utilizar las herramientas de desarrollador (F12). Normalmente esta opción abre una nueva ventana con varias opciones. Debes ir a la opción de Imágenes y luego seleccionar “Deshabilitar Imágenes”. Esto hará que todas las imagenes de tu página no se muestren para realizar la impresión.

image

image

4. Incrementa el límite de descargas

Por defecto, Internet Explorer 7 tiene un límite de dos descargas simultáneas pero Internet Explorer 8 cuenta con 6 descargas simultáneas. Si cuentas con una conexión de Internet lo suficientemente buena puedes aprovecharla aumentando la cantidad de descargas que puedes realizar a 10. Solo debes seguir el asistente paso a paso en esta página de soporte http://support.microsoft.com/?kbid=282402#fixit4me.

5. Ejecutar Internet Explorer 8 sin Add-Ons

Si tienes problemas usando Internet Explorer 8, puede ser debido a un problema con algún Add-On. Esto puedes detectarlo ejecutando Internet Explorer sin add-ons. Para ello puedes ir al botón inicio y ejecutar el siguiente comando: iexplore.exe –extoff.

image

Verás que incluso Internet Explorer 8 arranca más rápido y en general corre más rápido. Luego puedes ir habilitando los add-ons uno a uno para verificar cual te está causando el problema y buscar una version actualizada o desinstalarlo.

Espero te sirva.

Saludos.

Características Desconocidas de Internet Explorer 8

This article is in Spanish / Este artículo esta en español

Hola a todos

Este artículo trata sobre algunas características algo desconocidas en Internet Explorer 8.

Selección de texto con el teclado

Esta opción hace tiempo que existe en Firefox pero no existía en Internet Explorer. Ahora, en la version 8, podemos utilizar la tecla F7 o la opcion del menu “Page –> Carret Browsing” para seleccionar el modo “Carret Browsing”. Esta opción permite la utilización de las flechas de navegación dentro de la página web como si fuera un document de MS Word por ejemplo, donde podemos ir a cualquier parte de la página y podemos seleccionar el texto con la tecla Shift.

image

Herramientas de desarrollador

Los desarrolladores web que usan Firefox están acostumbrados al plugin Firebug que les proporciona una gran cantidad de herramientas para depuración y examen de las páginas. Ahora en Internet Explorer 8 tenemos también herramientas que nos dan una funcionalidad similar, pero lo mejor de todo es que no tenemos que instalar nada adicional, ya vienen incluidas. Solo tenemos que utilizer la tecla F12 o ir a la opción del menú “Tools -> Developer Tools” para activarlas.

image

image

Vista de compatibilidad

En versiones anteriores de Internet Explorer no se seguían los estándares de la forma que ahora IE8 lo hace, entonces los sitios web desarrollados anteriormente pueden mostrarse con problemas como textos o elementos div sobrepuestos y cosas así. Afortunadamente mientras arreglamos esos detalles, podemos utilizar la vista de compatibilidad por medio del botón que está justo a la par de la barra de direcciones. Este botón hace que Internet Explorer 8 funcione como si fuera Internet Explorer 7 lo que nos ayuda a ver cuales son los detalles de nuestro website que hay que arreglar y que no se ven bien.

image

Navegación Privada y Filtro Privado

Ahora podemos realizer dos operaciones que se efectuan como privadas. No hay que confundirlas porque son dos cosas diferentes. Una es la navegacion privada. Esta opción nos permite visitar sitios web sin dejar rastros de nuestras visitas, es decir, no se almacenan cookies, no queda registro en la historia ni nada. En este modo se activa un ícono azul en la barra de direcciones que indica la operación privada.

image

La otra opcion es el filtro privado. El filtro privado nos permite deshabilitar publicidad no deseada y nos brinda la opcion de poder manejar de forma bastante granular el grado al que queremos ocultar estos mensajes publicitarios.

image

image

Mejoras de la barra de estado

La barra de estado tiene ahora mucha funcionalidad. Podemos hacer click en diferentes partes para realizar acciones como configurar las opciones de privacidad o hacer zoom de la pagina que estamos visitando.

image

Espero les sirva y puedan utilizar de mejor manera su Internet Explorer 8.

Saludos.

The ASP.NET Capsule #17: Book Recommendations from Packt Publishing with Sample Chapters

Here are some book recommendations from Packt Publishing with a sample chapter.

1847196705[1]
Learning jQuery 1.3

Sample Chapter
Chapter 4: Effects

 

1847195229[1]
Entity Framework Tutorial 

Sample Chapter
Chapter 2: Getting Started

 

1847195504[1]
ASP.NET 3.5 Application Architecture and Design

Sample Chapter
Chapter 5: Model View Controller

 

1847193951[1]
ASP.NET Data Presentation Controls Essentials

Sample Chapter
Chapter 4: Working with the DataList Controller

 

1847194788[1]
ASP.NET 3.5 Social Networking

Sample Chapter
Chapter 5: Friends

 

1847192785[1]
DotNetNuke Skinning Tutorial

Sample Chapter
Chapter 2: Creating Your First Skin

 

 

 

 

Enjoy!


The ASP.NET Capsule #16: Bug in Telerik RadComboBox for ASP.NET AJAX (Workaround available)

Hi all.

I came across this bug when using Telerik RadControls for ASP.NET AJAX, more specific the RadComboBox. It’s a simple bug but might make you have a headache.

Description

You have a RadComboBox declared in your ASP.NET Webforms Page. For example:

<telerik:RadComboBox ID="RadComboBox1" runat="server" EmptyMessage="Select a value from list…">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>

Note the property EmptyMessage. This property will make the RadComboBox to show the message “Select a value from list…” when no selection has been made, or the selection has been cleared.

Problem

When calling the clearSelection() client side method for clearing the current selected item in the RadComboBox without user interaction. For example:

function ClearComboSelection() {

var combo = $find("RadComboBox1");
combo.clearSelection();

}

The RadComboBox  doesn’t show the value of the property EmptyMessage. It completely clears the text shown.

Workaround

Call the _applyEmptyMessage() method after calling clearSelection(). Example:

function ClearComboSelection() {

var combo = $find("RadComboBox1");
combo.clearSelection();
combo._applyEmptyMessage();

}

Solution

This has been confirmed to be a bug present in all versions of RadControls for ASP.NET AJAX. Support has logged into their bug tracking system and expect to get it fixed during next week.