<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6312851090582327060</id><updated>2012-01-31T20:42:32.376-06:00</updated><category term='Criptogia'/><category term='Interesante'/><category term='motogp'/><category term='Chistes steve jobs'/><category term='Visual studio'/><category term='Encriptar'/><category term='linq to generic List'/><category term='parameter opcional'/><category term='Aviones'/><category term='seguridad'/><category term='web Service'/><category term='horoscopo'/><category term='Harry Potter'/><category term='Twilight'/><category term='Critica'/><category term='curiosidades'/><category term='ado'/><category term='Chistes'/><category term='Steve Jobs'/><category term='windowsform'/><category term='Transformes'/><category term='libros'/><category term='Rosie Huntington-Whiteley'/><category term='Megan Fox'/><category term='linq para sql'/><category term='SQL server'/><category term='Visual Basic'/><category term='.net'/><category term='access'/><category term='wcf'/><category term='La Orden del fenix'/><category term='aspnet'/><category term='linq'/><category term='cifrar'/><category term='Compatibilidad de signos'/><category term='silverlight'/><category term='php'/><category term='ajax'/><category term='lightswitch'/><category term='videos'/><category term='plinq para sql'/><category term='Harry Potter y la Piedra filosofal'/><category term='El Prisionero de Azkaban'/><category term='oracle'/><category term='opiniones'/><category term='mvc'/><category term='C#'/><category term='sql'/><category term='wpf'/><category term='html'/><category term='Crepusculo'/><category term='moto'/><category term='Harry Potter la camera secreta'/><category term='microsoft'/><category term='linq from sql'/><category term='GDI+'/><category term='Ilustraciones'/><category term='mvc 3'/><category term='Entity Framework'/><title type='text'>.Net Para Todos</title><subtitle type='html'>Justicia, igualdad y libertad son algo más que palabras, son metas alcanzables</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.cjorellana.net/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default?start-index=101&amp;max-results=100'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>190</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-4013070707931070133</id><published>2011-12-03T02:19:00.001-06:00</published><updated>2011-12-04T20:45:04.716-06:00</updated><title type='text'>Cargar y guardar una imagen en la base de datos</title><content type='html'>Para este ejemplo utilizaremos la base de datos Nortwind con la tabla categories.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-El-1eP45Go8/TtneYWx_vjI/AAAAAAAABQM/3Gnrh_XhUrA/s1600/Captura+de+pantalla+2011-12-03+a+la%2528s%2529+02.31.09.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="284" src="http://4.bp.blogspot.com/-El-1eP45Go8/TtneYWx_vjI/AAAAAAAABQM/3Gnrh_XhUrA/s640/Captura+de+pantalla+2011-12-03+a+la%2528s%2529+02.31.09.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;1.) Debemos crear el campo &amp;nbsp;MimeType para almacenar el tipo de datos del archivo.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ALTER TABLE dbo.Categories ADD&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ImageMimeType varchar(50) NULL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Pero en este ejemplo no utilizaremos ya que lo realizaremos con Entity Framework.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;2.)&amp;nbsp;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;Crear el proyecto, File - New Proyect - ASP.NET MVC Web Applicaction&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-4Ih5YcFegK0/TtCiGwWFh4I/AAAAAAAABLo/cFRimbOx0K8/s1600/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+01.49.50.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/-4Ih5YcFegK0/TtCiGwWFh4I/AAAAAAAABLo/cFRimbOx0K8/s640/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+01.49.50.png" style="cursor: move;" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;3.)&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;Le mostrara la pantalla de que tipo de aplicación (Internet o intranet), que tipo de motor quiere utilizar ASPX o&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx" style="color: #d52a33; text-decoration: none;"&gt;Razor&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;b&gt;Seleccione Internet Application y Use HTML 5 semantic Markup.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="366" src="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s400/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" style="cursor: move;" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;4.)&amp;nbsp;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;En el Solucion explorer, presione clic derecho sobre la carpeta Models y luego en la ventana seleccione Ado Entity Data Model, con el nombre:&amp;nbsp;NorthwindModel.edmx&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;Seleccione las tablas: Orders, Customers, Employees&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-SrAxvePcgxk/TmsIj3gznSI/AAAAAAAAAkg/4cattOTijjE/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.57.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-SrAxvePcgxk/TmsIj3gznSI/AAAAAAAAAkg/4cattOTijjE/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.57.png" style="cursor: move;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-faYb0C6Yd3I/TmsInLaxSOI/AAAAAAAAAkk/xPyakRQdC28/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.31.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="395" src="http://2.bp.blogspot.com/-faYb0C6Yd3I/TmsInLaxSOI/AAAAAAAAAkk/xPyakRQdC28/s640/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.31.png" style="cursor: move;" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-FiX2gwuMxOE/TmsJQpHzDcI/AAAAAAAAAko/f_G2EvUDmdc/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.50.47.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="365" src="http://2.bp.blogspot.com/-FiX2gwuMxOE/TmsJQpHzDcI/AAAAAAAAAko/f_G2EvUDmdc/s400/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.50.47.png" style="cursor: move;" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-33Z3HbW--W8/TmsJSsGzjrI/AAAAAAAAAks/4DWXJ57pd5M/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.51.08.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="291" src="http://2.bp.blogspot.com/-33Z3HbW--W8/TmsJSsGzjrI/AAAAAAAAAks/4DWXJ57pd5M/s320/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.51.08.png" style="cursor: move;" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-9VfcqF4qeSE/Ttnc8eroV7I/AAAAAAAABP4/tk79lDd9jlE/s1600/Captura+de+pantalla+2011-12-03+a+la%2528s%2529+02.24.53.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="288" src="http://2.bp.blogspot.com/-9VfcqF4qeSE/Ttnc8eroV7I/AAAAAAAABP4/tk79lDd9jlE/s320/Captura+de+pantalla+2011-12-03+a+la%2528s%2529+02.24.53.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;5.) Agregaremos el controlador de Categorias.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-top: -6px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;5.1)&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Presione Clic derecho sobre la carpeta de Controllers, luego add y por ultimo&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Controller&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;....&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s1600/controller.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s400/controller.png" style="cursor: move;" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;4.2) Se mostrara la pantalla para que seleccione el tipo de Controller.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Gmm-ivMQPGg/Ttnd9Z69YbI/AAAAAAAABQE/C6cLgAYp5sE/s1600/Captura+de+pantalla+2011-12-03+a+la%2528s%2529+02.29.16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="265" src="http://3.bp.blogspot.com/-Gmm-ivMQPGg/Ttnd9Z69YbI/AAAAAAAABQE/C6cLgAYp5sE/s400/Captura+de+pantalla+2011-12-03+a+la%2528s%2529+02.29.16.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Nombre:&amp;nbsp;CategoriasController&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Template:&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"&gt;Adding a controller with read/write actions and views, using Entity Framework&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Model Data Class: Categories (Nombre proyecto.Models)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Data Context class: NortwindEntities (&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Nombre proyecto.Models)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Views: Razor (cshtml)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;5.)&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Explorado las&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Vistas.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn21_345da2c9ec333e87f61f4549ae8eb810"&gt;Luego del ultimo paso nos creo 5 archivos en la carpeta view, estos archivos nos ayudaran a manejar nuestro controlador.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Create.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Delete.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Details.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Edit.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Index.cshtml&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn21_345da2c9ec333e87f61f4549ae8eb810"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://3.bp.blogspot.com/-IJs37EMMZ-c/TmsTDa4AwKI/AAAAAAAAAlU/g23QHH7EJZM/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.32.37.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-IJs37EMMZ-c/TmsTDa4AwKI/AAAAAAAAAlU/g23QHH7EJZM/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.32.37.png" style="cursor: move;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;6.) Abra el controlador :&amp;nbsp;CategoriasController &lt;br /&gt;&lt;br /&gt;6.1)Agregue el siguiente método&lt;br /&gt;&lt;br /&gt;&lt;pre&gt; &lt;span style="color: blue;"&gt;public&lt;/span&gt; FileContentResult GetImage(Int32 CategoryID) &lt;br /&gt;        { &lt;br /&gt;            Category cat = db.Categories.FirstOrDefault(c =&amp;gt; c.CategoryID == CategoryID); &lt;br /&gt;            &lt;span style="color: blue;"&gt;if&lt;/span&gt; (cat != &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;            { &lt;br /&gt;                 &lt;br /&gt;                &lt;span style="color: blue;"&gt;string&lt;/span&gt; type = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;br /&gt;                &lt;span style="color: blue;"&gt;if&lt;/span&gt; (!&lt;span style="color: blue;"&gt;string&lt;/span&gt;.IsNullOrEmpty(cat.ImageMimeType)) &lt;br /&gt;                { &lt;br /&gt;                    type = cat.ImageMimeType; &lt;br /&gt;                } &lt;br /&gt;                &lt;span style="color: blue;"&gt;else&lt;/span&gt; &lt;br /&gt;                { &lt;br /&gt;                    type = &lt;span style="color: maroon;"&gt;"image/jpeg"&lt;/span&gt;; &lt;br /&gt;                } &lt;br /&gt;&lt;br /&gt;                &lt;span style="color: blue;"&gt;return&lt;/span&gt; File(cat.Picture, type); &lt;br /&gt;            } &lt;br /&gt;            &lt;span style="color: blue;"&gt;else&lt;/span&gt; &lt;br /&gt;            { &lt;br /&gt;                &lt;span style="color: blue;"&gt;return&lt;/span&gt; &lt;span style="color: blue;"&gt;null&lt;/span&gt;;&lt;br /&gt;            } &lt;br /&gt;        }&lt;/pre&gt;&lt;br /&gt;6.2) Edite el metodo Create de la siguiente manera.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;  [HttpPost] &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; ActionResult Create(Category category, HttpPostedFileBase image)&lt;br /&gt;        { &lt;br /&gt;            &lt;span style="color: blue;"&gt;if&lt;/span&gt; (ModelState.IsValid) &lt;br /&gt;            { &lt;br /&gt;                &lt;span style="color: blue;"&gt;if&lt;/span&gt; (image != &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;                {                 &lt;br /&gt;                    category.ImageMimeType = image.ContentType; &lt;br /&gt;                    &lt;span style="color: blue;"&gt;int&lt;/span&gt; length = image.ContentLength; &lt;br /&gt;                    &lt;span style="color: blue;"&gt;byte&lt;/span&gt;[] buffer = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: blue;"&gt;byte&lt;/span&gt;[length]; &lt;br /&gt;                    image.InputStream.Read(buffer, &lt;span style="color: maroon;"&gt;0&lt;/span&gt;, length);&lt;br /&gt;                    category.Picture = buffer; &lt;br /&gt;                } &lt;br /&gt;&lt;br /&gt;                db.Categories.AddObject(category); &lt;br /&gt;                db.SaveChanges(); &lt;br /&gt;                &lt;span style="color: blue;"&gt;return&lt;/span&gt; RedirectToAction(&lt;span style="color: maroon;"&gt;"Index"&lt;/span&gt;);   &lt;br /&gt;            } &lt;br /&gt;&lt;br /&gt;            &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(category); &lt;br /&gt;        }&lt;/pre&gt;&lt;br /&gt;7.) Editando vistas&lt;br /&gt;7.1) Abra la vista index.cshtml ubicada en la carpeta view, agregue el siguiente código, después del td del campo descripción.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;td&amp;gt; &lt;br /&gt;@&lt;span style="color: blue;"&gt;if&lt;/span&gt; (item.Picture != &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;{ &lt;br /&gt;&amp;lt;div style=&lt;span style="color: maroon;"&gt;"float:left;margin-right:20px"&lt;/span&gt;&amp;gt; &lt;br /&gt;&amp;lt;img width=&lt;span style="color: maroon;"&gt;"75"&lt;/span&gt; height=&lt;span style="color: maroon;"&gt;"75"&lt;/span&gt; src=&lt;span style="color: maroon;"&gt;"@Url.Action("&lt;/span&gt;GetImage&lt;span style="color: maroon;"&gt;", "&lt;/span&gt;Categorias&lt;span style="color: maroon;"&gt;", new { item.CategoryID })"&lt;/span&gt; /&amp;gt; &lt;br /&gt;&amp;lt;/div&amp;gt; &lt;br /&gt;} &lt;br /&gt;&amp;lt;/td&amp;gt;&lt;/pre&gt;&lt;br /&gt;7.2)Abra la vista Create.cshtml ubicada en la carpeta view, reemplace con el siguiente código:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt; @model MVCentity.Models.Category &lt;br /&gt;&lt;br /&gt;@{ &lt;br /&gt;    ViewBag.Title = &lt;span style=' color: Maroon;'&gt;"Create"&lt;/span&gt;; &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;&amp;lt;h2&amp;gt;Create&amp;lt;/h2&amp;gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;script src=&lt;span style=' color: Maroon;'&gt;"@Url.Content("&lt;/span&gt;~/Scripts/jquery.validate.min.js&lt;span style=' color: Maroon;'&gt;")"&lt;/span&gt; type=&lt;span style=' color: Maroon;'&gt;"text/javascript"&lt;/span&gt;&amp;gt;&amp;lt;/script&amp;gt; &lt;br /&gt;&amp;lt;script src=&lt;span style=' color: Maroon;'&gt;"@Url.Content("&lt;/span&gt;~/Scripts/jquery.validate.unobtrusive.min.js&lt;span style=' color: Maroon;'&gt;")"&lt;/span&gt; type=&lt;span style=' color: Maroon;'&gt;"text/javascript"&lt;/span&gt;&amp;gt;&amp;lt;/script&amp;gt; &lt;br /&gt;&lt;br /&gt;@&lt;span style=' color: Blue;'&gt;using&lt;/span&gt; (Html.BeginForm(&lt;span style=' color: Maroon;'&gt;"Create"&lt;/span&gt;, &lt;span style=' color: Maroon;'&gt;"Categorias"&lt;/span&gt;, FormMethod.Post, &lt;span style=' color: Blue;'&gt;new&lt;/span&gt; { enctype = &lt;span style=' color: Maroon;'&gt;"multipart/form-data"&lt;/span&gt; })) &lt;br /&gt;{ &lt;br /&gt;    @Html.ValidationSummary(&lt;span style=' color: Maroon;'&gt;true&lt;/span&gt;) &lt;br /&gt;    &amp;lt;fieldset&amp;gt; &lt;br /&gt;        &amp;lt;legend&amp;gt;Category&amp;lt;/legend&amp;gt; &lt;br /&gt;&lt;br /&gt;        &amp;lt;div &lt;span style=' color: Blue;'&gt;class&lt;/span&gt;=&lt;span style=' color: Maroon;'&gt;"editor-label"&lt;/span&gt;&amp;gt; &lt;br /&gt;            @Html.LabelFor(model =&amp;gt; model.CategoryName) &lt;br /&gt;        &amp;lt;/div&amp;gt; &lt;br /&gt;        &amp;lt;div &lt;span style=' color: Blue;'&gt;class&lt;/span&gt;=&lt;span style=' color: Maroon;'&gt;"editor-field"&lt;/span&gt;&amp;gt; &lt;br /&gt;            @Html.EditorFor(model =&amp;gt; model.CategoryName) &lt;br /&gt;            @Html.ValidationMessageFor(model =&amp;gt; model.CategoryName) &lt;br /&gt;        &amp;lt;/div&amp;gt; &lt;br /&gt;&lt;br /&gt;        &amp;lt;div &lt;span style=' color: Blue;'&gt;class&lt;/span&gt;=&lt;span style=' color: Maroon;'&gt;"editor-label"&lt;/span&gt;&amp;gt; &lt;br /&gt;            @Html.LabelFor(model =&amp;gt; model.Description) &lt;br /&gt;        &amp;lt;/div&amp;gt; &lt;br /&gt;        &amp;lt;div &lt;span style=' color: Blue;'&gt;class&lt;/span&gt;=&lt;span style=' color: Maroon;'&gt;"editor-field"&lt;/span&gt;&amp;gt; &lt;br /&gt;            @Html.EditorFor(model =&amp;gt; model.Description) &lt;br /&gt;            @Html.ValidationMessageFor(model =&amp;gt; model.Description) &lt;br /&gt;        &amp;lt;/div&amp;gt; &lt;br /&gt;        &amp;lt;div &lt;span style=' color: Blue;'&gt;class&lt;/span&gt;=&lt;span style=' color: Maroon;'&gt;"editor-label"&lt;/span&gt;&amp;gt; &lt;br /&gt;            Imagen &lt;br /&gt;        &amp;lt;/div&amp;gt; &lt;br /&gt;        &amp;lt;div &lt;span style=' color: Blue;'&gt;class&lt;/span&gt;=&lt;span style=' color: Maroon;'&gt;"editor-field"&lt;/span&gt;&amp;gt; &lt;br /&gt;            &amp;lt;input type=&lt;span style=' color: Maroon;'&gt;"file"&lt;/span&gt; name=&lt;span style=' color: Maroon;'&gt;"image"&lt;/span&gt; /&amp;gt; &lt;br /&gt;        &amp;lt;/div&amp;gt; &lt;br /&gt;        &amp;lt;p&amp;gt; &lt;br /&gt;            &amp;lt;input type=&lt;span style=' color: Maroon;'&gt;"submit"&lt;/span&gt; value=&lt;span style=' color: Maroon;'&gt;"Create"&lt;/span&gt; /&amp;gt; &lt;br /&gt;        &amp;lt;/p&amp;gt; &lt;br /&gt;    &amp;lt;/fieldset&amp;gt; &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;&amp;lt;div&amp;gt; &lt;br /&gt;    @Html.ActionLink(&lt;span style=' color: Maroon;'&gt;"Back to List"&lt;/span&gt;, &lt;span style=' color: Maroon;'&gt;"Index"&lt;/span&gt;) &lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-4013070707931070133?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/4013070707931070133/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=4013070707931070133' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/4013070707931070133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/4013070707931070133'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/12/cargar-y-guardar-una-imagen-en-la-base.html' title='Cargar y guardar una imagen en la base de datos'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-El-1eP45Go8/TtneYWx_vjI/AAAAAAAABQM/3Gnrh_XhUrA/s72-c/Captura+de+pantalla+2011-12-03+a+la%2528s%2529+02.31.09.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-4726517416496784046</id><published>2011-11-26T02:18:00.001-06:00</published><updated>2011-11-26T03:35:22.872-06:00</updated><title type='text'>Datepicker con MVC (Razor)</title><content type='html'>El ejemplo final será:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-6gfQCR8nXh4/TtCg76cg-zI/AAAAAAAABLc/_N1N9_ZR0Sk/s1600/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+02.10.41.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-6gfQCR8nXh4/TtCg76cg-zI/AAAAAAAABLc/_N1N9_ZR0Sk/s320/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+02.10.41.png" width="281" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;El ejemplo aplicara a todos los tipos de datos de fecha: Ejemplo&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="prettyprint" style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(136, 136, 136); border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-left-color: rgb(136, 136, 136); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(136, 136, 136); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(136, 136, 136); border-top-style: solid; border-top-width: 1px; border-width: initial; color: #800039; font-family: 'Courier New', Courier, monospace; font-size: 0.7em; overflow-x: auto; padding-bottom: 2px; padding-left: 2px; padding-right: 2px; padding-top: 2px;"&gt;&lt;span class="pun" style="color: #666600;"&gt;[&lt;/span&gt;&lt;span class="typ" style="color: #660066;"&gt;DataType&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="typ" style="color: #660066;"&gt;DataType&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;.&lt;/span&gt;&lt;span class="typ" style="color: #660066;"&gt;Date&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)]&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="kwd" style="color: #000088;"&gt;public&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="typ" style="color: #660066;"&gt;DateTime&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="typ" style="color: #660066;"&gt;ReleaseDate&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;{&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="kwd" style="color: #000088;"&gt;get&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;;&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="kwd" style="color: #000088;"&gt;set&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;;&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Pero en este ejemplo no utilizaremos ya que lo realizaremos con Entity Framework.&lt;br /&gt;&lt;br /&gt;1.)&amp;nbsp;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;Crear el proyecto, File - New Proyect - ASP.NET MVC Web Applicaction&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-4Ih5YcFegK0/TtCiGwWFh4I/AAAAAAAABLo/cFRimbOx0K8/s1600/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+01.49.50.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/-4Ih5YcFegK0/TtCiGwWFh4I/AAAAAAAABLo/cFRimbOx0K8/s640/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+01.49.50.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;2.)&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;Le mostrara la pantalla de que tipo de aplicación (Internet o intranet), que tipo de motor quiere utilizar ASPX o&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx" style="color: #d52a33; text-decoration: none;"&gt;Razor&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;b&gt;Seleccione Internet Application y Use HTML 5 semantic Markup.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="366" src="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s400/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;3.)&amp;nbsp;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;En el Solucion explorer, presione clic derecho sobre la carpeta Models y luego en la ventana seleccione Ado Entity Data Model, con el nombre:&amp;nbsp;NorthwindModel.edmx&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;Seleccione las tablas: Orders, Customers, Employees&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-SrAxvePcgxk/TmsIj3gznSI/AAAAAAAAAkg/4cattOTijjE/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.57.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-SrAxvePcgxk/TmsIj3gznSI/AAAAAAAAAkg/4cattOTijjE/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.57.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-faYb0C6Yd3I/TmsInLaxSOI/AAAAAAAAAkk/xPyakRQdC28/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.31.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="395" src="http://2.bp.blogspot.com/-faYb0C6Yd3I/TmsInLaxSOI/AAAAAAAAAkk/xPyakRQdC28/s640/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.31.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-FiX2gwuMxOE/TmsJQpHzDcI/AAAAAAAAAko/f_G2EvUDmdc/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.50.47.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="365" src="http://2.bp.blogspot.com/-FiX2gwuMxOE/TmsJQpHzDcI/AAAAAAAAAko/f_G2EvUDmdc/s400/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.50.47.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-33Z3HbW--W8/TmsJSsGzjrI/AAAAAAAAAks/4DWXJ57pd5M/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.51.08.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="291" src="http://2.bp.blogspot.com/-33Z3HbW--W8/TmsJSsGzjrI/AAAAAAAAAks/4DWXJ57pd5M/s320/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.51.08.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-9xPJ6o98BS8/TtCjxhrxHwI/AAAAAAAABL8/mnBR4zWkGQQ/s1600/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+01.53.29.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="289" src="http://1.bp.blogspot.com/-9xPJ6o98BS8/TtCjxhrxHwI/AAAAAAAABL8/mnBR4zWkGQQ/s320/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+01.53.29.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;Antes de continuar compile el proyecto.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;4.)&amp;nbsp;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;Presione Clic derecho sobre la carpeta de Controllers, luego add y por ultimo&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Controller&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;....&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s1600/controller.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s400/controller.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-914vQWuxEaI/TtCkKA-Y5AI/AAAAAAAABME/0RYb4SbnTb4/s1600/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+01.54.33.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="265" src="http://2.bp.blogspot.com/-914vQWuxEaI/TtCkKA-Y5AI/AAAAAAAABME/0RYb4SbnTb4/s400/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+01.54.33.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #333333; font-family: Times; font-size: medium; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Nombre:&amp;nbsp;PedidosController&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #333333; font-family: Times; font-size: medium; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Template:&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"&gt;Adding a controller with read/write actions and views, using Entity Framework&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #333333; font-family: Times; font-size: medium; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Model Data Class: Orders (Nombre proyecto.Models)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: #333333; font-family: Times; font-size: medium; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Data Context class: NortwindEntities (&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Nombre proyecto.Models)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Views: Razor (cshtml)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;5.) Agregando templates:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;5.1) Cree las siguientes carpetas, &amp;nbsp;View , shared&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;DisplayTemplates&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;EditorTemplates&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;5.2) Cree el archivo display en la carpeta&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;DisplayTemplates&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&amp;nbsp;con el nombre&amp;nbsp;DateTime&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-8pSvCm0Ntzw/TtCnFZr0kzI/AAAAAAAABMQ/f3Z9wvDJhkM/s1600/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+02.44.24.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-8pSvCm0Ntzw/TtCnFZr0kzI/AAAAAAAABMQ/f3Z9wvDJhkM/s320/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+02.44.24.png" width="318" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Agregue el siguiente código:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre&gt;@model Nullable&amp;lt;DateTime&amp;gt; &lt;br /&gt;@(Model != &lt;span style="color: blue;"&gt;null&lt;/span&gt; ? &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Format(&lt;span style="color: maroon;"&gt;"{0:d}"&lt;/span&gt;, Model) : &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty)&lt;/pre&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;5.3)&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Cree el archivo Editor en la carpeta&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;EditorTemplates&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&amp;nbsp;con el nombre&amp;nbsp;DateTime (ver paso 5.2)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;Agregue el siguiente código:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre&gt;@model Nullable&amp;lt;DateTime&amp;gt; &lt;br /&gt;&lt;br /&gt; @{ &lt;br /&gt;    DateTime dt = DateTime.Now; &lt;br /&gt;    &lt;span style="color: blue;"&gt;if&lt;/span&gt; (Model != &lt;span style="color: blue;"&gt;null&lt;/span&gt;) &lt;br /&gt;    { &lt;br /&gt;       dt  = (System.DateTime) Model; &lt;br /&gt;    &lt;br /&gt;    } &lt;br /&gt;    @Html.TextBox(&lt;span style="color: maroon;"&gt;""&lt;/span&gt;, String.Format(&lt;span style="color: maroon;"&gt;"{0:d}"&lt;/span&gt;, dt.ToShortDateString()), &lt;br /&gt;     &lt;span style="color: blue;"&gt;new&lt;/span&gt; { @&lt;span style="color: blue;"&gt;class&lt;/span&gt; = &lt;span style="color: maroon;"&gt;"datefield"&lt;/span&gt;, type = &lt;span style="color: maroon;"&gt;"date"&lt;/span&gt;  }) &lt;br /&gt;} &lt;/pre&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;6.) En Visual Studio clic en Tools, Library Package Manager, Manager NuGet Packages.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;Busque online: jquery.ui&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;Seleccione jQuery.UI.Widgets.Datepicker&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-B_YWnf3Ibis/TtCo8VURHwI/AAAAAAAABMc/2Nxe1cOE1Yw/s1600/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+02.01.50.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="425" src="http://3.bp.blogspot.com/-B_YWnf3Ibis/TtCo8VURHwI/AAAAAAAABMc/2Nxe1cOE1Yw/s640/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+02.01.50.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Esto agregar los siguientes archivos:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 5px; padding-left: 30px; padding-right: 0px; padding-top: 5px;"&gt;&lt;li style="padding-bottom: 0.1em; padding-left: 0px; padding-right: 0px; padding-top: 0.1em;"&gt;&lt;em&gt;jquery.ui.core.js&lt;/em&gt;&lt;/li&gt;&lt;li style="padding-bottom: 0.1em; padding-left: 0px; padding-right: 0px; padding-top: 0.1em;"&gt;&lt;em&gt;jquery.ui.core.min.js&lt;/em&gt;&lt;/li&gt;&lt;li style="padding-bottom: 0.1em; padding-left: 0px; padding-right: 0px; padding-top: 0.1em;"&gt;&lt;em&gt;jquery.ui.datepicker.js&lt;/em&gt;&lt;/li&gt;&lt;li style="padding-bottom: 0.1em; padding-left: 0px; padding-right: 0px; padding-top: 0.1em;"&gt;&lt;em&gt;jquery.ui.datepicker.min.js&lt;/em&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;7.) Por ultimo agregue el archivo&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;em&gt;DatePickerReady.js&lt;/em&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;&amp;nbsp;en la carpeta Script&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;&lt;/span&gt;&lt;br /&gt;$(function () {&lt;br /&gt;&amp;nbsp; &amp;nbsp; $(".datefield").datepicker();&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;8.) Agregue las referencias a los jquery, en el archivo layout.cshtml localizada en view, share.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;  &amp;lt;link href=&lt;span style="color: maroon;"&gt;"@Url.Content("&lt;/span&gt;~/Content/themes/&lt;span style="color: blue;"&gt;base&lt;/span&gt;/jquery.ui.core.css&lt;span style="color: maroon;"&gt;")"&lt;/span&gt;  &lt;br /&gt;        rel=&lt;span style="color: maroon;"&gt;"stylesheet"&lt;/span&gt; type=&lt;span style="color: maroon;"&gt;"text/css"&lt;/span&gt; /&amp;gt; &lt;br /&gt;    &amp;lt;link href=&lt;span style="color: maroon;"&gt;"@Url.Content("&lt;/span&gt;~/Content/themes/&lt;span style="color: blue;"&gt;base&lt;/span&gt;/jquery.ui.datepicker.css&lt;span style="color: maroon;"&gt;")"&lt;/span&gt;  &lt;br /&gt;        rel=&lt;span style="color: maroon;"&gt;"stylesheet"&lt;/span&gt;  type=&lt;span style="color: maroon;"&gt;"text/css"&lt;/span&gt; /&amp;gt; &lt;br /&gt;    &amp;lt;link href=&lt;span style="color: maroon;"&gt;"@Url.Content("&lt;/span&gt;~/Content/themes/&lt;span style="color: blue;"&gt;base&lt;/span&gt;/jquery.ui.theme.css&lt;span style="color: maroon;"&gt;")"&lt;/span&gt;  &lt;br /&gt;        rel=&lt;span style="color: maroon;"&gt;"stylesheet"&lt;/span&gt; type=&lt;span style="color: maroon;"&gt;"text/css"&lt;/span&gt; /&amp;gt; &lt;br /&gt;&lt;br /&gt;    &amp;lt;script src=&lt;span style="color: maroon;"&gt;"@Url.Content("&lt;/span&gt;~/Scripts/jquery.ui.core.min.js&lt;span style="color: maroon;"&gt;")"&lt;/span&gt;  &lt;br /&gt;        type=&lt;span style="color: maroon;"&gt;"text/javascript"&lt;/span&gt;&amp;gt;&amp;lt;/script&amp;gt; &lt;br /&gt;    &amp;lt;script src=&lt;span style="color: maroon;"&gt;"@Url.Content("&lt;/span&gt;~/Scripts/jquery.ui.datepicker.min.js&lt;span style="color: maroon;"&gt;")"&lt;/span&gt;  &lt;br /&gt;        type=&lt;span style="color: maroon;"&gt;"text/javascript"&lt;/span&gt;&amp;gt;&amp;lt;/script&amp;gt; &lt;br /&gt;    &amp;lt;script src=&lt;span style="color: maroon;"&gt;"@Url.Content("&lt;/span&gt;~/Scripts/DatePickerReady.js&lt;span style="color: maroon;"&gt;")"&lt;/span&gt;  &lt;br /&gt;        type=&lt;span style="color: maroon;"&gt;"text/javascript"&lt;/span&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Si quieren que el picker este en español tienen que descargar de&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;&lt;a href="http://jqueryui.com/"&gt;http://jqueryui.com/&lt;/a&gt;&amp;nbsp;las librerías de jquery y luego agregar el layourt.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt; &amp;lt;script src=&lt;span style="color: maroon;"&gt;"@Url.Content("&lt;/span&gt;~/Scripts/jquery.ui.datepicker-es.js&lt;span style="color: maroon;"&gt;")"&lt;/span&gt;  &lt;br /&gt;        type=&lt;span style="color: maroon;"&gt;"text/javascript"&lt;/span&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;Luego cambiar la función&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: 11px;"&gt;&lt;em&gt;DatePickerReady.js&lt;/em&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;&amp;nbsp;por:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;$(function () {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; $(".datefield").datepicker($.datepicker.regional[ "es" ] );&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small; line-height: 18px;"&gt;});&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Para cambiar los colores de su control ingrese a:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;a href="http://jqueryui.com/"&gt;http://jqueryui.com/&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-4726517416496784046?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/4726517416496784046/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=4726517416496784046' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/4726517416496784046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/4726517416496784046'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/11/datepicker-con-mvc-razor.html' title='Datepicker con MVC (Razor)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-6gfQCR8nXh4/TtCg76cg-zI/AAAAAAAABLc/_N1N9_ZR0Sk/s72-c/Captura+de+pantalla+2011-11-26+a+la%2528s%2529+02.10.41.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-7144994035713369165</id><published>2011-11-18T23:12:00.001-06:00</published><updated>2011-11-19T01:06:28.167-06:00</updated><title type='text'>MVC con Entity Framework</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="text-align: -webkit-auto;"&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Información general&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn1_11932985ecd73305065b7c26056b72f5"&gt;El modelo de arquitectura Model-View-Controller (MVC) separa una aplicación en tres componentes principales: el modelo, la vista y el controlador.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn2_15ca6706178b0c4d8ba9c826597b8f87"&gt;El framework de ASP.NET MVC proporciona una alternativa al modelo de formularios Web Forms de ASP.NET para crear aplicaciones web.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: xx-small;"&gt;&lt;a href="http://msdn.microsoft.com/es-ar/library/dd381412.aspx"&gt;Leer mas teoría sobre MVC&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Hpo7SRqbrZE/Tmr4nEhSh_I/AAAAAAAAAkM/MUp8zsUYGCg/s1600/What-Is-MVC.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="307" src="http://2.bp.blogspot.com/-Hpo7SRqbrZE/Tmr4nEhSh_I/AAAAAAAAAkM/MUp8zsUYGCg/s320/What-Is-MVC.png" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;MVC&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;0.) Instalar MVC 3, descargarlo de &lt;a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=1491"&gt;aqui&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;1.)Crear el proyecto, File - New Proyect - ASP.NET MVC Web Applicaction&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://3.bp.blogspot.com/-eEUMichHsUA/Tmr9dmTg2aI/AAAAAAAAAkU/d7WMfuopj4c/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.00.39.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="396" src="http://3.bp.blogspot.com/-eEUMichHsUA/Tmr9dmTg2aI/AAAAAAAAAkU/d7WMfuopj4c/s640/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.00.39.png" width="640" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;2.) &amp;nbsp;Le mostrara la pantalla de que tipo de aplicación (Internet o intranet), que tipo de motor quiere utilizar ASPX o &lt;a href="http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx"&gt;Razor&lt;/a&gt;. &lt;b&gt;Seleccione Internet Application y Use HTML 5 semantic Markup.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Diferencias:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Emply un proyecto Totalmente Vacio.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Internet Application un proyecto con autenticación por formularios.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Intranet Application un proyecto con autenticación por Windows Active Directory.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;3.) Creando el modelo&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn11_396290be4db50543b763cc867bcbace1"&gt;&lt;b&gt;Modelos.&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn12_78c1ad0ad588d201d5cc41fdfa5ae33d"&gt;Los objetos de modelo son las partes de la aplicación que implementan la lógica del dominio de datos de la aplicación.&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn13_103ead810a46a7759ee35ae375ad31a9"&gt;A menudo, los objetos de modelo recuperan y almacenan el estado del modelo en una base de datos.&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn14_a878a98b29dc2fa13fa62801ee485b82"&gt;Por ejemplo, un objeto&amp;nbsp;&lt;span class="code" xmlns="http://www.w3.org/1999/xhtml"&gt;Productos&lt;/span&gt;&amp;nbsp;podría recuperar información de una base de datos, trabajar con ella y, a continuación, escribir la información actualizada en una tabla Productos de una base de datos de SQL Server.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn14_a878a98b29dc2fa13fa62801ee485b82"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;3.1)En el Solucion explorer, presione clic derecho sobre la carpeta Models y luego en la ventana seleccione Ado Entity Data Model, con el nombre:&amp;nbsp;NorthwindModel.edmx&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Continue los pasos del asistente, como se indica en las imagenes.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;a href="http://3.bp.blogspot.com/-SrAxvePcgxk/TmsIj3gznSI/AAAAAAAAAkg/4cattOTijjE/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.57.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-SrAxvePcgxk/TmsIj3gznSI/AAAAAAAAAkg/4cattOTijjE/s320/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.57.png" width="286" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;a href="http://2.bp.blogspot.com/-faYb0C6Yd3I/TmsInLaxSOI/AAAAAAAAAkk/xPyakRQdC28/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.31.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="395" src="http://2.bp.blogspot.com/-faYb0C6Yd3I/TmsInLaxSOI/AAAAAAAAAkk/xPyakRQdC28/s640/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.31.png" width="640" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-FiX2gwuMxOE/TmsJQpHzDcI/AAAAAAAAAko/f_G2EvUDmdc/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.50.47.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="365" src="http://2.bp.blogspot.com/-FiX2gwuMxOE/TmsJQpHzDcI/AAAAAAAAAko/f_G2EvUDmdc/s400/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.50.47.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-33Z3HbW--W8/TmsJSsGzjrI/AAAAAAAAAks/4DWXJ57pd5M/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.51.08.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="363" src="http://2.bp.blogspot.com/-33Z3HbW--W8/TmsJSsGzjrI/AAAAAAAAAks/4DWXJ57pd5M/s400/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.51.08.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-RVvb2mYgnNA/Tsc7b6MVlKI/AAAAAAAABJA/aogHlsqHXCU/s1600/Captura+de+pantalla+2011-11-18+a+la%2528s%2529+23.14.35.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/-RVvb2mYgnNA/Tsc7b6MVlKI/AAAAAAAABJA/aogHlsqHXCU/s400/Captura+de+pantalla+2011-11-18+a+la%2528s%2529+23.14.35.png" width="358" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;3.2) Antes de continuar compile el proyecto.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;4.) &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;Creado el Controlador&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: xx-small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span class="sentence" id="xn22_2fc5ce8e8478956f1beeb0a5783ba008"&gt;&lt;b&gt;Controladores.&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn23_66d32513ba1b6409c31254cd8747640f"&gt;Los controladores son los componentes que controlan la interacción del usuario, trabajan con el modelo y por último seleccionan una vista para representar la interfaz de usuario.&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn24_fa893e8431c24090abaf30b15998717d"&gt;En una aplicación MVC, la vista solo muestra información; el controlador administra y responde a los datos proporcionados por el usuario y su interacción.&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn25_044d7ce11d8da71e9feaebd3ba920be3"&gt;Por ejemplo, el controlador administra los valores de la cadena de consulta y pasa estos valores al modelo, que a su vez podría utilizarlos para consultar la base de datos.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;4.1)&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Presione Clic derecho sobre la carpeta de Controllers, luego add y por ultimo&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Controller&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;....&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s1600/controller.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s400/controller.png" width="400" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-top: -6px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;4.2) Se mostrara la pantalla para que seleccione el tipo de Controller.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-hsxCK5RLpOs/Tsc8Ll7bYMI/AAAAAAAABJI/BiyTqbRa7eU/s1600/Captura+de+pantalla+2011-11-18+a+la%2528s%2529+23.18.17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="266" src="http://4.bp.blogspot.com/-hsxCK5RLpOs/Tsc8Ll7bYMI/AAAAAAAABJI/BiyTqbRa7eU/s400/Captura+de+pantalla+2011-11-18+a+la%2528s%2529+23.18.17.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Nombre:&amp;nbsp;ProductosController&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Template:&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"&gt;Adding a controller with read/write actions and views, using Entity Framework&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Model Data Class: Products (Nombre proyecto.Models)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Data Context class: NortwindEntities (&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Nombre proyecto.Models)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Views: Razor (cshtml)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;5.)&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Explorado las&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Vistas.&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn18_fc1d35032838b6d7a4395e9652e3de45"&gt;&lt;b&gt;Vistas.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn19_f2ced648802691e6c62f6cbfd83895f5"&gt;Las vistas son los componentes que muestra la interfaz de usuario de la aplicación.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn20_31bd3031d5b80fdb9e2008b839006d2a"&gt;Normalmente, esta interfaz de usuario se crea a partir de los datos de modelo.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn21_345da2c9ec333e87f61f4549ae8eb810"&gt;Un ejemplo sería una vista de edición de una tabla Productos que muestra cuadros de texto, listas desplegables y casillas basándose en el estado actual de un objeto&amp;nbsp;&lt;span class="code" xmlns="http://www.w3.org/1999/xhtml"&gt;Product&lt;/span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn21_345da2c9ec333e87f61f4549ae8eb810"&gt;Luego del ultimo paso nos creo 5 archivos en la carpeta view, estos archivos nos ayudaran a manejar nuestro controlador.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Create.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Delete.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Details.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Edit.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Index.cshtml&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn21_345da2c9ec333e87f61f4549ae8eb810"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;a href="http://3.bp.blogspot.com/-IJs37EMMZ-c/TmsTDa4AwKI/AAAAAAAAAlU/g23QHH7EJZM/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.32.37.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-IJs37EMMZ-c/TmsTDa4AwKI/AAAAAAAAAlU/g23QHH7EJZM/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.32.37.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-6ToqWb8e8UA/TmsTIFbZURI/AAAAAAAAAlY/HlcXYqLGg64/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.32.50.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="456" src="http://4.bp.blogspot.com/-6ToqWb8e8UA/TmsTIFbZURI/AAAAAAAAAlY/HlcXYqLGg64/s640/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.32.50.png" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Archivo Index.cshtml&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;6.) Cambiando Los enrutadores, para mostrar nuestro mas reciente proyecto tenemos que modificar layout.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;6.1) En la carpeta view - dentro de la carpeta de share - abra el archivo&amp;nbsp;_Layout.cshtml este archivo contiene nuestra plantilla del sitio.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt; &amp;lt;ul id=&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt;&lt;span style="color: maroon;"&gt;"menu"&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;@Html.ActionLink(&lt;span style="color: maroon;"&gt;"Home"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Index"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Home"&lt;/span&gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;@Html.ActionLink(&lt;span style="color: maroon;"&gt;"About"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"About"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Home"&lt;/span&gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;@Html.ActionLink(&lt;span style="color: maroon;"&gt;"Productos"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Index"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Productos"&lt;/span&gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;6.1) Ejecute su proyecto (F5) para poder probar su proyecto, el resultado será:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Hm2y9CZFCFQ/Tsc8v4sabtI/AAAAAAAABJU/IY8OUUXbkfQ/s1600/Captura+de+pantalla+2011-11-18+a+la%2528s%2529+23.20.39.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="54" src="http://4.bp.blogspot.com/-Hm2y9CZFCFQ/Tsc8v4sabtI/AAAAAAAABJU/IY8OUUXbkfQ/s320/Captura+de+pantalla+2011-11-18+a+la%2528s%2529+23.20.39.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-WIaKePQchHU/Tsc87rzsETI/AAAAAAAABJc/cDnDdiD_ZE0/s1600/Captura+de+pantalla+2011-11-18+a+la%2528s%2529+23.21.24.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="138" src="http://4.bp.blogspot.com/-WIaKePQchHU/Tsc87rzsETI/AAAAAAAABJc/cDnDdiD_ZE0/s640/Captura+de+pantalla+2011-11-18+a+la%2528s%2529+23.21.24.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;7.) Agregado un Filtro a la pantalla de Index.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;7.1) Abra el controller&amp;nbsp;CategoryController y agregue el siguiente código en el método índex:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt; &lt;span style="color: blue;"&gt;public&lt;/span&gt; ViewResult Index(&lt;span style="color: blue;"&gt;string&lt;/span&gt; CategoryID)&lt;br /&gt;        { &lt;br /&gt;&lt;br /&gt;            var products = from p &lt;span style="color: blue;"&gt;in&lt;/span&gt; db.Products.Include(&lt;span style="color: maroon;"&gt;"Category"&lt;/span&gt;).Include(&lt;span style="color: maroon;"&gt;"Supplier"&lt;/span&gt;) &lt;br /&gt;                           select p; &lt;br /&gt;             &lt;br /&gt;            &lt;br /&gt;          ViewBag.CategoryID = &lt;span style="color: blue;"&gt;new&lt;/span&gt; SelectList(db.Categories, &lt;span style="color: maroon;"&gt;"CategoryID"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"CategoryName"&lt;/span&gt;); &lt;br /&gt;&lt;br /&gt;          &lt;br /&gt;            &lt;span style="color: blue;"&gt;if&lt;/span&gt; (!String.IsNullOrEmpty(CategoryID)) &lt;br /&gt;            { &lt;br /&gt;                &lt;span style="color: blue;"&gt;int&lt;/span&gt; idcategoria = Convert.ToInt32(CategoryID);&lt;br /&gt;                products = products.Where(x =&amp;gt; x.CategoryID == idcategoria); &lt;br /&gt;                 &lt;br /&gt;            }  &lt;br /&gt;            &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(products.ToList()); &lt;br /&gt;        }&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;7.2) En la carpeta view edite al archivo recienmente creado SearchIndex.cshtml:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;7.3) Agregue el siguiente código:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;p&amp;gt; &lt;br /&gt;    @Html.ActionLink(&lt;span style="color: maroon;"&gt;"Create New"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Create"&lt;/span&gt;) &lt;br /&gt;&lt;br /&gt;     @&lt;span style="color: blue;"&gt;using&lt;/span&gt; (Html.BeginForm())  &lt;br /&gt;    {  &lt;br /&gt;        &amp;lt;p&amp;gt;  &lt;br /&gt;            Product Name: @Html.DropDownList(&lt;span style="color: maroon;"&gt;"CategoryID"&lt;/span&gt;, String.Empty) &amp;amp;nbsp;  &lt;br /&gt;            &amp;lt;input type=&lt;span style="color: maroon;"&gt;"submit"&lt;/span&gt; value=&lt;span style="color: maroon;"&gt;"Search"&lt;/span&gt; /&amp;gt;&amp;lt;/p&amp;gt;  &lt;br /&gt;    }  &lt;br /&gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: xx-small;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;7.4) Resultado:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-nHsYjna70SU/TsdANhHTmOI/AAAAAAAABJo/WCFoHYvb8TU/s1600/Captura+de+pantalla+2011-11-18+a+la%2528s%2529+23.34.51.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="257" src="http://1.bp.blogspot.com/-nHsYjna70SU/TsdANhHTmOI/AAAAAAAABJo/WCFoHYvb8TU/s640/Captura+de+pantalla+2011-11-18+a+la%2528s%2529+23.34.51.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: xx-small;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;8.) Creando pantalla de Categorias:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font-family: Times; margin-top: -6px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;8.1)&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Presione Clic derecho sobre la carpeta de Controllers, luego add y por ultimo&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Controller&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;....&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s1600/controller.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s400/controller.png" style="cursor: move;" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times; margin-top: -6px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;div style="font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;8.2) Se mostrara la pantalla para que seleccione el tipo de Controller.&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-D8jnrHW4bSc/TsdBN9lgTYI/AAAAAAAABJ0/TGqiU-Ufg8U/s1600/Captura+de+pantalla+2011-11-18+a+la%2528s%2529+23.38.32.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="267" src="http://3.bp.blogspot.com/-D8jnrHW4bSc/TsdBN9lgTYI/AAAAAAAABJ0/TGqiU-Ufg8U/s400/Captura+de+pantalla+2011-11-18+a+la%2528s%2529+23.38.32.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: -webkit-auto;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Nombre:&amp;nbsp;CategoriasController&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Template:&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"&gt;Adding a controller with read/write actions and views, using Entity Framework&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Model Data Class: Category (Nombre proyecto.Models)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Data Context class: NortwindEntities (&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Nombre proyecto.Models)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Views: Razor (cshtml)&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;9 ) En la pantalla de índex &amp;nbsp;agregaremos los productos asociados a esa categoría.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;9.1) Abrir el controlador CategoriasController en el método índex y modificaremos de la siguiente manera:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre&gt; &lt;span style="color: blue;"&gt;public&lt;/span&gt; ViewResult Index(Int32? id) &lt;br /&gt;        { &lt;br /&gt;            var products = from p &lt;span style="color: blue;"&gt;in&lt;/span&gt; db.Products &lt;br /&gt;                           select p; &lt;br /&gt;            &lt;span style="color: blue;"&gt;if&lt;/span&gt; (id != &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;            { &lt;br /&gt;                ViewBag.CategoryId = id.Value; &lt;br /&gt;                products = products.Where(p =&amp;gt; p.CategoryID == id); &lt;br /&gt;                ViewBag.productos = products; &lt;br /&gt;            } &lt;br /&gt;            &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(db.Categories.ToList()); &lt;br /&gt;        }&lt;/pre&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;9.2) Abrir la vista índex&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&amp;nbsp;de categorías y modificar el código del foreach.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;@&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (var item &lt;span style="color: blue;"&gt;in&lt;/span&gt; Model) {&lt;br /&gt;    &lt;span style="color: blue;"&gt;string&lt;/span&gt; selectedRow = &lt;span style="color: maroon;"&gt;""&lt;/span&gt;; &lt;br /&gt;    &lt;span style="color: blue;"&gt;if&lt;/span&gt; (item.CategoryID == ViewBag.CategoryID) &lt;br /&gt;    { &lt;br /&gt;        selectedRow = &lt;span style="color: maroon;"&gt;"selectedrow"&lt;/span&gt;; &lt;br /&gt;    }  &lt;br /&gt;     &lt;br /&gt;    &amp;lt;tr &lt;span style="color: blue;"&gt;class&lt;/span&gt;=&lt;span style="color: maroon;"&gt;"@selectedRow"&lt;/span&gt;&amp;gt;                 &lt;br /&gt;        &amp;lt;td&amp;gt; &lt;br /&gt;            @Html.DisplayFor(modelItem =&amp;gt; item.CategoryName) &lt;br /&gt;        &amp;lt;/td&amp;gt; &lt;br /&gt;        &amp;lt;td&amp;gt; &lt;br /&gt;            @Html.DisplayFor(modelItem =&amp;gt; item.Description) &lt;br /&gt;        &amp;lt;/td&amp;gt; &lt;br /&gt;        &amp;lt;td&amp;gt; &lt;br /&gt;            @Html.ActionLink(&lt;span style="color: maroon;"&gt;"Select"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Index"&lt;/span&gt;, &lt;span style="color: blue;"&gt;new&lt;/span&gt; { id = item.CategoryID }) | &lt;br /&gt;            @Html.ActionLink(&lt;span style="color: maroon;"&gt;"Edit"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Edit"&lt;/span&gt;, &lt;span style="color: blue;"&gt;new&lt;/span&gt; { id=item.CategoryID }) | &lt;br /&gt;            @Html.ActionLink(&lt;span style="color: maroon;"&gt;"Details"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Details"&lt;/span&gt;, &lt;span style="color: blue;"&gt;new&lt;/span&gt; { id=item.CategoryID }) | &lt;br /&gt;            @Html.ActionLink(&lt;span style="color: maroon;"&gt;"Delete"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Delete"&lt;/span&gt;, &lt;span style="color: blue;"&gt;new&lt;/span&gt; { id=item.CategoryID }) &lt;br /&gt;        &amp;lt;/td&amp;gt; &lt;br /&gt;    &amp;lt;/tr&amp;gt; &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;&amp;lt;/table&amp;gt; &lt;br /&gt;@&lt;span style="color: blue;"&gt;if&lt;/span&gt; (ViewBag.productos != &lt;span style="color: blue;"&gt;null&lt;/span&gt;) &lt;br /&gt;{  &lt;br /&gt;    &amp;lt;h3&amp;gt;Productos para esta categoria&amp;lt;/h3&amp;gt;  &lt;br /&gt;&amp;lt;table&amp;gt;  &lt;br /&gt;    &amp;lt;tr&amp;gt;  &lt;br /&gt;      &lt;br /&gt;        &amp;lt;th&amp;gt;Nombre&amp;lt;/th&amp;gt;  &lt;br /&gt;        &amp;lt;th&amp;gt;Precio&amp;lt;/th&amp;gt;  &lt;br /&gt;        &amp;lt;th&amp;gt;Stock&amp;lt;/th&amp;gt;  &lt;br /&gt;    &amp;lt;/tr&amp;gt;  &lt;br /&gt;  &lt;br /&gt;    @&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (var item &lt;span style="color: blue;"&gt;in&lt;/span&gt; ViewBag.productos) &lt;br /&gt;    {  &lt;br /&gt;         &lt;br /&gt;    &amp;lt;tr&amp;gt;  &lt;br /&gt;        &lt;br /&gt;        &amp;lt;td&amp;gt;  &lt;br /&gt;            @item.ProductName  &lt;br /&gt;        &amp;lt;/td&amp;gt;  &lt;br /&gt;        &amp;lt;td&amp;gt;  &lt;br /&gt;             @String.Format(&lt;span style="color: maroon;"&gt;"{0:c}"&lt;/span&gt;, @item.UnitPrice)   &lt;br /&gt;        &amp;lt;/td&amp;gt;  &lt;br /&gt;         &lt;br /&gt;        @&lt;span style="color: blue;"&gt;if&lt;/span&gt;(@item.UnitsInStock==&lt;span style="color: maroon;"&gt;0&lt;/span&gt;)     &lt;br /&gt;        { &lt;br /&gt;            &amp;lt;td style=&lt;span style="color: maroon;"&gt;"color: red"&lt;/span&gt;&amp;gt;@item.UnitsInStock&amp;lt;/td&amp;gt;  &lt;br /&gt;        } &lt;br /&gt;        &lt;span style="color: blue;"&gt;else&lt;/span&gt; &lt;br /&gt;        { &lt;br /&gt;            &amp;lt;td&amp;gt; @item.UnitsInStock&amp;lt;/td&amp;gt; &lt;br /&gt;        }  &lt;br /&gt;           &lt;br /&gt;         &lt;br /&gt;    &amp;lt;/tr&amp;gt;  &lt;br /&gt;    }  &lt;br /&gt;  &lt;br /&gt;&amp;lt;/table&amp;gt;  &lt;br /&gt;}&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;9.3) Agregar la clase al css ubicado en content y luego Site.css&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;.selectedrow&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;{ &lt;br /&gt;     background-color:Silver;       &lt;br /&gt;} &lt;br /&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;Resultado final:&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-_Gapd8w7DfI/TsdPOHPu0NI/AAAAAAAABKA/2U_Pg3xpO2g/s1600/Captura+de+pantalla+2011-11-19+a+la%2528s%2529+00.39.37.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-_Gapd8w7DfI/TsdPOHPu0NI/AAAAAAAABKA/2U_Pg3xpO2g/s1600/Captura+de+pantalla+2011-11-19+a+la%2528s%2529+00.39.37.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-7144994035713369165?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/7144994035713369165/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=7144994035713369165' title='4 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/7144994035713369165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/7144994035713369165'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/11/mvc-con-entity-framework.html' title='MVC con Entity Framework'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-Hpo7SRqbrZE/Tmr4nEhSh_I/AAAAAAAAAkM/MUp8zsUYGCg/s72-c/What-Is-MVC.png' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-5180895541554114921</id><published>2011-10-22T00:29:00.000-06:00</published><updated>2011-10-23T00:39:32.982-06:00</updated><title type='text'>Ordernar, filtrar y pagineo  (MVC)</title><content type='html'>Para este ejemplo usaremos la tabla products de la base de datos northwind y ya debemos de tener su controlador y las vistas del mismo. &amp;nbsp;(&lt;a href="http://www.cjorellana.net/2011/10/introduction-mvc-controladores.html"&gt;Ver ejemplo anterior&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Código inicial del contraldor:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; ViewResult Index() &lt;br /&gt;{ &lt;br /&gt;    var products = db.Products.Include(p =&amp;gt; p.Categories).Include(p =&amp;gt; p.Suppliers);&lt;br /&gt;    &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(products.ToList()); &lt;br /&gt;}&lt;/pre&gt;Código inicial de la vista:&lt;br /&gt;&lt;pre&gt;&amp;lt;table&amp;gt; &lt;br /&gt;    &amp;lt;tr&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt; &lt;br /&gt;            ProductName &lt;br /&gt;        &amp;lt;/th&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt; &lt;br /&gt;            Suppliers &lt;br /&gt;        &amp;lt;/th&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt; &lt;br /&gt;            Categories &lt;br /&gt;        &amp;lt;/th&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt; &lt;br /&gt;            UnitPrice &lt;br /&gt;        &amp;lt;/th&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt; &lt;br /&gt;            UnitsInStock &lt;br /&gt;        &amp;lt;/th&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt; &lt;br /&gt;            Discontinued &lt;br /&gt;        &amp;lt;/th&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt;&amp;lt;/th&amp;gt; &lt;br /&gt;    &amp;lt;/tr&amp;gt;&lt;/pre&gt;&lt;b&gt;&lt;/b&gt;&lt;b&gt;Sort:&lt;/b&gt;&lt;br /&gt;En este ejemplo agregaremos al controlador.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; ViewResult Index(&lt;span style="color: blue;"&gt;string&lt;/span&gt; sortOrder)&lt;br /&gt;{ &lt;br /&gt;  ViewBag.NameSortParm = String.IsNullOrEmpty(sortOrder) ? &lt;span style="color: maroon;"&gt;"ProductName desc"&lt;/span&gt; : &lt;span style="color: maroon;"&gt;""&lt;/span&gt;; &lt;br /&gt;  ViewBag.UnitPriceSortParm = sortOrder == &lt;span style="color: maroon;"&gt;"UnitPrice"&lt;/span&gt; ? &lt;span style="color: maroon;"&gt;"UnitPrice desc"&lt;/span&gt; : &lt;span style="color: maroon;"&gt;"UnitPrice"&lt;/span&gt;; &lt;br /&gt;&lt;br /&gt;  var products = db.Products.Include(p =&amp;gt; p.Categories).Include(p =&amp;gt; p.Suppliers);&lt;br /&gt;&lt;br /&gt;   &lt;span style="color: blue;"&gt;switch&lt;/span&gt; (sortOrder) &lt;br /&gt;   { &lt;br /&gt;   &lt;span style="color: blue;"&gt;case&lt;/span&gt; &lt;span style="color: maroon;"&gt;"ProductName desc"&lt;/span&gt;: &lt;br /&gt;       products = products.OrderByDescending(s =&amp;gt; s.ProductName); &lt;br /&gt;       &lt;span style="color: blue;"&gt;break&lt;/span&gt;; &lt;br /&gt;   &lt;span style="color: blue;"&gt;case&lt;/span&gt; &lt;span style="color: maroon;"&gt;"UnitPrice"&lt;/span&gt;: &lt;br /&gt;       products = products.OrderBy(s =&amp;gt; s.UnitPrice); &lt;br /&gt;       &lt;span style="color: blue;"&gt;break&lt;/span&gt;; &lt;br /&gt;   &lt;span style="color: blue;"&gt;case&lt;/span&gt; &lt;span style="color: maroon;"&gt;"UnitPrice desc"&lt;/span&gt;: &lt;br /&gt;        products = products.OrderByDescending(s =&amp;gt; s.UnitPrice); &lt;br /&gt;        &lt;span style="color: blue;"&gt;break&lt;/span&gt;; &lt;br /&gt;   &lt;span style="color: blue;"&gt;default&lt;/span&gt;: &lt;br /&gt;        products = products.OrderBy(s =&amp;gt; s.ProductName); &lt;br /&gt;        &lt;span style="color: blue;"&gt;break&lt;/span&gt;; &lt;br /&gt;    } &lt;br /&gt;   &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(products.ToList()); &lt;br /&gt;}&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;En la vista cambiaremos los header por links los cuales enviaran el orden necesario:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;table&amp;gt; &lt;br /&gt;    &amp;lt;tr&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt;             &lt;br /&gt; @Html.ActionLink(&lt;span style="color: maroon;"&gt;"Product Name"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Index"&lt;/span&gt;, &lt;span style="color: blue;"&gt;new&lt;/span&gt; { sortOrder = ViewBag.NameSortParm }) &lt;br /&gt;        &amp;lt;/th&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt; &lt;br /&gt;            Suppliers &lt;br /&gt;        &amp;lt;/th&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt; &lt;br /&gt;            Categories &lt;br /&gt;        &amp;lt;/th&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt; &lt;br /&gt;@Html.ActionLink(&lt;span style="color: maroon;"&gt;"UnitPrice"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Index"&lt;/span&gt;, &lt;span style="color: blue;"&gt;new&lt;/span&gt; { sortOrder = ViewBag.UnitPriceSortParm }) &lt;br /&gt;        &amp;lt;/th&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt; &lt;br /&gt;            UnitsInStock &lt;br /&gt;        &amp;lt;/th&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt; &lt;br /&gt;            Discontinued &lt;br /&gt;        &amp;lt;/th&amp;gt; &lt;br /&gt;        &amp;lt;th&amp;gt;&amp;lt;/th&amp;gt; &lt;br /&gt;    &amp;lt;/tr&amp;gt;&lt;/pre&gt;&lt;br /&gt;Resultado:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-GeXK_zFN96g/TqJTng9W8bI/AAAAAAAAAsQ/-tW2m3YQ2oo/s1600/Captura+de+pantalla+2011-10-21+a+la%2528s%2529+23.22.55.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="144" src="http://4.bp.blogspot.com/-GeXK_zFN96g/TqJTng9W8bI/AAAAAAAAAsQ/-tW2m3YQ2oo/s640/Captura+de+pantalla+2011-10-21+a+la%2528s%2529+23.22.55.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Filtros:&lt;/b&gt;&lt;br /&gt;En este ejemplo agregaremos al controlador.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; ViewResult Index(&lt;span style="color: blue;"&gt;string&lt;/span&gt; sortOrder,&amp;nbsp;&lt;span style="color: blue;"&gt;string&lt;/span&gt; searchString)&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;{ &lt;br /&gt;  ViewBag.NameSortParm = String.IsNullOrEmpty(sortOrder) ? &lt;span style="color: maroon;"&gt;"ProductName desc"&lt;/span&gt; : &lt;span style="color: maroon;"&gt;""&lt;/span&gt;; &lt;br /&gt;  ViewBag.UnitPriceSortParm = sortOrder == &lt;span style="color: maroon;"&gt;"UnitPrice"&lt;/span&gt; ? &lt;span style="color: maroon;"&gt;"UnitPrice desc"&lt;/span&gt; : &lt;span style="color: maroon;"&gt;"UnitPrice"&lt;/span&gt;; &lt;br /&gt;  &lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;  ViewBag.SearchString = searchString;&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;  var products = db.Products.Include(p =&amp;gt; p.Categories).Include(p =&amp;gt; p.Suppliers);&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (!String.IsNullOrEmpty(searchString)) &lt;br /&gt;{ &lt;br /&gt;  products = products.Where(s =&amp;gt; s.ProductName.ToUpper().Contains(searchString.ToUpper()));&lt;br /&gt;                                        &lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;   &lt;span style="color: blue;"&gt;switch&lt;/span&gt; (sortOrder) &lt;br /&gt;   { &lt;br /&gt;   &lt;span style="color: blue;"&gt;case&lt;/span&gt; &lt;span style="color: maroon;"&gt;"ProductName desc"&lt;/span&gt;: &lt;br /&gt;       products = products.OrderByDescending(s =&amp;gt; s.ProductName); &lt;br /&gt;       &lt;span style="color: blue;"&gt;break&lt;/span&gt;; &lt;br /&gt;   &lt;span style="color: blue;"&gt;case&lt;/span&gt; &lt;span style="color: maroon;"&gt;"UnitPrice"&lt;/span&gt;: &lt;br /&gt;       products = products.OrderBy(s =&amp;gt; s.UnitPrice); &lt;br /&gt;       &lt;span style="color: blue;"&gt;break&lt;/span&gt;; &lt;br /&gt;   &lt;span style="color: blue;"&gt;case&lt;/span&gt; &lt;span style="color: maroon;"&gt;"UnitPrice desc"&lt;/span&gt;: &lt;br /&gt;        products = products.OrderByDescending(s =&amp;gt; s.UnitPrice); &lt;br /&gt;        &lt;span style="color: blue;"&gt;break&lt;/span&gt;; &lt;br /&gt;   &lt;span style="color: blue;"&gt;default&lt;/span&gt;: &lt;br /&gt;        products = products.OrderBy(s =&amp;gt; s.ProductName); &lt;br /&gt;        &lt;span style="color: blue;"&gt;break&lt;/span&gt;; &lt;br /&gt;    } &lt;br /&gt;   &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(products.ToList()); &lt;br /&gt;}&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;En la vista agregaremos un textbox necesario para buscar los productos:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;p&amp;gt; &lt;br /&gt;    @Html.ActionLink(&lt;span style="color: maroon;"&gt;"Create New"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Create"&lt;/span&gt;) &lt;br /&gt;&lt;br /&gt;    @&lt;span style="color: blue;"&gt;using&lt;/span&gt; (Html.BeginForm()) &lt;br /&gt;    { &lt;br /&gt;        &amp;lt;p&amp;gt; &lt;br /&gt;            Product Name: @Html.TextBox(&lt;span style="color: maroon;"&gt;"SearchString"&lt;/span&gt;) &amp;amp;nbsp; &lt;br /&gt;            &amp;lt;input type=&lt;span style="color: maroon;"&gt;"submit"&lt;/span&gt; value=&lt;span style="color: maroon;"&gt;"Search"&lt;/span&gt; /&amp;gt;&amp;lt;/p&amp;gt; &lt;br /&gt;    } &lt;br /&gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;/pre&gt;&lt;br /&gt;En la vista&amp;nbsp;también debemos de cambiar los action link para conservar el valor del searchString.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt; @Html.ActionLink(&lt;span style="color: maroon;"&gt;"Product Name"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Index"&lt;/span&gt;, &lt;span style="color: blue;"&gt;new&lt;/span&gt; { sortOrder = ViewBag.NameSortParm, &lt;br /&gt;                SearchString = ViewBag.SearchString }) &lt;br /&gt;&lt;br /&gt;@Html.ActionLink(&lt;span style="color: maroon;"&gt;"UnitPrice"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Index"&lt;/span&gt;, &lt;span style="color: blue;"&gt;new&lt;/span&gt; { sortOrder = ViewBag.UnitPriceSortParm,                     SearchString = ViewBag.SearchString })&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Resultado:&lt;/u&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-jdAGcyQMXHM/TqJXFvsiTuI/AAAAAAAAAsc/T98FVyTNyHw/s1600/Captura+de+pantalla+2011-10-21+a+la%2528s%2529+23.38.58.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="202" src="http://1.bp.blogspot.com/-jdAGcyQMXHM/TqJXFvsiTuI/AAAAAAAAAsc/T98FVyTNyHw/s640/Captura+de+pantalla+2011-10-21+a+la%2528s%2529+23.38.58.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;&lt;u&gt;Pagineo:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Antes que nada tenemos que instalar : &lt;b&gt;PagedList NuGet Package&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Menu Tools&lt;/li&gt;&lt;li&gt;Library Package Manager&lt;/li&gt;&lt;li&gt;Add Library Package Reference&lt;/li&gt;&lt;li&gt;Clic en online en la parte izquierda&lt;/li&gt;&lt;li&gt;Luego en buscar escriba PagedList&lt;/li&gt;&lt;li&gt;Por ultimo instale el paquete.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Se agrega la libreria el siguiente using:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; PagedList;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Código del controlador:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; ViewResult Index(&lt;span style="color: blue;"&gt;string&lt;/span&gt; sortOrder, &lt;span style="color: blue;"&gt;string&lt;/span&gt; currentFilter,&lt;br /&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; searchString, &lt;span style="color: blue;"&gt;int?&lt;/span&gt; page) &lt;br /&gt;{ &lt;br /&gt;    ViewBag.CurrentSort = sortOrder; &lt;br /&gt;    ViewBag.NameSortParm = String.IsNullOrEmpty(sortOrder) ? &lt;span style="color: maroon;"&gt;"ProductName desc"&lt;/span&gt; : &lt;span style="color: maroon;"&gt;""&lt;/span&gt;; &lt;br /&gt;    ViewBag.UnitPriceSortParm = sortOrder == &lt;span style="color: maroon;"&gt;"UnitPrice"&lt;/span&gt; ? &lt;span style="color: maroon;"&gt;"UnitPrice desc"&lt;/span&gt; : &lt;span style="color: maroon;"&gt;"UnitPrice"&lt;/span&gt;;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;    ViewBag.SearchString = searchString;&lt;br /&gt;&lt;br /&gt;    &lt;span style="color: blue;"&gt;if&lt;/span&gt; (Request.HttpMethod == &lt;span style="color: maroon;"&gt;"GET"&lt;/span&gt;) &lt;br /&gt;    { &lt;br /&gt;        searchString = currentFilter; &lt;br /&gt;    } &lt;br /&gt;    &lt;span style="color: blue;"&gt;else&lt;/span&gt; &lt;br /&gt;    { &lt;br /&gt;        page = &lt;span style="color: maroon;"&gt;1&lt;/span&gt;; &lt;br /&gt;    } &lt;br /&gt;    ViewBag.CurrentFilter = searchString; &lt;br /&gt;&lt;br /&gt;    var products = db.Products.Include(p =&amp;gt; p.Categories).Include(p =&amp;gt; p.Suppliers); &lt;br /&gt;&lt;br /&gt;    &lt;span style="color: blue;"&gt;if&lt;/span&gt; (!String.IsNullOrEmpty(searchString)) &lt;br /&gt;    { &lt;br /&gt; products = products.Where(s =&amp;gt; s.ProductName.ToUpper().Contains(searchString.ToUpper()));&lt;br /&gt;                                        &lt;br /&gt;    } &lt;br /&gt;&lt;br /&gt;    &lt;span style="color: blue;"&gt;switch&lt;/span&gt; (sortOrder) &lt;br /&gt;    { &lt;br /&gt;        &lt;span style="color: blue;"&gt;case&lt;/span&gt; &lt;span style="color: maroon;"&gt;"ProductName desc"&lt;/span&gt;: &lt;br /&gt;            products = products.OrderByDescending(s =&amp;gt; s.ProductName); &lt;br /&gt;            &lt;span style="color: blue;"&gt;break&lt;/span&gt;; &lt;br /&gt;        &lt;span style="color: blue;"&gt;case&lt;/span&gt; &lt;span style="color: maroon;"&gt;"UnitPrice"&lt;/span&gt;:&lt;br /&gt;            products = products.OrderBy(s =&amp;gt; s.UnitPrice); &lt;br /&gt;            &lt;span style="color: blue;"&gt;break&lt;/span&gt;; &lt;br /&gt;        &lt;span style="color: blue;"&gt;case&lt;/span&gt; &lt;span style="color: maroon;"&gt;"UnitPrice desc"&lt;/span&gt;: &lt;br /&gt;            products = products.OrderByDescending(s =&amp;gt; s.UnitPrice); &lt;br /&gt;            &lt;span style="color: blue;"&gt;break&lt;/span&gt;; &lt;br /&gt;        &lt;span style="color: blue;"&gt;default&lt;/span&gt;: &lt;br /&gt;            products = products.OrderBy(s =&amp;gt; s.ProductName); &lt;br /&gt;            &lt;span style="color: blue;"&gt;break&lt;/span&gt;; &lt;br /&gt;    } &lt;br /&gt;&lt;br /&gt;    &lt;span style="color: blue;"&gt;int&lt;/span&gt; pageSize = &lt;span style="color: maroon;"&gt;10&lt;/span&gt;; &lt;br /&gt;    &lt;span style="color: blue;"&gt;int&lt;/span&gt; pageIndex = (page ?? &lt;span style="color: maroon;"&gt;1&lt;/span&gt;);&lt;br /&gt;    &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(products.ToPagedList(pageIndex, pageSize)); &lt;br /&gt;}&lt;/pre&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;Código de la vista:&lt;/u&gt;&lt;br /&gt;Debemos de cambiar el model:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="color: yellow;"&gt;&lt;b style="background-color: #999999;"&gt;@model&lt;/b&gt;&lt;/span&gt; PagedList.IPagedList&amp;lt;Northwind.Models.Products&amp;gt;&lt;/pre&gt;&lt;br /&gt;Agregar el siguiente código al final de la tabla:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre&gt;&amp;lt;div&amp;gt; &lt;br /&gt;    Page @(Model.PageCount &amp;lt; Model.PageNumber ? &lt;span style=' color: Maroon;'&gt;0&lt;/span&gt; : Model.PageNumber)&lt;br /&gt;    of @Model.PageCount &lt;br /&gt;    &amp;amp;nbsp; &lt;br /&gt;    @&lt;span style=' color: Blue;'&gt;if&lt;/span&gt; (Model.HasPreviousPage) &lt;br /&gt;    { &lt;br /&gt;        @Html.ActionLink(&lt;span style=' color: Maroon;'&gt;"&amp;lt;&amp;lt;"&lt;/span&gt;, &lt;span style=' color: Maroon;'&gt;"Index"&lt;/span&gt;, &lt;span style=' color: Blue;'&gt;new&lt;/span&gt; { page = &lt;span style=' color: Maroon;'&gt;1&lt;/span&gt;, &lt;br /&gt;sortOrder = ViewBag.CurrentSort,&lt;br /&gt;currentFilter = ViewBag.CurrentFilter, &lt;br /&gt;SearchString = ViewBag.SearchString })&lt;br /&gt;&lt;br /&gt;        @Html.Raw(&lt;span style=' color: Maroon;'&gt;"&amp;amp;nbsp;"&lt;/span&gt;); &lt;br /&gt;        @Html.ActionLink(&lt;span style=' color: Maroon;'&gt;"&amp;lt; Prev"&lt;/span&gt;, &lt;span style=' color: Maroon;'&gt;"Index"&lt;/span&gt;, &lt;span style=' color: Blue;'&gt;new&lt;/span&gt; { page = Model.PageNumber - &lt;span style=' color: Maroon;'&gt;1&lt;/span&gt;,&lt;br /&gt;sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter, &lt;br /&gt;SearchString = ViewBag.SearchString })&lt;br /&gt;    } &lt;br /&gt;    &lt;span style=' color: Blue;'&gt;else&lt;/span&gt; &lt;br /&gt;    { &lt;br /&gt;        @:&amp;lt;&amp;lt; &lt;br /&gt;        @Html.Raw(&lt;span style=' color: Maroon;'&gt;"&amp;amp;nbsp;"&lt;/span&gt;); &lt;br /&gt;        @:&amp;lt; Prev &lt;br /&gt;    } &lt;br /&gt;    &amp;amp;nbsp; &lt;br /&gt;    @&lt;span style=' color: Blue;'&gt;if&lt;/span&gt; (Model.HasNextPage) &lt;br /&gt;    { &lt;br /&gt;        @Html.ActionLink(&lt;span style=' color: Maroon;'&gt;"Next &amp;gt;"&lt;/span&gt;, &lt;span style=' color: Maroon;'&gt;"Index"&lt;/span&gt;, &lt;span style=' color: Blue;'&gt;new&lt;/span&gt; {      page = Model.PageNumber + &lt;span style=' color: Maroon;'&gt;1&lt;/span&gt;,&lt;br /&gt;sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter, &lt;br /&gt;SearchString = ViewBag.SearchString })&lt;br /&gt;&lt;br /&gt;        @Html.Raw(&lt;span style=' color: Maroon;'&gt;"&amp;amp;nbsp;"&lt;/span&gt;); &lt;br /&gt;        @Html.ActionLink(&lt;span style=' color: Maroon;'&gt;"&amp;gt;&amp;gt;"&lt;/span&gt;, &lt;span style=' color: Maroon;'&gt;"Index"&lt;/span&gt;, &lt;span style=' color: Blue;'&gt;new&lt;/span&gt; { page = Model.PageCount,&lt;br /&gt;sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter, &lt;br /&gt;SearchString = ViewBag.SearchString })&lt;br /&gt;    } &lt;br /&gt;    &lt;span style=' color: Blue;'&gt;else&lt;/span&gt; &lt;br /&gt;    { &lt;br /&gt;        @:Next &amp;gt; &lt;br /&gt;        @Html.Raw(&lt;span style=' color: Maroon;'&gt;"&amp;amp;nbsp;"&lt;/span&gt;) &lt;br /&gt;        @:&amp;gt;&amp;gt; &lt;br /&gt;    } &lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/pre&gt;&lt;div&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;br /&gt;&lt;u&gt;Resultado:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-qzVX83NsZWY/TqJhK7X729I/AAAAAAAAAso/q27U_mwnUzc/s1600/Captura+de+pantalla+2011-10-22+a+la%2528s%2529+00.17.25.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-qzVX83NsZWY/TqJhK7X729I/AAAAAAAAAso/q27U_mwnUzc/s1600/Captura+de+pantalla+2011-10-22+a+la%2528s%2529+00.17.25.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-5180895541554114921?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/5180895541554114921/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=5180895541554114921' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/5180895541554114921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/5180895541554114921'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/10/ordernar-filtrar-y-pagineo-mvc.html' title='Ordernar, filtrar y pagineo  (MVC)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-GeXK_zFN96g/TqJTng9W8bI/AAAAAAAAAsQ/-tW2m3YQ2oo/s72-c/Captura+de+pantalla+2011-10-21+a+la%2528s%2529+23.22.55.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-6128421885893702786</id><published>2011-10-15T03:00:00.000-06:00</published><updated>2011-10-17T22:53:46.151-06:00</updated><title type='text'>Introduction MVC (Modelos)</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;El tema de hoy son los Modelos. Los objetos de modelo son las partes de la aplicación que implementan la lógica del dominio de datos de la aplicación. A menudo, los objetos de modelo recuperan y almacenan el estado del modelo en una base de datos. Por ejemplo, un objeto Product podría recuperar información de una base de datos, trabajar con ella y, a continuación, escribir la información actualizada en una tabla Productos de una base de datos de SQL Server&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Hpo7SRqbrZE/Tmr4nEhSh_I/AAAAAAAAAkM/MUp8zsUYGCg/s1600/What-Is-MVC.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="191" src="http://2.bp.blogspot.com/-Hpo7SRqbrZE/Tmr4nEhSh_I/AAAAAAAAAkM/MUp8zsUYGCg/s200/What-Is-MVC.png" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;En el siguiente ejemplo nos conectaremos a la base datos &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;a href="http://www.microsoft.com/download/en/details.aspx?id=23654"&gt;Northwind&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt; la cual es requerida:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;b&gt;1.) Crear un nuevo proyecto - File - New proyect - ASP.Net MVC 3 Web Applicacion&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;Name: Northwind&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-nTgEni-r8ZE/Tpk8xM8KTNI/AAAAAAAAAn0/xm6V0tdUTCI/s1600/Captura+de+pantalla+2011-10-15+a+la%2528s%2529+01.55.08.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-nTgEni-r8ZE/Tpk8xM8KTNI/AAAAAAAAAn0/xm6V0tdUTCI/s640/Captura+de+pantalla+2011-10-15+a+la%2528s%2529+01.55.08.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-eEUMichHsUA/Tmr9dmTg2aI/AAAAAAAAAkU/d7WMfuopj4c/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.00.39.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;b&gt;2.)Elegir el tipo de proyecto MVC - Internet Applicacion- View engine- Razor&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="366" src="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s400/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;b&gt;3.) Crear los Modelos&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;3.1) Categorias&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;En la carpeta de&amp;nbsp;&lt;i&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Models&lt;/span&gt;&lt;/i&gt;&amp;nbsp;cree un nuevo archivo ( clic derecho nueva clase) en esta clase solo definiremos los campos que nos interesan, los otros los ignoraremos, note que hemos definido la llave primaria necesaria para los contextos.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt; System; &lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Collections.Generic; &lt;br /&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.ComponentModel.DataAnnotations;  &lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;namespace&lt;/span&gt; Northwind.Models &lt;br /&gt;{ &lt;br /&gt;    &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; Categories&lt;br /&gt;    { &lt;br /&gt;        [Key] &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;int&lt;/span&gt; CategoryID { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; CategoryName { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;virtual&lt;/span&gt; ICollection&amp;lt;Products&amp;gt; Products { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;         &lt;br /&gt;    } &lt;br /&gt;} &lt;br /&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;3.2) Productos&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;En la carpeta de&amp;nbsp;&lt;i&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Models&lt;/span&gt;&lt;/i&gt;&amp;nbsp;cree un nuevo archivo ( clic derecho nueva clase) en esta clase No solo hemos definido los campos, si no que también, tenemos otras definiciones:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Display : &amp;nbsp;Etiqueta que acompañara al campo.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Required: Campo de llenado obligatorio, se pude definir mensaje.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Maxlength: Maximo de caracteres.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;DisplayFormat: Formato de mostrar útil para campos de numéricos o fecha.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System; &lt;br /&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Collections.Generic; &lt;br /&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.ComponentModel.DataAnnotations;  &lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;namespace&lt;/span&gt; Northwind.Models &lt;br /&gt;{ &lt;br /&gt;    &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; Products &lt;br /&gt;    { &lt;br /&gt;        [Key] &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;int&lt;/span&gt; ProductID { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;&lt;br /&gt;        [Display(Name = &lt;span style="color: maroon;"&gt;"Nombre"&lt;/span&gt;)] &lt;br /&gt;        [Required(ErrorMessage = &lt;span style="color: maroon;"&gt;"Nombre de Producto Requerido"&lt;/span&gt;)] &lt;br /&gt;        [MaxLength(&lt;span style="color: maroon;"&gt;50&lt;/span&gt;)] &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; ProductName { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;&lt;br /&gt;        [Display(Name = &lt;span style="color: maroon;"&gt;"Proveedor"&lt;/span&gt;)] &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;int&lt;/span&gt; SupplierID { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;         &lt;br /&gt;        [Display(Name = &lt;span style="color: maroon;"&gt;"Categoria"&lt;/span&gt;)] &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;int&lt;/span&gt; CategoryID { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;&lt;br /&gt;        [Display(Name = &lt;span style="color: maroon;"&gt;"Precio"&lt;/span&gt;)] &lt;br /&gt;        [DisplayFormat(DataFormatString = &lt;span style="color: maroon;"&gt;"{0:c}"&lt;/span&gt;)] &lt;br /&gt;        [Column(TypeName = &lt;span style="color: maroon;"&gt;"money"&lt;/span&gt;)]  &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;decimal&lt;/span&gt; UnitPrice { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;&lt;br /&gt;         [Display(Name = &lt;span style="color: maroon;"&gt;"Disponibles"&lt;/span&gt;)] &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; Int16 UnitsInStock { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;&lt;br /&gt;         [Display(Name = &lt;span style="color: maroon;"&gt;"Descontinuado"&lt;/span&gt;)] &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;bool&lt;/span&gt; Discontinued { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;&lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;virtual&lt;/span&gt; Categories Categories { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;    } &lt;br /&gt;} &lt;br /&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;3.3) Contexto&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;En la carpeta de&amp;nbsp;&lt;i&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;Models&lt;/span&gt;&lt;/i&gt;&amp;nbsp;cree un nuevo archivo ( clic derecho nueva clase) en esta clase se creara el contexto que se encargara de vincular nuestros modelos con nuestras tablas.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System; &lt;br /&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Collections.Generic; &lt;br /&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Linq; &lt;br /&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Web; &lt;br /&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Web.Mvc; &lt;br /&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; Northwind.Models;  &lt;br /&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Data.Entity.ModelConfiguration.Conventions; &lt;br /&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Data.Entity;  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;namespace&lt;/span&gt; Northwind.Models &lt;br /&gt;{ &lt;br /&gt;    &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; NorthwindContex : DbContext&lt;br /&gt;    { &lt;br /&gt;       &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; DbSet&amp;lt;Categories&amp;gt; Categories { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; DbSet&amp;lt;Products&amp;gt; Products { &lt;span style="color: blue;"&gt;get&lt;/span&gt;; &lt;span style="color: blue;"&gt;set&lt;/span&gt;; }&lt;br /&gt;&lt;br /&gt;    } &lt;br /&gt;}&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;3.4) Configurar conexión a base de datos&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;Abra el web config y agregue la siguiente linea, la cual nos proporcionara la conexión con la base de datos (El connectionStrings esta puesto solo como referencia lo mas seguro es que ya este en su web config):&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;connectionStrings&amp;gt; &lt;br /&gt;    &amp;lt;add name=&lt;span style="color: maroon;"&gt;"NorthwindContex"&lt;/span&gt; &lt;br /&gt;   connectionString="data source=localhost;&lt;br /&gt;   initial catalog=northwind;persist security info=True; &lt;br /&gt;   user id=sa;password=P@ssw0rd" &lt;br /&gt;   providerName=&lt;span style="color: maroon;"&gt;"System.Data.SqlClient"&lt;/span&gt; /&amp;gt; &lt;br /&gt;  &amp;lt;/connectionStrings&amp;gt; &lt;br /&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;4.) Ahora crearemos el controlador:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Clic derecho sobre la carpeta controller&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s1600/controller.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s1600/controller.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Luego aparecerá una ventana la cual la tenemos que llenar con lo siguiente:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font: normal normal normal 12px/normal Helvetica; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;&lt;b&gt;Controller name:&lt;/b&gt; ProducsController.&lt;/span&gt;&lt;/div&gt;&lt;div style="font: normal normal normal 12px/normal Helvetica; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;&lt;b&gt;Template:&lt;/b&gt; Controller with read/write actions and views, using Entity Framework.&lt;/span&gt;&lt;/div&gt;&lt;div style="font: normal normal normal 12px/normal Helvetica; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;&lt;b&gt;Model class:&lt;/b&gt; Student (Northwind.Models). (Si no esta compile el proyecto)&lt;/span&gt;&lt;/div&gt;&lt;div style="font: normal normal normal 12px/normal Helvetica; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;&lt;b&gt;Data context class:&lt;/b&gt;&amp;nbsp;NorthwindContext (Northwind.Models).&lt;/span&gt;&lt;/div&gt;&lt;div style="font: normal normal normal 12px/normal Helvetica; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;&amp;nbsp; &amp;nbsp; Views: Razor (CSHTML).&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-N85UoIgm2IY/TplE7cLpzOI/AAAAAAAAAoA/KIY00p_66y0/s1600/Captura+de+pantalla+2011-10-15+a+la%2528s%2529+02.31.13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-N85UoIgm2IY/TplE7cLpzOI/AAAAAAAAAoA/KIY00p_66y0/s1600/Captura+de+pantalla+2011-10-15+a+la%2528s%2529+02.31.13.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;5.) Modificando el Menu.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Para esto cambiaremos la vista Layout la cual se encuentra bajo la carpeta view y luego share, Agregaremos la llamada a nuestras vistas generadas:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;@Html.ActionLink("Products", "Index", "Products")&lt;span class="Apple-style-span" style="color: #cc0000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;6.) Finalmente como debe quedar nuestro ejemplo, al presionar nuevo, podremos ver mucha funcionalidad como validaciones nombre de los campos, etc.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-NvMH0I_lE9c/TplG2DftJxI/AAAAAAAAAoM/ZMHGoIP2r8A/s1600/Captura+de+pantalla+2011-10-15+a+la%2528s%2529+02.38.26.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-NvMH0I_lE9c/TplG2DftJxI/AAAAAAAAAoM/ZMHGoIP2r8A/s320/Captura+de+pantalla+2011-10-15+a+la%2528s%2529+02.38.26.png" width="229" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-6128421885893702786?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/6128421885893702786/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=6128421885893702786' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/6128421885893702786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/6128421885893702786'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/10/introduction-mvc-controladores.html' title='Introduction MVC (Modelos)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-Hpo7SRqbrZE/Tmr4nEhSh_I/AAAAAAAAAkM/MUp8zsUYGCg/s72-c/What-Is-MVC.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-6289747816851650383</id><published>2011-10-09T00:40:00.002-06:00</published><updated>2011-10-09T00:40:31.012-06:00</updated><title type='text'>Seguridad en MVC (Membership)</title><content type='html'>Este Utilizaremos&amp;nbsp;membership para la seguridad de nuestro sitio.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1.) Cree un proyecto MVC &amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;1.1)File- New project&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-eEUMichHsUA/Tmr9dmTg2aI/AAAAAAAAAkU/d7WMfuopj4c/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.00.39.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="395" src="http://3.bp.blogspot.com/-eEUMichHsUA/Tmr9dmTg2aI/AAAAAAAAAkU/d7WMfuopj4c/s640/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.00.39.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;1.2) Seleccione Internet Aplicación -Razor - Html5&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2.) Ejecutamos el asistente&amp;nbsp;membership.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Navegue en la siguiente ruta:&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;C:\Windows\Microsoft.NET\Framework\v4.0.30319&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Ejecute&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;b&gt;&amp;nbsp;aspnet_regsql.exe&lt;/b&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;El siguiente wizard se mostrara&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;1.) Elija configure sql server for application service, seleccione la base datos que utilizara, finalice el wizard.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-U_1Qw3oTc0s/TfLxvcRBmaI/AAAAAAAAAWY/cNvkGBYAuZk/s1600/w2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-U_1Qw3oTc0s/TfLxvcRBmaI/AAAAAAAAAWY/cNvkGBYAuZk/s1600/w2.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;3.) Configuramos el web config de nuestro sitio para que utilice membership.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;3.1) Abra el web config y configure &amp;nbsp;el ApplicationServices con la información de su servidor de sql server en el connectionStrings.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;  &amp;lt;connectionStrings&amp;gt; &lt;br /&gt;    &amp;lt;add name=&lt;span style="color: maroon;"&gt;"ApplicationServices"&lt;/span&gt;&lt;br /&gt;    connectionString=&lt;span style="color: maroon;"&gt;"data source=xp;user id=sa;password=123;initial catalog=northwind"&lt;/span&gt;         providerName=&lt;span style="color: maroon;"&gt;"System.Data.SqlClient"&lt;/span&gt; /&amp;gt; &lt;br /&gt;  &amp;lt;/connectionStrings&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;4.) Configurar la seguridad con &amp;nbsp;Web Site Administration Tool&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;4.1) En el Soluction explorer &amp;nbsp;presioné clic en el web site administrattion tool&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-kCCA6hbsLKk/TpEzlme2sQI/AAAAAAAAAnM/HJxGJanA27I/s1600/webmanager.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-kCCA6hbsLKk/TpEzlme2sQI/AAAAAAAAAnM/HJxGJanA27I/s1600/webmanager.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;4.1) Ingrese en el menu Security.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-vmWnQt9OOkU/TpE11jA4FjI/AAAAAAAAAnU/AxhGt3d7C6w/s1600/Captura+de+pantalla+2011-10-08+a+la%2528s%2529+23.46.26.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-vmWnQt9OOkU/TpE11jA4FjI/AAAAAAAAAnU/AxhGt3d7C6w/s1600/Captura+de+pantalla+2011-10-08+a+la%2528s%2529+23.46.26.png" /&gt;&lt;/a&gt;&lt;/div&gt;4.2) Ventana de Security, desde esta pantalla crearemos los Usuarios y roles.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-GD02SuF0M5I/TpE2U21FrtI/AAAAAAAAAnY/LRL_C88vUlI/s1600/Captura+de+pantalla+2011-10-08+a+la%2528s%2529+23.49.41.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-GD02SuF0M5I/TpE2U21FrtI/AAAAAAAAAnY/LRL_C88vUlI/s1600/Captura+de+pantalla+2011-10-08+a+la%2528s%2529+23.49.41.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;4.3) Crearemos 2 Usuarios, User1 y User2, para realizar las pruebas.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-N2kzC4yVIMU/TpE2f98SeXI/AAAAAAAAAnc/2Ri5cq5QEUQ/s1600/Captura+de+pantalla+2011-10-08+a+la%2528s%2529+23.47.18.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-N2kzC4yVIMU/TpE2f98SeXI/AAAAAAAAAnc/2Ri5cq5QEUQ/s1600/Captura+de+pantalla+2011-10-08+a+la%2528s%2529+23.47.18.png" /&gt;&lt;/a&gt;&lt;/div&gt;4.4) Habilitaremos los roles, presionando clic en el boton habilitar role.&lt;br /&gt;&lt;br /&gt;4.5) Crearemos un role de administrador&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-MoVmV4Tynuc/TpE3cZyxCFI/AAAAAAAAAnk/-3NC40Yb8Ks/s1600/Captura+de+pantalla+2011-10-08+a+la%2528s%2529+23.55.38.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="89" src="http://3.bp.blogspot.com/-MoVmV4Tynuc/TpE3cZyxCFI/AAAAAAAAAnk/-3NC40Yb8Ks/s320/Captura+de+pantalla+2011-10-08+a+la%2528s%2529+23.55.38.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;4.6) Agregaremos al user1 al role de administrador, en la ventana de security clic en manage Users y agregar a administrador a user1.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-ehS1FELI0xs/TpE4ZTQaYkI/AAAAAAAAAns/KY4GEtGQ060/s1600/Captura+de+pantalla+2011-10-08+a+la%2528s%2529+23.58.17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-ehS1FELI0xs/TpE4ZTQaYkI/AAAAAAAAAns/KY4GEtGQ060/s1600/Captura+de+pantalla+2011-10-08+a+la%2528s%2529+23.58.17.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;5.) Aplicar la seguridad en el sitio. para realizar pruebas, aplicaremos la seguridad al controlador Home.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;5.1) Aplicando seguridad al Accion About.&lt;br /&gt;&lt;br /&gt;5.1.1) Abra el Controlador: HomeController&lt;br /&gt;&lt;br /&gt;Para agregar seguridad tenemos 3 opciones:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;  [Authorize] &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; ActionResult About() &lt;br /&gt;        { &lt;br /&gt;            &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(); &lt;br /&gt;        } &lt;br /&gt;&lt;br /&gt;[Authorize(Roles = &lt;span style="color: maroon;"&gt;"administrador"&lt;/span&gt;)] &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; ActionResult About() &lt;br /&gt;        { &lt;br /&gt;            &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(); &lt;br /&gt;        } &lt;br /&gt;&lt;br /&gt;[Authorize(Users=&lt;span style="color: maroon;"&gt;"user1"&lt;/span&gt;)] &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; ActionResult About() &lt;br /&gt;        { &lt;br /&gt;            &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(); &lt;br /&gt;        }&lt;/pre&gt;&lt;br /&gt;Authorize: Permitira entrar solo Usuarios ya autenticados.&lt;br /&gt;Authorize Roles: Solo los roles que ingrese ejemplo: Administrador&lt;br /&gt;Authorize Users: Solo los usuarios que ingrese ejemplo: User1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;6.) Ahora realizar nuestro test, Probado con cada una de las opciones de seguridad.&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-6289747816851650383?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/6289747816851650383/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=6289747816851650383' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/6289747816851650383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/6289747816851650383'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/10/seguridad-en-mvc-membership.html' title='Seguridad en MVC (Membership)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-eEUMichHsUA/Tmr9dmTg2aI/AAAAAAAAAkU/d7WMfuopj4c/s72-c/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.00.39.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-247016139579016911</id><published>2011-10-06T19:19:00.002-06:00</published><updated>2011-11-20T23:38:20.097-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Chistes steve jobs'/><category scheme='http://www.blogger.com/atom/ns#' term='Steve Jobs'/><title type='text'>Steve jobs Icloud</title><content type='html'>&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-K-shLtX4SZQ/TpCaxtnIxAI/AAAAAAAAAnA/TWd3EaAVxSg/s1600/la+foto.JPG" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-K-shLtX4SZQ/TpCaxtnIxAI/AAAAAAAAAnA/TWd3EaAVxSg/s1600/la+foto.JPG" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;@Dios: @Jobs Se le solicita en mi #oficina.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Tge0kCMq5cc/To5Tl7cr8PI/AAAAAAAAAmw/z-eqJiPteKU/s1600/steve+jobs.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="http://3.bp.blogspot.com/-Tge0kCMq5cc/To5Tl7cr8PI/AAAAAAAAAmw/z-eqJiPteKU/s640/steve+jobs.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-bIcGwwVoWlg/TpCZ35h2l8I/AAAAAAAAAm4/8gTvV6LE4OY/s1600/296014_2528400252512_1328615217_32959684_163647920_n.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="544" src="http://3.bp.blogspot.com/-bIcGwwVoWlg/TpCZ35h2l8I/AAAAAAAAAm4/8gTvV6LE4OY/s640/296014_2528400252512_1328615217_32959684_163647920_n.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Yo tengo una app para eso!&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-8-e0KHY7xPk/TsniTJ5ZPyI/AAAAAAAABKM/816iQYbumCo/s1600/image-1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-8-e0KHY7xPk/TsniTJ5ZPyI/AAAAAAAABKM/816iQYbumCo/s1600/image-1.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-yRNBpq92YrQ/TsniT470mxI/AAAAAAAABKU/5zTNcAuau1Y/s1600/image-2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-yRNBpq92YrQ/TsniT470mxI/AAAAAAAABKU/5zTNcAuau1Y/s1600/image-2.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-keLXqCXGnB0/TsniVdomxZI/AAAAAAAABKc/pqNir7KHx4I/s1600/image-3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-keLXqCXGnB0/TsniVdomxZI/AAAAAAAABKc/pqNir7KHx4I/s1600/image-3.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-ljltmwmZaWk/TsniV74uLiI/AAAAAAAABKk/hxliW8SyF5k/s1600/image-4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="492" src="http://1.bp.blogspot.com/-ljltmwmZaWk/TsniV74uLiI/AAAAAAAABKk/hxliW8SyF5k/s640/image-4.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-0MMFvsLQoOk/TsniWr8Ko6I/AAAAAAAABKs/8Y_-KL27ysk/s1600/image-5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="580" src="http://4.bp.blogspot.com/-0MMFvsLQoOk/TsniWr8Ko6I/AAAAAAAABKs/8Y_-KL27ysk/s640/image-5.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-trdLVmPi0cs/TsniX07N7sI/AAAAAAAABK0/Koccz2S-xbU/s1600/image-6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="540" src="http://4.bp.blogspot.com/-trdLVmPi0cs/TsniX07N7sI/AAAAAAAABK0/Koccz2S-xbU/s640/image-6.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-cr11Fw1QevE/TsnibaEPhRI/AAAAAAAABK8/0yAZ8iYEVkg/s1600/image.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="502" src="http://2.bp.blogspot.com/-cr11Fw1QevE/TsnibaEPhRI/AAAAAAAABK8/0yAZ8iYEVkg/s640/image.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-arLuBdycPh8/Tsni3Bdpz-I/AAAAAAAABLE/wY8TeW6PWwk/s1600/image-7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="452" src="http://1.bp.blogspot.com/-arLuBdycPh8/Tsni3Bdpz-I/AAAAAAAABLE/wY8TeW6PWwk/s640/image-7.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-4XxLtx2KAVQ/TsnjuDXiBvI/AAAAAAAABLQ/cxh92dlgo7c/s1600/Steve-Jobs-Reincarnation_dbf1aeaf18397a0f382185a38ca999cc-1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-4XxLtx2KAVQ/TsnjuDXiBvI/AAAAAAAABLQ/cxh92dlgo7c/s1600/Steve-Jobs-Reincarnation_dbf1aeaf18397a0f382185a38ca999cc-1.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-247016139579016911?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/247016139579016911/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=247016139579016911' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/247016139579016911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/247016139579016911'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/10/steve-jobs-icloud.html' title='Steve jobs Icloud'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-K-shLtX4SZQ/TpCaxtnIxAI/AAAAAAAAAnA/TWd3EaAVxSg/s72-c/la+foto.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-3388177538821501969</id><published>2011-10-06T11:51:00.000-06:00</published><updated>2011-10-05T22:10:57.155-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interesante'/><title type='text'>Discurso de Steve Jobs en la Universidad de Stanford</title><content type='html'>&lt;object height="385" width="480"&gt;&lt;param name="movie" value="http://www.youtube.com/v/qhitaYIOV-Q?fs=1&amp;amp;hl=en_US"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/qhitaYIOV-Q?fs=1&amp;amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;Tengo el honor de estar hoy aquí con vosotros en vuestro comienzo en una de las mejores universidades del mundo. La verdad sea dicha, yo nunca me gradué. &lt;br /&gt;&lt;br /&gt;A decir verdad, esto es lo más cerca que jamás he estado de una graduación universitaria. &lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;strong&gt;Hoy les quiero contar tres historias de mi vida. Nada especial. Sólo tres historias.&lt;/strong&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: red;"&gt;&lt;strong&gt;La primera historia versa sobre "conectar los puntos".&lt;/strong&gt;&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;Dejé la Universidad de Reed tras los seis primeros meses, pero después seguí vagando por allí otros 18 meses, más o menos, antes de dejarlo del todo. Entonces, ¿por qué lo dejé? &lt;br /&gt;&lt;br /&gt;Comenzó antes de que yo naciera. &lt;br /&gt;&lt;br /&gt;Mi madre biológica era una estudiante joven y soltera, y decidió darme en adopción. Ella tenía muy claro que quienes me adoptaran tendrían que ser titulados universitarios, de modo que todo se preparó para que fuese adoptado al nacer por un abogado y su mujer. &lt;br /&gt;&lt;br /&gt;Solo que cuando yo nací decidieron en el último momento que lo que de verdad querían era una niña. &lt;br /&gt;&lt;br /&gt;Así que mis padres, que estaban en lista de espera, recibieron una llamada a medianoche preguntando: &lt;br /&gt;&lt;br /&gt;“Tenemos un niño no esperado; ¿lo queréis?” &lt;br /&gt;&lt;br /&gt;“Por supuesto”, dijeron ellos. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Mi madre biológica se enteró de que mi madre no tenía titulación universitaria, y que mi padre ni siquiera había terminado el bachillerato, así que se negó a firmar los documentos de adopción. Sólo cedió, meses más tarde, cuando mis padres prometieron que algún día yo iría a la universidad. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Y 17 años más tarde fui a la universidad. Pero de forma descuidada elegí una universidad que era casi tan cara como Stanford, y todos los ahorros de mis padres, de clase trabajadora, los estaba gastando en mi matrícula. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Después de seis meses, no le veía propósito alguno. No tenía idea de qué quería hacer con mi vida, y menos aún de cómo la universidad me iba a ayudar a averiguarlo. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Y me estaba gastando todos los ahorros que mis padres habían conseguido a lo largo de su vida. Así que decidí dejarlo, y confiar en que las cosas saldrían bien. &lt;br /&gt;&lt;br /&gt;En su momento me dio miedo, pero en retrospectiva fue una de las mejores decisiones que nunca haya tomado. &lt;br /&gt;&lt;br /&gt;En el momento en que lo dejé, ya no fui más a las clases obligatorias que no me interesaban y comencé a meterme en las que parecían interesantes. No era idílico. No tenía dormitorio, así que dormía en el suelo de las habitaciones de mis amigos, devolvía botellas de Coca Cola por los 5 céntimos del envase para conseguir dinero para comer, y caminaba más de 10 Km los domingos por la noche para comer bien una vez por semana en el templo de los Hare Krishna. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Me encantaba. &lt;br /&gt;&lt;br /&gt;Y muchas cosas con las que me fui topando al seguir mi curiosidad e intuición resultaron no tener precio más adelante. &lt;br /&gt;&lt;br /&gt;Os daré un ejemplo. &lt;br /&gt;&lt;br /&gt;En aquella época la Universidad de Reed ofrecía la que quizá fuese la mejor formación en caligrafía del país. En todas partes del campus, todos los póster, todas las etiquetas de todos los cajones, estaban bellamente caligrafiadas a mano. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Como ya no estaba matriculado y no tenía clases obligatorias, decidí atender al curso de caligrafía para aprender cómo se hacía. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Aprendí cosas sobre el serif y tipografías sans serif, sobre los espacios variables entre letras, sobre qué hace realmente grande a una gran tipografía. &lt;br /&gt;&lt;br /&gt;Era sutilmente bello, histórica y artísticamente, de una forma que la ciencia no puede capturar, y lo encontré fascinante. Nada de esto tenía ni la más mínima esperanza de aplicación práctica en mi vida. Pero diez años más tarde, cuando estábamos diseñando el primer ordenador Macintosh, todo eso volvió a mí. &lt;br /&gt;&lt;br /&gt;Y diseñamos el Mac con eso en su esencia. Fue el primer ordenador con tipografías bellas. Si nunca me hubiera dejado caer por aquél curso concreto en la universidad, el Mac jamás habría tenido múltiples tipografías, ni caracteres con espaciado proporcional. &lt;span style="color: #cc0000;"&gt;Y como Windows no hizo más que copiar el Mac, es probable que ningún ordenador personal los tuviera ahora&lt;/span&gt;. Si nunca hubiera decidido dejarlo, no habría entrado en esa clase de caligrafía y los ordenadores personales no tendrían la maravillosa tipografía que poseen. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Por supuesto, era imposible conectar los puntos mirando hacia el futuro cuando estaba en clase, pero fue muy, muy claro al mirar atrás diez años más tarde. &lt;br /&gt;&lt;br /&gt;Lo diré otra vez: no puedes conectar los puntos hacia adelante, sólo puedes hacerlo hacia atrás. Así que tenéis que confiar en que los puntos se conectarán alguna vez en el futuro. Tienes que confiar en algo, tu instinto, el destino, la vida, el karma, lo que sea. &lt;br /&gt;&lt;br /&gt;Esta forma de actuar nunca me ha dejado tirado, y ha marcado la diferencia en mi vida. &lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;strong&gt;Mi segunda historia es sobre el amor y la pérdida. &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Tuve suerte — supe pronto en mi vida qué era lo que más deseaba hacer. Woz y yo creamos Apple en la cochera de mis padres cuando tenía 20 años. Trabajamos mucho, y en diez años Apple creció de ser sólo nosotros dos a ser una compañía valorada en 2 mil millones de dólares y 4.000 empleados. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hacía justo un año que habíamos lanzado nuestra mejor creación — el Macintosh — un año antes, y hacía poco que había cumplido los 30. &lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;Y me despidieron. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;¿Cómo te pueden echar de la empresa que tú has creado? &lt;br /&gt;&lt;br /&gt;Bueno, mientras Apple crecía contratamos a alguien que yo creía muy capacitado para llevar la compañía junto a mí, y durante el primer año, más o menos, las cosas fueron bien. Pero luego nuestra perspectiva del futuro comenzó a ser distinta y finalmente nos apartamos completamente. Cuando eso pasó, nuestra Junta Directiva se puso de su parte. &lt;br /&gt;&lt;br /&gt;Así que a los 30 estaba fuera. Y de forma muy notoria. &lt;br /&gt;&lt;br /&gt;Lo que había sido el centro de toda mi vida adulta se había ido y fue devastador. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Realmente no supe qué hacer durante algunos meses. Sentía que había dado de lado a la anterior generación de emprendedores, que había soltado el testigo en el momento en que me lo pasaban. Me reuní con David Packard [de HP] y Bob Noyce [Intel], e intenté disculparme por haberlo fastidiado tanto. Fue un fracaso muy notorio, e incluso pensé en huir del valle [Silicon Valley]. &lt;br /&gt;&lt;br /&gt;Pero algo comenzó a abrirse paso en mí — aún amaba lo que hacía. El resultado de los acontecimientos en Apple no había cambiado eso ni un ápice. Había sido rechazado, pero aún estaba enamorado. Así que decidí comenzar de nuevo. &lt;br /&gt;&lt;br /&gt;No lo vi así entonces, pero resultó ser que el que me echaran de Apple fue lo mejor que jamás me pudo haber pasado. &lt;br /&gt;&lt;br /&gt;Había cambiado el peso del éxito por la ligereza de ser de nuevo un principiante, menos seguro de las cosas. Me liberó para entrar en uno de los periodos más creativos de mi vida. Durante los siguientes cinco años, creé una empresa llamada NeXT, &lt;span style="color: red;"&gt;otra llamada Pixar&lt;/span&gt;, y me enamoré de una mujer asombrosa que se convertiría después en mi esposa. &lt;br /&gt;&lt;br /&gt;Pixar llegó a crear el primer largometraje animado por ordenador, Toy Story, y es ahora el estudio de animación más exitoso del mundo. En un notable giro de los acontecimientos, Apple compró NeXT, yo regresé a Apple y la tecnología que desarrollamos en NeXT es el corazón del actual renacimiento de Apple. Y Laurene y yo tenemos una maravillosa familia. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Estoy bastante seguro de que nada de esto habría ocurrido si no me hubieran echado de Apple. Creo que fue una medicina horrible, pero supongo que el paciente la necesitaba. A veces, la vida te da en la cabeza con un ladrillo. No perdáis la fe. Estoy convencido de que la única cosa que me mantuvo en marcha fue mi amor por lo que hacía. Tenéis que encontrar qué es lo que amáis. Y esto vale tanto para vuestro trabajo como para vuestros amantes. &lt;br /&gt;&lt;br /&gt;El trabajo va a llenar gran parte de vuestra vida, y la única forma de estar realmente satisfecho es hacer lo que consideréis un trabajo genial. Y la única forma de tener un trabajo genial es amar lo que hagáis. Si aún no lo habéis encontrado, seguid buscando. &lt;br /&gt;&lt;br /&gt;No os conforméis. &lt;br /&gt;&lt;br /&gt;Como en todo lo que tiene que ver con el corazón, lo sabréis cuando lo hayáis encontrado. Y como en todas las relaciones geniales, las cosas mejoran y mejoran según pasan los años. Así que seguid buscando hasta que lo encontréis. &lt;br /&gt;&lt;br /&gt;No os conforméis. &lt;br /&gt;&lt;br /&gt;&lt;span style="color: #cc0000;"&gt;Mi tercera historia es sobre la muerte.&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cuando tenía 17 años, leí una cita que decía algo como: “Si vives cada día como si fuera el último, algún día tendrás razón”. Me marcó, y desde entonces, durante los últimos 33 años, cada mañana me he mirado en el espejo y me he preguntado: “Si hoy fuese el último día de mi vida, ¿querría hacer lo que voy a hacer hoy?” Y si la respuesta era “No” durante demasiados días seguidos, sabía que necesitaba cambiar algo. &lt;br /&gt;&lt;br /&gt;Recordar que voy a morir pronto es la herramienta más importante que haya encontrado para ayudarme a tomar las grandes decisiones de mi vida. &lt;br /&gt;&lt;br /&gt;Porque prácticamente todo, las expectativas de los demás, el orgullo, el miedo al ridículo o al fracaso se desvanece frente a la muerte, dejando sólo lo que es verdaderamente importante. &lt;br /&gt;&lt;br /&gt;Recordar que vas a morir es la mejor forma que conozco de evitar la trampa de pensar que tienes algo que perder. Ya estás desnudo. No hay razón para no seguir tu corazón. &lt;br /&gt;&lt;br /&gt;Hace casi un año me diagnosticaron cáncer. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Me hicieron un chequeo a las 7:30 de la mañana, y mostraba claramente un tumor en el páncreas. Ni siquiera sabía qué era el páncreas. Los médicos me dijeron que era prácticamente seguro un tipo de cáncer incurable y que mi esperanza de vida sería de tres a seis meses. Mi médico me aconsejó que me fuese a casa y dejara zanjados mis asuntos, forma médica de decir: prepárate a morir. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Significa intentar decirle a tus hijos en unos pocos meses lo que ibas a decirles en diez años. Significa asegurarte de que todo queda atado y bien atado, para que sea tan fácil como sea posible para tu familia. Significa decir adiós. &lt;br /&gt;&lt;br /&gt;Viví todo un día con ese diagnóstico. &lt;br /&gt;&lt;br /&gt;Luego, a última hora de la tarde, me hicieron una biopsia, metiéndome un endoscopio por la garganta, a través del estómago y el duodeno, pincharon el páncreas con una aguja para obtener algunas células del tumor. Yo estaba sedado, pero mi esposa, que estaba allí, me dijo que cuando vio las células al microscopio el médico comenzó a llorar porque resultó ser una forma muy rara de cáncer pancreático que se puede curar con cirugía. &lt;br /&gt;&lt;br /&gt;Me operaron, y ahora estoy bien. Esto es lo más cerca que he estado de la muerte, y espero que sea lo más cerca que esté de ella durante algunas décadas más. Habiendo vivido esto, ahora os puedo decir esto con más certeza que cuando la muerte era un concepto útil, pero puramente intelectual: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Nadie quiere morir. &lt;br /&gt;&lt;br /&gt;Ni siquiera la gente que quiere ir al cielo quiere morir para llegar allí. Y sin embargo la muerte es el destino que todos compartimos. Nadie ha escapado de ella. Y así tiene que ser, porque la Muerte es posiblemente el mejor invento de la Vida. Es el agente de cambio de la Vida. Retira lo viejo para hacer sitio a lo nuevo. &lt;br /&gt;&lt;br /&gt;Ahora mismo lo nuevo sois vosotros, pero dentro de no demasiado tiempo, de forma gradual, os iréis convirtiendo en lo viejo, y seréis apartados. Siento ser tan dramático, pero es bastante cierto. Vuestro tiempo es limitado, así que no lo gastéis viviendo la vida de otro. &lt;br /&gt;&lt;br /&gt;No os dejéis atrapar por el dogma que es vivir según los resultados del pensamiento de otros. &lt;br /&gt;&lt;br /&gt;No dejéis que el ruido de las opiniones de los demás ahogue vuestra propia voz interior. &lt;br /&gt;&lt;br /&gt;Y lo más importante, tened el coraje de seguir a vuestro corazón y vuestra intuición. &lt;br /&gt;&lt;br /&gt;De algún modo ellos ya saben lo que tú realmente quieres ser. &lt;br /&gt;&lt;br /&gt;Todo lo demás es secundario. &lt;br /&gt;&lt;br /&gt;Cuando era joven, había una publicación asombrosa llamada The Whole Earth Catalog [Catálogo de toda la Tierra], una de las biblias de mi generación. La creó un tipo llamado Stewart Brand no lejos de aquí, en Menlo Park y la trajo a la vida con su toque poético. Eran los últimos años 60, antes de los ordenadores personales y la autoedición, así que se hacía con máquinas de escribir, tijeras, y cámaras Polaroid. Era como Google con tapas de cartulina, 35 años de que llegara Google, era idealista, y rebosaba de herramientas claras y grandes conceptos. Stewart y su equipo sacaron varios números del The Whole Earth Catalog, y cuando llegó su momento, sacaron un último número. &lt;br /&gt;&lt;br /&gt;Fue a mediados de los 70, y yo tenía vuestra edad. &lt;br /&gt;&lt;br /&gt;En la contraportada de su último número había una fotografía de una carretera por el campo a primera hora de la mañana, la clase de carretera en la que podrías encontrarte haciendo autoestop si sois aventureros. Bajo ella estaban las palabras: &lt;br /&gt;&lt;br /&gt;“Sigue hambriento. Sigue alocado”. &lt;br /&gt;&lt;br /&gt;Era su último mensaje de despedida. Sigue hambriento. Sigue alocado. &lt;br /&gt;&lt;br /&gt;Y siempre he deseado eso para mí. Y ahora, cuando os graduáis para comenzar de nuevo, os deseo eso a vosotros. &lt;br /&gt;&lt;br /&gt;Seguid hambrientos. Seguid alocados. &lt;br /&gt;&lt;br /&gt;Muchísimas gracias a todos.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-3388177538821501969?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/3388177538821501969/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=3388177538821501969' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/3388177538821501969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/3388177538821501969'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2010/09/discurso-de-steve-jobs-en-la.html' title='Discurso de Steve Jobs en la Universidad de Stanford'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-2256866333072015056</id><published>2011-10-05T20:33:00.003-06:00</published><updated>2011-10-05T22:50:45.845-06:00</updated><title type='text'>Linq to dataset en Visual Basic .NET  (Option Infer ON)</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;En este ejemplo siguiente consultaremos un datatable no typed.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="font-family: Consolas, Courier, monospace; font-style: normal; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all; word-wrap: break-word;"&gt;&lt;span style="color: blue;"&gt;Dim&lt;/span&gt; ds &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; DataSet()&lt;br /&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;' Llena el dataset&lt;/span&gt;&lt;br /&gt;FillDataSet(ds)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;Dim&lt;/span&gt; orders &lt;span style="color: blue;"&gt;As&lt;/span&gt; DataTable = ds.Tables(&lt;span style="color: #a31515;"&gt;"customers"&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;' Consulta&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;Dim&lt;/span&gt; query = _ &lt;br /&gt;    From c &lt;span style="color: blue;"&gt;In&lt;/span&gt; customers.AsEnumerable() _ &lt;br /&gt;    Where  c.country = &lt;span style="color: maroon;"&gt;"SPAIN"&lt;/span&gt; _ &lt;br /&gt;    &lt;span style="color: blue;"&gt;Select&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; &lt;span style="color: blue;"&gt;With&lt;/span&gt; { _ &lt;br /&gt;        .id = c.Field(Of &lt;span style="color: blue;"&gt;String&lt;/span&gt;)(&lt;span style="color: maroon;"&gt;"Customerid"&lt;/span&gt;), _ &lt;br /&gt;        .city = c.Field(Of &lt;span style="color: blue;"&gt;String&lt;/span&gt;)(&lt;span style="color: maroon;"&gt;"city"&lt;/span&gt;), _ &lt;br /&gt;    }&lt;/pre&gt;&lt;pre style="font-family: Consolas, Courier, monospace; font-style: normal; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; word-break: break-all; word-wrap: break-word;"&gt;&lt;span style="color: green;"&gt;' transfiere la información de linq a data table&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;Dim&lt;/span&gt; boundTable &lt;span style="color: blue;"&gt;As&lt;/span&gt; DataTable = query.CopyToDataTable()&lt;br /&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;' Bind del datable al grid&lt;/span&gt;&lt;br /&gt;gridview1.DataSource = boundTable&lt;/pre&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;Lo interesante es si queremos hacer una consulta sobre la consulta, y queremos que nos habilite el intelligence, tenemos &amp;nbsp;que agregar la siguiente linea antes de nuestros imports:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: Consolas;"&gt;Option Infer On&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span class="sentence" id="xn10_6e91dd0f8eaa037ba9fac9014ebda6d5"&gt;Al establecer&amp;nbsp;&lt;span xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;span class="input"&gt;Option Infer&lt;/span&gt;&lt;/span&gt;&amp;nbsp;en&amp;nbsp;&lt;span xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;span class="input"&gt;On&lt;/span&gt;&lt;/span&gt;, puede declarar las variables locales sin especificar explícitamente un tipo de datos.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span class="sentence" id="xn11_a803602bf105dd5a90ac93c390d9a4a0"&gt;El compilador deduce el tipo de datos de una variable a partir del tipo de su expresión de inicialización. Ejemplo:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span class="sentence" id="xn11_a803602bf105dd5a90ac93c390d9a4a0"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="color: blue;"&gt;Dim&lt;/span&gt; query2 = _ &lt;br /&gt;    From c &lt;span style="color: blue;"&gt;In&lt;/span&gt; query2 _ &lt;/span&gt;&lt;span class="Apple-style-span"&gt;   &amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span"&gt;    Where  c.city = &lt;span style="color: maroon;"&gt;"BARCELONA"&lt;/span&gt; _ &lt;br /&gt;    &lt;span style="color: blue;"&gt;Select&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; &lt;span style="color: blue;"&gt;With&lt;/span&gt; { _ &lt;br /&gt;        c.id, _ &lt;br /&gt;        c.city , _ &lt;br /&gt;    }&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: Verdana, sans-serif; font-size: 13px;"&gt;Tanto el campo id, como city nos aparecera automáticamente al presionar punto gracias al intellingence.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue; font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;a href="http://msdn.microsoft.com/es-ar/library/bb384665.aspx"&gt;http://msdn.microsoft.com/es-ar/library/bb384665.aspx&lt;/a&gt;&amp;nbsp;(Option Infer on)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, sans-serif; font-size: x-small;"&gt;&lt;a href="http://msdn.microsoft.com/es-ar/library/bb386921.aspx#Y566"&gt;http://msdn.microsoft.com/es-ar/library/bb386921.aspx#Y566&lt;/a&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="color: blue;"&gt;(LINQ To Datatable)&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-2256866333072015056?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/2256866333072015056/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=2256866333072015056' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/2256866333072015056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/2256866333072015056'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/10/linq-to-dataset-en-visual-basic-net.html' title='Linq to dataset en Visual Basic .NET  (Option Infer ON)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-7734852210973510606</id><published>2011-09-29T20:31:00.001-06:00</published><updated>2011-09-29T20:31:46.793-06:00</updated><title type='text'>Como ven los usuarios a los programadores</title><content type='html'>&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Hw0ByRQEV1k/ToUp25DfaLI/AAAAAAAAAmc/Nxle7BPGfpo/s1600/409780842.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="281" src="http://4.bp.blogspot.com/-Hw0ByRQEV1k/ToUp25DfaLI/AAAAAAAAAmc/Nxle7BPGfpo/s320/409780842.jpg" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Sera cierto?&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-7734852210973510606?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/7734852210973510606/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=7734852210973510606' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/7734852210973510606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/7734852210973510606'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/09/como-ven-los-usuarios-los-programadores.html' title='Como ven los usuarios a los programadores'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-Hw0ByRQEV1k/ToUp25DfaLI/AAAAAAAAAmc/Nxle7BPGfpo/s72-c/409780842.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-5025353061854420887</id><published>2011-09-18T22:51:00.002-06:00</published><updated>2011-09-18T22:57:14.640-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Megan Fox'/><category scheme='http://www.blogger.com/atom/ns#' term='Rosie Huntington-Whiteley'/><category scheme='http://www.blogger.com/atom/ns#' term='Transformes'/><title type='text'>Que regresen a Megan Fox</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Ver Transformers y no ver &amp;nbsp;Megan fox no tiene ningún sentido. No estoy de acuerdo que siga ella con las próximas películas, aun que se que &amp;nbsp;mi humilde opinión&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;sirve de nada&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;, por lo menos me expresare para sacar esta angustia :)&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;La impostora:&amp;nbsp;Rosie Huntington-Whiteley&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Es narizona, si ya se que me van a decir tiene buen cuerpo, pero acaso Megan fox no lo tenia??&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-21WsXqUYvkQ/TnbIMTtZ5kI/AAAAAAAAAmE/0FlV-eYEVqg/s1600/Rosie_Huntington-Whiteley%257Crosie-huntington-whiteley.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://1.bp.blogspot.com/-21WsXqUYvkQ/TnbIMTtZ5kI/AAAAAAAAAmE/0FlV-eYEVqg/s640/Rosie_Huntington-Whiteley%257Crosie-huntington-whiteley.jpg" width="425" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Megan fox, no hay palabras, las imágenes dicen todo, comparen ustedes, y si aun les gusta la narizona pues en gusto se rompen géneros.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-neWlDbG3seM/TnbIxaARTsI/AAAAAAAAAmI/YTAwiDfzXe8/s1600/megan_fox_23-1280x800.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-neWlDbG3seM/TnbIxaARTsI/AAAAAAAAAmI/YTAwiDfzXe8/s640/megan_fox_23-1280x800.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-G5qbe7hGPfM/TnbI-8GLATI/AAAAAAAAAmM/LBxzHZfQd-A/s1600/megan-fox_52933.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="480" src="http://2.bp.blogspot.com/-G5qbe7hGPfM/TnbI-8GLATI/AAAAAAAAAmM/LBxzHZfQd-A/s640/megan-fox_52933.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;Bueno es complicado ese reemplazo, pero miren esta esta fotografía, de la chica&amp;nbsp;decepticon&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;en la película 2, ella si esta a la altura no se como llevaron a la narizona.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-4UMdIR2wfSE/TnbJuniDC6I/AAAAAAAAAmU/uovnKp0DhS0/s1600/megan-fox_53218.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-4UMdIR2wfSE/TnbJuniDC6I/AAAAAAAAAmU/uovnKp0DhS0/s1600/megan-fox_53218.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-5025353061854420887?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/5025353061854420887/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=5025353061854420887' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/5025353061854420887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/5025353061854420887'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/09/que-regresen-megan-fox.html' title='Que regresen a Megan Fox'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-21WsXqUYvkQ/TnbIMTtZ5kI/AAAAAAAAAmE/0FlV-eYEVqg/s72-c/Rosie_Huntington-Whiteley%257Crosie-huntington-whiteley.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-3176309427899642790</id><published>2011-09-18T22:20:00.000-06:00</published><updated>2011-09-18T22:30:53.407-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mvc 3'/><category scheme='http://www.blogger.com/atom/ns#' term='mvc'/><title type='text'>Introduction  MVC (Controladores)</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Los controladores procesan solicitudes entrantes, controlan los datos proporcionados por el usuario y las interacciones y ejecutan la lógica de la aplicación adecuada. Una clase de controlador llama normalmente a un componente de vista independiente para generar el HTML para la solicitud.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Q7Khf7hGYiw/TmsN71JOZ7I/AAAAAAAAAlA/hUJUnls0k5E/s1600/direcciones.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="213" src="http://4.bp.blogspot.com/-Q7Khf7hGYiw/TmsN71JOZ7I/AAAAAAAAAlA/hUJUnls0k5E/s320/direcciones.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;u&gt;Métodos de acción:&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;El controlador define los métodos de acción. Los controladores pueden incluir tantos métodos de acción como sea necesario.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;La interacción del usuario con aplicaciones ASP.NET MVC se organiza en torno a los controladores y métodos de acción, otras palabras se encargan&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&amp;nbsp;de interactuar con el usuario . Por ejemplo&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&amp;nbsp;especificar una dirección URL en el explorador, hacer clic en un vínculo y enviar un formulario. Cada una de estas interacciones del usuario produce el envío de una solicitud al servidor. En cada caso, la dirección URL de la solicitud incluye información que el marco de MVC utiliza para invocar un método de acción.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;u&gt;Tipo de valor devuelto ActionResult&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;La mayoría de los métodos de acción devuelven una instancia de una clase que se deriva de ActionResult. La clase ActionResult es la base de todos los resultados de acciones. Sin embargo, hay tipos de resultados de acción diferentes, dependiendo de la tarea que el método de acción esté realizando. Por ejemplo, la acción más frecuente consiste en llamar al método View. El método View devuelve una instancia de la clase ViewResult, que se deriva de ActionResult.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;Puede crear métodos de acción que devuelven un objeto de cualquier tipo, como una cadena, un entero o un valor booleano. Estos tipos de valor devueltos se incluyen en un tipo ActionResult adecuado antes de representarse en la secuencia de respuesta.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;u&gt;Ejemplo del un controlador (sin retornar vistas)&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;1.) Crear un nuevo proyecto - File - New proyect - ASP.Net MVC 3 Web Applicacion&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-eEUMichHsUA/Tmr9dmTg2aI/AAAAAAAAAkU/d7WMfuopj4c/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.00.39.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="397" src="http://3.bp.blogspot.com/-eEUMichHsUA/Tmr9dmTg2aI/AAAAAAAAAkU/d7WMfuopj4c/s640/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.00.39.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;2.)Elegir el tipo de proyecto MVC - Internet Applicacion- View engine- Razor&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="366" src="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s400/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;3.) Creando un controlador - Clic derecho sobre la carpeta "Controladores" - add - Controler...&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s1600/controller.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s400/controller.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-qdbL8easxsI/Tna-XYOdF4I/AAAAAAAAAl8/urGaGZ_QIGE/s1600/Controller+EJemplo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="265" src="http://3.bp.blogspot.com/-qdbL8easxsI/Tna-XYOdF4I/AAAAAAAAAl8/urGaGZ_QIGE/s400/Controller+EJemplo.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;Las acciones que crea predeterminadamente son:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt; &lt;br /&gt;        &lt;span style="color: blue;"&gt;public&lt;/span&gt; ActionResult Index() &lt;br /&gt;        { &lt;br /&gt;            &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(); &lt;br /&gt;        }&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;Nota: No se puede utilizar esta acción hasta que no se cree una vista(view) &amp;nbsp;ya que si pueden ver el return.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;4.) Modificando y agregado acciones. Agregue los siguientes acciones:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;  &lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; Index()&lt;br /&gt;  { &lt;br /&gt;     &lt;span style="color: blue;"&gt;return&lt;/span&gt; &lt;span style="color: maroon;"&gt;"Hola soy un controlador :)"&lt;/span&gt;; &lt;br /&gt;  } &lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; Navegando(&lt;span style="color: blue;"&gt;string&lt;/span&gt; valor)&lt;br /&gt; { &lt;br /&gt;     &lt;span style="color: blue;"&gt;string&lt;/span&gt; message = &lt;br /&gt;                HttpUtility.HtmlEncode(&lt;span style="color: maroon;"&gt;"El valor que usted envio es: "&lt;/span&gt; + valor); &lt;br /&gt;&lt;br /&gt;      &lt;span style="color: blue;"&gt;return&lt;/span&gt; message; &lt;br /&gt;  } &lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; Detalles(&lt;span style="color: blue;"&gt;int&lt;/span&gt; id)&lt;br /&gt;{ &lt;br /&gt;    &lt;span style="color: blue;"&gt;string&lt;/span&gt; message = &lt;span style="color: maroon;"&gt;"El numero que envio es: "&lt;/span&gt; + id;&lt;br /&gt;&lt;br /&gt;    &lt;span style="color: blue;"&gt;return&lt;/span&gt; message; &lt;br /&gt;}&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;5.) Probando nuestro proyecto. - Presione F5 - escriba las siguientes dirección en el URL de su navegador: ( Aun que su control se llama EjemploController, no es necesario la palabra controler)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;http://localhost:1057/Ejemplo&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;i&gt;Prueba de acción índex, algo interesante es que&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;http://localhost:1057/ejemplo/Navegando?valor=test&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;i&gt;Prueba de acción Navegando, pueden notar que string valor es enviado como un parámetro.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: red; font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;http://localhost:1057/ejemplo/detalles/5&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;i&gt;Prueba de acción Detalles, pueden notar que no es necesario especificar la variable que estoy enviando.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;u&gt;Tipo de valor devuelto ActionResult&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;La mayoría de los métodos de acción devuelven una instancia de una clase que se deriva de ActionResult. La clase ActionResult es la base de todos los resultados de acciones. Sin embargo, hay tipos de resultados de acción diferentes, dependiendo de la tarea que el método de acción esté realizando. Por ejemplo, la acción más frecuente consiste en llamar al método View. El método View devuelve una instancia de la clase ViewResult, que se deriva de ActionResult.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;Puede crear métodos de acción que devuelven un objeto de cualquier tipo, como una cadena, un entero o un valor booleano. Estos tipos de valor devueltos se incluyen en un tipo ActionResult adecuado antes de representarse en la secuencia de respuesta.&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: small;"&gt;En la tabla siguiente se muestran los tipos de resultado de acción integrados y los métodos auxiliares de acción que los devuelven.&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: xx-small;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;table style="border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; width: 600px;"&gt;&lt;tbody&gt;&lt;tr style="vertical-align: top;"&gt;&lt;th style="background-color: #e5e5e5; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; color: black; font-family: 'Segoe UI', Verdana, Arial; font-style: normal; font-weight: normal; height: 21px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left;"&gt;&lt;span class="sentence" id="xn41_77996e1bd378b995797516303af071f9"&gt;Resultado de la acción&lt;/span&gt;&lt;/th&gt;&lt;th style="background-color: #e5e5e5; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; color: black; font-family: 'Segoe UI', Verdana, Arial; font-style: normal; font-weight: normal; height: 21px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left;"&gt;&lt;span class="sentence" id="xn42_99b7fdd128e86cf0f50279655650e76d"&gt;Método auxiliar&lt;/span&gt;&lt;/th&gt;&lt;th style="background-color: #e5e5e5; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; color: black; font-family: 'Segoe UI', Verdana, Arial; font-style: normal; font-weight: normal; height: 21px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left;"&gt;&lt;span class="sentence" id="xn43_67daf92c833c41c95db874e18fcb2786"&gt;Descripción&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.viewresult(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;ViewResult&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.controller.view(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;View&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;span class="sentence" id="xn44_58ce0e0afd397b07f880a5b94212aa27"&gt;Representa una vista como una página web.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.partialviewresult(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;PartialViewResult&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.controller.partialview(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;PartialView&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;span class="sentence" id="xn45_cf79310a95bcc776dacd3535fd4a455f"&gt;Representa una vista parcial, que define una sección&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="sentence"&gt;de una vista que se puede representar dentro de otra vista.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.redirectresult(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;RedirectResult&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.controller.redirect(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;Redirect&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;span class="sentence" id="xn46_8d5397a8524c7eacac15dc6826daed70"&gt;Redirecciona a otro método de acción utilizando su&lt;/span&gt;&lt;br /&gt;&lt;span class="sentence"&gt;&amp;nbsp;dirección URL.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.redirecttorouteresult(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;RedirectToRouteResult&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.controller.redirecttoaction(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;RedirectToAction&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-top: 13px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.controller.redirecttoroute(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;RedirectToRoute&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;span class="sentence" id="xn47_73777e7819f41c77abbcaa9829c22741"&gt;Redirecciona a otro método de acción.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.contentresult(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;ContentResult&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.controller.content(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;Content&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;span class="sentence" id="xn48_403eada1f99f5fc363950235cc3f7bd7"&gt;Devuelve un tipo de contenido definido por el usuario.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.jsonresult(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;JsonResult&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.controller.json(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;Json&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;span class="sentence" id="xn49_2ff0f21633ddf9c795bf868d9e208899"&gt;Devuelve un objeto JSON serializado.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.javascriptresult(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;JavaScriptResult&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.controller.javascript(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;JavaScript&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;span class="sentence" id="xn50_5e0c7bf15ddeda50d75c70d00138408a"&gt;Devuelve un script que se puede ejecutar en el cliente.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.fileresult(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;FileResult&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.controller.file(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;File&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;span class="sentence" id="xn51_17f008e09f6623b909b0f1178d8004b7"&gt;Devuelve la salida binaria para escribir en la respuesta.&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/system.web.mvc.emptyresult(v=VS.98).aspx" style="color: #1364c4; text-decoration: none;"&gt;EmptyResult&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;span class="sentence" id="xn52_97139627c126d86a74d8ab820ad756d6"&gt;(Ninguno)&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 9px; padding-left: 4px; padding-right: 4px; padding-top: 9px;"&gt;&lt;div style="margin-bottom: 0px; margin-top: 0px; position: relative;"&gt;&lt;span class="sentence" id="xn53_d40aceee63bd253965c040ff6d6bce43"&gt;Representa un valor devuelto que se utiliza si el método&lt;/span&gt;&lt;br /&gt;&lt;span class="sentence"&gt;&amp;nbsp;de acción debe devolver un resultado&amp;nbsp;&lt;span xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;span class="input"&gt;null&lt;/span&gt;&lt;/span&gt;&amp;nbsp;(vacío).&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-3176309427899642790?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/3176309427899642790/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=3176309427899642790' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/3176309427899642790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/3176309427899642790'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/09/introduction-mvc-controladores.html' title='Introduction  MVC (Controladores)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-Q7Khf7hGYiw/TmsN71JOZ7I/AAAAAAAAAlA/hUJUnls0k5E/s72-c/direcciones.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-1948523374114191391</id><published>2011-09-10T02:51:00.002-06:00</published><updated>2011-09-10T02:51:35.706-06:00</updated><title type='text'>Ejemplo de MVC 3.0 con Entity Framework</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Información general&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn1_11932985ecd73305065b7c26056b72f5"&gt;El modelo de arquitectura Model-View-Controller (MVC) separa una aplicación en tres componentes principales: el modelo, la vista y el controlador.&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn2_15ca6706178b0c4d8ba9c826597b8f87"&gt;El framework de ASP.NET MVC proporciona una alternativa al modelo de formularios Web Forms de ASP.NET para crear aplicaciones web.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;a href="http://msdn.microsoft.com/es-ar/library/dd381412.aspx"&gt;Leer mas teoría sobre MVC&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Hpo7SRqbrZE/Tmr4nEhSh_I/AAAAAAAAAkM/MUp8zsUYGCg/s1600/What-Is-MVC.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="307" src="http://2.bp.blogspot.com/-Hpo7SRqbrZE/Tmr4nEhSh_I/AAAAAAAAAkM/MUp8zsUYGCg/s320/What-Is-MVC.png" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;MVC&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;0.) Instalar MVC 3, descargarlo de &lt;a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=1491"&gt;aqui&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;1.)Crear el proyecto, File - New Proyect - ASP.NET MVC Web Applicaction&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-eEUMichHsUA/Tmr9dmTg2aI/AAAAAAAAAkU/d7WMfuopj4c/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.00.39.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="396" src="http://3.bp.blogspot.com/-eEUMichHsUA/Tmr9dmTg2aI/AAAAAAAAAkU/d7WMfuopj4c/s640/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.00.39.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;2.) &amp;nbsp;Le mostrara la pantalla de que tipo de aplicación (Internet o intranet), que tipo de motor quiere utilizar ASPX o &lt;a href="http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx"&gt;Razor&lt;/a&gt;. &lt;b&gt;Seleccione Internet Application y Use HTML 5 semantic Markup.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Diferencias:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Emply un proyecto Totalmente Vacio.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Internet Application un proyecto con autenticación por formularios.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Intranet Application un proyecto con autenticación por Windows Active Directory.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-mR-VyfpKzzQ/Tmr9v1yXytI/AAAAAAAAAkY/PEsY3NVysxo/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.01.06.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;3.) Creando el modelo&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn11_396290be4db50543b763cc867bcbace1"&gt;&lt;b&gt;Modelos.&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn12_78c1ad0ad588d201d5cc41fdfa5ae33d"&gt;Los objetos de modelo son las partes de la aplicación que implementan la lógica del dominio de datos de la aplicación.&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn13_103ead810a46a7759ee35ae375ad31a9"&gt;A menudo, los objetos de modelo recuperan y almacenan el estado del modelo en una base de datos.&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn14_a878a98b29dc2fa13fa62801ee485b82"&gt;Por ejemplo, un objeto&amp;nbsp;&lt;span class="code" xmlns="http://www.w3.org/1999/xhtml"&gt;Productos&lt;/span&gt;&amp;nbsp;podría recuperar información de una base de datos, trabajar con ella y, a continuación, escribir la información actualizada en una tabla Productos de una base de datos de SQL Server.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn14_a878a98b29dc2fa13fa62801ee485b82"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;3.1)En el Solucion explorer, presione clic derecho sobre la carpeta Models y luego en la ventana seleccione Ado Entity Data Model, con el nombre:&amp;nbsp;NorthwindModel.edmx&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Continue los pasos del asistente, como se indica en las imagenes.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;a href="http://3.bp.blogspot.com/-SrAxvePcgxk/TmsIj3gznSI/AAAAAAAAAkg/4cattOTijjE/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.57.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/-SrAxvePcgxk/TmsIj3gznSI/AAAAAAAAAkg/4cattOTijjE/s320/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.57.png" width="286" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;a href="http://2.bp.blogspot.com/-faYb0C6Yd3I/TmsInLaxSOI/AAAAAAAAAkk/xPyakRQdC28/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.31.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="395" src="http://2.bp.blogspot.com/-faYb0C6Yd3I/TmsInLaxSOI/AAAAAAAAAkk/xPyakRQdC28/s640/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.48.31.png" width="640" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;a href="http://2.bp.blogspot.com/-FiX2gwuMxOE/TmsJQpHzDcI/AAAAAAAAAko/f_G2EvUDmdc/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.50.47.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="365" src="http://2.bp.blogspot.com/-FiX2gwuMxOE/TmsJQpHzDcI/AAAAAAAAAko/f_G2EvUDmdc/s400/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.50.47.png" width="400" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;a href="http://2.bp.blogspot.com/-33Z3HbW--W8/TmsJSsGzjrI/AAAAAAAAAks/4DWXJ57pd5M/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.51.08.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="363" src="http://2.bp.blogspot.com/-33Z3HbW--W8/TmsJSsGzjrI/AAAAAAAAAks/4DWXJ57pd5M/s400/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.51.08.png" width="400" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;a href="http://4.bp.blogspot.com/-L3CAMPJSDoE/TmsJh2smN0I/AAAAAAAAAkw/kBQC9rLnFfY/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.53.27.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="362" src="http://4.bp.blogspot.com/-L3CAMPJSDoE/TmsJh2smN0I/AAAAAAAAAkw/kBQC9rLnFfY/s400/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+00.53.27.png" width="400" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;3.2) Antes de continuar compile el proyecto.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn14_a878a98b29dc2fa13fa62801ee485b82"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;4.) &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;Creado el Controlador&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Q7Khf7hGYiw/TmsN71JOZ7I/AAAAAAAAAlA/hUJUnls0k5E/s1600/direcciones.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="212" src="http://4.bp.blogspot.com/-Q7Khf7hGYiw/TmsN71JOZ7I/AAAAAAAAAlA/hUJUnls0k5E/s320/direcciones.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span class="sentence" id="xn22_2fc5ce8e8478956f1beeb0a5783ba008"&gt;&lt;b&gt;Controladores.&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn23_66d32513ba1b6409c31254cd8747640f"&gt;Los controladores son los componentes que controlan la interacción del usuario, trabajan con el modelo y por último seleccionan una vista para representar la interfaz de usuario.&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn24_fa893e8431c24090abaf30b15998717d"&gt;En una aplicación MVC, la vista solo muestra información; el controlador administra y responde a los datos proporcionados por el usuario y su interacción.&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn25_044d7ce11d8da71e9feaebd3ba920be3"&gt;Por ejemplo, el controlador administra los valores de la cadena de consulta y pasa estos valores al modelo, que a su vez podría utilizarlos para consultar la base de datos.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;4.1)&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Presione Clic derecho sobre la carpeta de Controllers, luego add y por ultimo&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Controller&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;....&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s1600/controller.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-ijlxVc9BTog/TmsODI4SgfI/AAAAAAAAAlE/C4Dd5V9qUj4/s400/controller.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;4.2) Se mostrara la pantalla para que seleccione el tipo de Controller.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;a href="http://2.bp.blogspot.com/-3C3A0fqSg7E/TmsQHu2ttiI/AAAAAAAAAlM/G2hihJcPDb8/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.21.38.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="211" src="http://2.bp.blogspot.com/-3C3A0fqSg7E/TmsQHu2ttiI/AAAAAAAAAlM/G2hihJcPDb8/s320/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.21.38.png" style="cursor: move;" width="320" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Nombre:&amp;nbsp;CategoryController&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Template:&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px;"&gt;Adding a controller with read/write actions and views, using Entity Framework&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Model Data Class: Categories (Nombre proyecto.Models)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Data Context class: NortwindEntities (&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Nombre proyecto.Models)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times; font-size: medium; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Views: Razor (cshtml)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;5.)&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Explorado las&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;Vistas.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn18_fc1d35032838b6d7a4395e9652e3de45"&gt;&lt;b&gt;Vistas.&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn19_f2ced648802691e6c62f6cbfd83895f5"&gt;Las vistas son los componentes que muestra la interfaz de usuario de la aplicación.&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn20_31bd3031d5b80fdb9e2008b839006d2a"&gt;Normalmente, esta interfaz de usuario se crea a partir de los datos de modelo.&lt;/span&gt;&amp;nbsp;&lt;span class="sentence" id="xn21_345da2c9ec333e87f61f4549ae8eb810"&gt;Un ejemplo sería una vista de edición de una tabla Productos que muestra cuadros de texto, listas desplegables y casillas basándose en el estado actual de un objeto&amp;nbsp;&lt;span class="code" xmlns="http://www.w3.org/1999/xhtml"&gt;Product&lt;/span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn21_345da2c9ec333e87f61f4549ae8eb810"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn21_345da2c9ec333e87f61f4549ae8eb810"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn21_345da2c9ec333e87f61f4549ae8eb810"&gt;Luego del ultimo paso nos creo 5 archivos en la carpeta view, estos archivos nos ayudaran a manejar nuestro controlador.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn21_345da2c9ec333e87f61f4549ae8eb810"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Create.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Delete.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Details.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Edit.cshtml&lt;/span&gt;&lt;br /&gt;&lt;span class="hps" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Index.cshtml&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: 13px;"&gt;&lt;span class="sentence" id="xn21_345da2c9ec333e87f61f4549ae8eb810"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-top: -6px;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-IJs37EMMZ-c/TmsTDa4AwKI/AAAAAAAAAlU/g23QHH7EJZM/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.32.37.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-IJs37EMMZ-c/TmsTDa4AwKI/AAAAAAAAAlU/g23QHH7EJZM/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.32.37.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-6ToqWb8e8UA/TmsTIFbZURI/AAAAAAAAAlY/HlcXYqLGg64/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.32.50.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="456" src="http://4.bp.blogspot.com/-6ToqWb8e8UA/TmsTIFbZURI/AAAAAAAAAlY/HlcXYqLGg64/s640/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.32.50.png" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Archivo Index.cshtml&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;6.) Cambiando Los enrutadores, para mostrar nuestro mas reciente proyecto tenemos que modificar layout.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;6.1) En la carpeta view - dentro de la carpeta de share - abra el archivo&amp;nbsp;_Layout.cshtml este archivo contiene nuestra plantilla del sitio.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre&gt; &amp;lt;ul id=&lt;span style="color: maroon;"&gt;"menu"&lt;/span&gt;&amp;gt; &lt;br /&gt;      &amp;lt;li&amp;gt;@Html.ActionLink(&lt;span style="color: maroon;"&gt;"Home"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Index"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Home"&lt;/span&gt;)&amp;lt;/li&amp;gt; &lt;br /&gt;      &amp;lt;li&amp;gt;@Html.ActionLink(&lt;span style="color: maroon;"&gt;"About"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"About"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Home"&lt;/span&gt;)&amp;lt;/li&amp;gt; &lt;br /&gt;      &amp;lt;li&amp;gt;@Html.ActionLink(&lt;span style="color: maroon;"&gt;"Categorias"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Index"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Category"&lt;/span&gt;)&amp;lt;/li&amp;gt; &lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;/pre&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;6.1) Ejecute su proyecto (F5) para poder probar su proyecto, el resultado será:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-G203XM1lujw/TmsV6PsqACI/AAAAAAAAAlg/7nQVE05MoYQ/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.44.38.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-G203XM1lujw/TmsV6PsqACI/AAAAAAAAAlg/7nQVE05MoYQ/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.44.38.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-166AVmsDQWs/TmsV7TG_H5I/AAAAAAAAAlk/Ka3QcRfqpC4/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.45.06.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-166AVmsDQWs/TmsV7TG_H5I/AAAAAAAAAlk/Ka3QcRfqpC4/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.45.06.png" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Index&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;7.) Agregado un Filtro a la pantalla de Index.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;7.1) Abra el controller&amp;nbsp;CategoryController y agregue el siguiente código:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt; &lt;span style="color: blue;"&gt;public&lt;/span&gt; ActionResult SearchIndex(&lt;span style="color: blue;"&gt;string&lt;/span&gt; searchString)&lt;br /&gt;        { &lt;br /&gt;            var categories = from m &lt;span style="color: blue;"&gt;in&lt;/span&gt; db.Categories &lt;br /&gt;                         select m; &lt;br /&gt;&lt;br /&gt;            &lt;span style="color: blue;"&gt;if&lt;/span&gt; (!String.IsNullOrEmpty(searchString)) &lt;br /&gt;            { &lt;br /&gt;                categories = categories.Where(s =&amp;gt; s.Description.Contains(searchString)); &lt;br /&gt;            } &lt;br /&gt;&lt;br /&gt;            &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(categories); &lt;br /&gt;        }&lt;/pre&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;7.2) Agregue la una nueva vista para donde utlizaremos el controlador, clic derecho sobre método add view y configure la ventana de la siguiente manera. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-h1QmQNxYVrQ/TmsavipyxlI/AAAAAAAAAls/1e8_AqoU1z0/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.56.37.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-h1QmQNxYVrQ/TmsavipyxlI/AAAAAAAAAls/1e8_AqoU1z0/s400/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+01.56.37.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;7.3) En la carpeta view edite al archivo recienmente creado SearchIndex.cshtml:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;7.4) Agregue el siguiente código:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;h2&amp;gt;SearchIndex&amp;lt;/h2&amp;gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt; &lt;br /&gt;    @Html.ActionLink(&lt;span style="color: maroon;"&gt;"Create New"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Create"&lt;/span&gt;) &lt;br /&gt;&lt;br /&gt;    @&lt;span style="color: blue;"&gt;using&lt;/span&gt; (Html.BeginForm()){    &lt;br /&gt;        &amp;lt;p&amp;gt; Description: @Html.TextBox(&lt;span style="color: maroon;"&gt;"SearchString"&lt;/span&gt;) &amp;lt;br /&amp;gt;   &lt;br /&gt;        &amp;lt;input type=&lt;span style="color: maroon;"&gt;"submit"&lt;/span&gt; value=&lt;span style="color: maroon;"&gt;"Filter"&lt;/span&gt; /&amp;gt;&amp;lt;/p&amp;gt; &lt;br /&gt;    } &lt;br /&gt;&amp;lt;/p&amp;gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;7.5)&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&amp;nbsp;En la carpeta view - dentro de la carpeta de share - abra el archivo&amp;nbsp;_Layout.cshtml cambie el action que creamos anteriormente.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-top: -6px;"&gt;&lt;div style="font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: Times; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Times;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Times;"&gt; &amp;lt;ul id=&lt;span style="color: maroon;"&gt;"menu"&lt;/span&gt;&amp;gt; &lt;br /&gt;      &amp;lt;li&amp;gt;@Html.ActionLink(&lt;span style="color: maroon;"&gt;"Home"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Index"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Home"&lt;/span&gt;)&amp;lt;/li&amp;gt; &lt;br /&gt;      &amp;lt;li&amp;gt;@Html.ActionLink(&lt;span style="color: maroon;"&gt;"About"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"About"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Home"&lt;/span&gt;)&amp;lt;/li&amp;gt; &lt;br /&gt;      &amp;lt;li&amp;gt;@Html.ActionLink(&lt;span style="color: maroon;"&gt;"Categorias"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"SearchIndex"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Category"&lt;/span&gt;)&amp;lt;/li&amp;gt; &lt;br /&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: Times;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;8.) Por ultimo cambiarmos &amp;nbsp;el textbox por un Dropdown list, para esto tenemos que cambiar el controler.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-qz3XyxEuDfg/TmskO8RGjiI/AAAAAAAAAl0/rctJrf9dkdA/s1600/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+02.47.29.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="233" src="http://3.bp.blogspot.com/-qz3XyxEuDfg/TmskO8RGjiI/AAAAAAAAAl0/rctJrf9dkdA/s640/Captura+de+pantalla+2011-09-10+a+la%2528s%2529+02.47.29.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;Controller:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; ActionResult SearchIndex(&lt;span style="color: blue;"&gt;string&lt;/span&gt; name, &lt;span style="color: blue;"&gt;string&lt;/span&gt; searchString)&lt;br /&gt;        { &lt;br /&gt;&lt;br /&gt;            var Lst = &lt;span style="color: blue;"&gt;new&lt;/span&gt; List&amp;lt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;&amp;gt;(); &lt;br /&gt;&lt;br /&gt;            var Qry = from d &lt;span style="color: blue;"&gt;in&lt;/span&gt; db.Categories &lt;br /&gt;                           orderby d.CategoryName  &lt;br /&gt;                           select d.CategoryName; &lt;br /&gt;            Lst.AddRange(Qry.Distinct()); &lt;br /&gt;            ViewBag.name = &lt;span style="color: blue;"&gt;new&lt;/span&gt; SelectList(Lst); &lt;br /&gt;&lt;br /&gt;            var categories = from m &lt;span style="color: blue;"&gt;in&lt;/span&gt; db.Categories &lt;br /&gt;                         select m; &lt;br /&gt;&lt;br /&gt;            &lt;span style="color: blue;"&gt;if&lt;/span&gt; (!String.IsNullOrEmpty(searchString)) &lt;br /&gt;            { &lt;br /&gt;                categories = categories.Where(s =&amp;gt; s.Description.Contains(searchString)); &lt;br /&gt;            } &lt;br /&gt;&lt;br /&gt;            &lt;span style="color: blue;"&gt;if&lt;/span&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt;.IsNullOrEmpty(name))&lt;br /&gt;                &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(categories); &lt;br /&gt;            &lt;span style="color: blue;"&gt;else&lt;/span&gt; &lt;br /&gt;            { &lt;br /&gt;                &lt;span style="color: blue;"&gt;return&lt;/span&gt; View(categories.Where(x =&amp;gt; x.CategoryName == name));&lt;br /&gt;            } &lt;br /&gt;&lt;br /&gt;            &lt;br /&gt;        }&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial;"&gt;8.1) Por ultimo en este ejercicio cambiaremos la vista:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;h2&amp;gt;SearchIndex&amp;lt;/h2&amp;gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt; &lt;br /&gt;    @Html.ActionLink(&lt;span style="color: maroon;"&gt;"Create New"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"Create"&lt;/span&gt;) &lt;br /&gt;&lt;br /&gt;    @&lt;span style="color: blue;"&gt;using&lt;/span&gt; (Html.BeginForm()){    &lt;br /&gt;         &amp;lt;p&amp;gt;Name: @Html.DropDownList(&lt;span style="color: maroon;"&gt;"name"&lt;/span&gt;, &lt;span style="color: maroon;"&gt;"All"&lt;/span&gt;)   &lt;br /&gt;        &amp;amp;nbsp;  Title: @Html.TextBox(&lt;span style="color: maroon;"&gt;"SearchString"&lt;/span&gt;)   &lt;br /&gt;         &amp;lt;input type=&lt;span style="color: maroon;"&gt;"submit"&lt;/span&gt; value=&lt;span style="color: maroon;"&gt;"Filter"&lt;/span&gt; /&amp;gt;&amp;lt;/p&amp;gt; &lt;br /&gt;        } &lt;br /&gt;&amp;lt;/p&amp;gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;Con esto terminamos nuestro ejemplo.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;Para agregar seguridad a nuestro sitio tenemos un ejemplo en la siguiente pagina:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Segoe UI', Verdana, Arial; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="color: #313c46; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px;"&gt;&amp;nbsp;&lt;a href="http://www.asp.net/mvc/tutorials/authenticating-users-with-forms-authentication-cs" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #034efa; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; vertical-align: baseline;"&gt;http://www.asp.net/mvc/tutorials/authenticating-users-with-forms-authentication-cs&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-1948523374114191391?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/1948523374114191391/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=1948523374114191391' title='1 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1948523374114191391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1948523374114191391'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/09/ejemplo-de-mvc-30-con-entity-framework.html' title='Ejemplo de MVC 3.0 con Entity Framework'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-Hpo7SRqbrZE/Tmr4nEhSh_I/AAAAAAAAAkM/MUp8zsUYGCg/s72-c/What-Is-MVC.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-2588126068469755445</id><published>2011-09-03T22:47:00.000-06:00</published><updated>2011-09-09T23:33:51.833-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='El Prisionero de Azkaban'/><category scheme='http://www.blogger.com/atom/ns#' term='Harry Potter'/><category scheme='http://www.blogger.com/atom/ns#' term='La Orden del fenix'/><category scheme='http://www.blogger.com/atom/ns#' term='Ilustraciones'/><category scheme='http://www.blogger.com/atom/ns#' term='Harry Potter y la Piedra filosofal'/><category scheme='http://www.blogger.com/atom/ns#' term='Harry Potter la camera secreta'/><title type='text'>Ilustraciones de Harry Potter</title><content type='html'>&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-QwFnBxAoLIg/TmL5okp3flI/AAAAAAAAAhM/IcHEkG4zUZw/s1600/Ara%25C2%25A7a.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-QwFnBxAoLIg/TmL5okp3flI/AAAAAAAAAhM/IcHEkG4zUZw/s1600/Ara%25C2%25A7a.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;Harry Potter la camera secreta - Sigan a las Arañas&amp;nbsp;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-KXEPHVrMloM/TmL6fpYVycI/AAAAAAAAAhU/pqPgXK2xRNg/s1600/BuscandoLallave.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="465" src="http://4.bp.blogspot.com/-KXEPHVrMloM/TmL6fpYVycI/AAAAAAAAAhU/pqPgXK2xRNg/s640/BuscandoLallave.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;Harry Potter y la Piedra filosofal - Buscando la llave&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-r_5KOcNEajo/TmL7KUbde1I/AAAAAAAAAhY/Y-FsVaK4hsw/s1600/Cada+de+los+Dusley+Prisionero.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="506" src="http://3.bp.blogspot.com/-r_5KOcNEajo/TmL7KUbde1I/AAAAAAAAAhY/Y-FsVaK4hsw/s640/Cada+de+los+Dusley+Prisionero.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;El Prisionero de Azkaban -&amp;nbsp;Casa de los Dusley Prisionero&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-xITXseM4Rvs/TmL7qaWOcBI/AAAAAAAAAhc/KdROG7O2Mzo/s1600/CarroVolador.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="466" src="http://2.bp.blogspot.com/-xITXseM4Rvs/TmL7qaWOcBI/AAAAAAAAAhc/KdROG7O2Mzo/s640/CarroVolador.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;Harry Potter la camera secreta&amp;nbsp;-&amp;nbsp;CarroVolador&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Zudi_TqcJVE/TmL8AiXVMAI/AAAAAAAAAhg/eFaiM-oVCzg/s1600/Claseloghart.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="466" src="http://3.bp.blogspot.com/-Zudi_TqcJVE/TmL8AiXVMAI/AAAAAAAAAhg/eFaiM-oVCzg/s640/Claseloghart.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;Harry Potter la camera secreta -&amp;nbsp;Clase Loghart&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-KMgzRR1Tkb0/TmL8awjb_jI/AAAAAAAAAhk/JXYoCsIo8po/s1600/decembersm.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="634" src="http://3.bp.blogspot.com/-KMgzRR1Tkb0/TmL8awjb_jI/AAAAAAAAAhk/JXYoCsIo8po/s640/decembersm.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;Harry Potter y la Piedra filosofal - Primera Navidad&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-ip9denVyp3A/TmL8xdcCb1I/AAAAAAAAAho/L8huVMGO6iA/s1600/Dementores.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="635" src="http://3.bp.blogspot.com/-ip9denVyp3A/TmL8xdcCb1I/AAAAAAAAAho/L8huVMGO6iA/s640/Dementores.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;El Prisionero de Azkaban&amp;nbsp;- Dementors Espectro Patronus&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-y5dmuI1rsZg/TmL9XU2jonI/AAAAAAAAAhs/e8Wm0ZNyKxA/s1600/espejo+de+Oesed.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="640" src="http://1.bp.blogspot.com/-y5dmuI1rsZg/TmL9XU2jonI/AAAAAAAAAhs/e8Wm0ZNyKxA/s640/espejo+de+Oesed.jpg" width="448" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;Harry Potter y la Piedra filosofal- Espejo de Oesed&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-cr3MZH7yZm4/TmL-EpKKnpI/AAAAAAAAAhw/uqsef9HOxUE/s1600/Ministerio+de+Magina.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="494" src="http://4.bp.blogspot.com/-cr3MZH7yZm4/TmL-EpKKnpI/AAAAAAAAAhw/uqsef9HOxUE/s640/Ministerio+de+Magina.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;La Orden del fenix - Ministerio de Magia&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-reAJJ_ZPWZA/TmL-aEEVOoI/AAAAAAAAAh0/sxpXtaMPJEo/s1600/Profecia.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="465" src="http://2.bp.blogspot.com/-reAJJ_ZPWZA/TmL-aEEVOoI/AAAAAAAAAh0/sxpXtaMPJEo/s640/Profecia.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;La Orden del fenix - La&amp;nbsp;Profecia&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-EWRIX62yDqc/TmL-oGpjRvI/AAAAAAAAAh4/2gaUhngKtwc/s1600/VaritaGemelas.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="466" src="http://2.bp.blogspot.com/-EWRIX62yDqc/TmL-oGpjRvI/AAAAAAAAAh4/2gaUhngKtwc/s640/VaritaGemelas.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;El Cadiz de fuego - Varitas Hermanas (tiene error ya que Lily y Hames salieron primer)&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-eorUUZavGdY/TmL_B3s4NEI/AAAAAAAAAh8/sU3p7N9igx0/s1600/Umbridge.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="466" src="http://4.bp.blogspot.com/-eorUUZavGdY/TmL_B3s4NEI/AAAAAAAAAh8/sU3p7N9igx0/s640/Umbridge.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;La Orden del fenix -&amp;nbsp;&lt;/b&gt;&lt;b&gt;Umbridge&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-zp_dc0QN74E/TmL_dQTgMWI/AAAAAAAAAiA/vipvo3cXN1w/s1600/El+Pensadero.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="464" src="http://4.bp.blogspot.com/-zp_dc0QN74E/TmL_dQTgMWI/AAAAAAAAAiA/vipvo3cXN1w/s640/El+Pensadero.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;El cadiz de Fuego - El pensadero&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-UVwucuLCJWc/TmL_4QNxcNI/AAAAAAAAAiE/VDuBY-FhKVQ/s1600/QuePrierdaFilo.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="466" src="http://4.bp.blogspot.com/-UVwucuLCJWc/TmL_4QNxcNI/AAAAAAAAAiE/VDuBY-FhKVQ/s640/QuePrierdaFilo.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;Harry Potter y la Piedra filosofal - Harry vrs Quirrell&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-dyMNnoOinHY/TmMAOpxet3I/AAAAAAAAAiI/QlVUNmCZrkM/s1600/Traladador.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="466" src="http://4.bp.blogspot.com/-dyMNnoOinHY/TmMAOpxet3I/AAAAAAAAAiI/QlVUNmCZrkM/s640/Traladador.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;El cadiz de Fuego&amp;nbsp;-&amp;nbsp;Traladador&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-yS3PTqHhnFQ/TmMAggIFNxI/AAAAAAAAAiM/m7NSyaheOgk/s1600/Stiksap.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="466" src="http://2.bp.blogspot.com/-yS3PTqHhnFQ/TmMAggIFNxI/AAAAAAAAAiM/m7NSyaheOgk/s640/Stiksap.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;El principe mestizo- Stiksap&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-45kpsSNtC8k/TmMA-RG0O6I/AAAAAAAAAiQ/xlolDK4r9VA/s1600/enlastresescobas.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="442" src="http://2.bp.blogspot.com/-45kpsSNtC8k/TmMA-RG0O6I/AAAAAAAAAiQ/xlolDK4r9VA/s640/enlastresescobas.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;Las tres escobas&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-HkB5uDMLIxw/TmMBNbbEKcI/AAAAAAAAAiU/4kmQsW8YsyA/s1600/elQuisquilloso.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="466" src="http://4.bp.blogspot.com/-HkB5uDMLIxw/TmMBNbbEKcI/AAAAAAAAAiU/4kmQsW8YsyA/s640/elQuisquilloso.jpg" width="640" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;El Quisquilloso&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-YCnx6IsRuVc/TmMBrE9ut1I/AAAAAAAAAic/rL0h1OkJjZc/s1600/LabrujaJorobada.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="640" src="http://1.bp.blogspot.com/-YCnx6IsRuVc/TmMBrE9ut1I/AAAAAAAAAic/rL0h1OkJjZc/s640/LabrujaJorobada.jpg" width="632" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;b&gt;El Prisionero de Azkaban&amp;nbsp;- La bruja Jorobada&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-TkpsbMZSIxg/TmMCBxEgtGI/AAAAAAAAAig/mwzjt6qTmW8/s1600/mapa1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://4.bp.blogspot.com/-TkpsbMZSIxg/TmMCBxEgtGI/AAAAAAAAAig/mwzjt6qTmW8/s640/mapa1.jpg" width="452" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif; font-size: large;"&gt;Que las disfruten,&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-w4t2Czw5uHA/TmMCKrrSZbI/AAAAAAAAAik/hdftAHvlfw8/s1600/dumbledorefirma.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-w4t2Czw5uHA/TmMCKrrSZbI/AAAAAAAAAik/hdftAHvlfw8/s1600/dumbledorefirma.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-2588126068469755445?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/2588126068469755445/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=2588126068469755445' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/2588126068469755445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/2588126068469755445'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/09/ilustraciones-de-harry-potter.html' title='Ilustraciones de Harry Potter'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-QwFnBxAoLIg/TmL5okp3flI/AAAAAAAAAhM/IcHEkG4zUZw/s72-c/Ara%25C2%25A7a.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-1362936585534892076</id><published>2011-09-03T15:21:00.000-06:00</published><updated>2011-09-09T23:37:09.124-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linq to generic List'/><category scheme='http://www.blogger.com/atom/ns#' term='linq'/><category scheme='http://www.blogger.com/atom/ns#' term='linq from sql'/><category scheme='http://www.blogger.com/atom/ns#' term='wcf'/><category scheme='http://www.blogger.com/atom/ns#' term='aspnet'/><title type='text'>WCF Service con Linq</title><content type='html'>&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Windows Communication Foundation o WCF, (también conocido como Indigo)&amp;nbsp;es la plataforma de .NET que nos permite el desarrollo de aplicaciones distribuidas, &lt;br /&gt;Fue creado con el fin de permitir una programación rápida de sistemas distribuidos y el desarrollo de aplicaciones basadas en arquitecturas orientadas a servicios (también conocido como SOA),&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Los wcf viene a reemplazar a los web service.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/aa738737.aspx"&gt;Comparación de los servicios web ASP.NET con el WCF basado en desarrollo&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;Ejemplo paso a paso.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;1.) Crear el proyecto, para eso,&lt;span style="color: red;"&gt; File - new web site&lt;/span&gt; y mostrara la siguiente ventana, elija un nombre y precione OK.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_DVwXCN8X3yE/S_mOS4Pwd7I/AAAAAAAAAJ4/qkEiSYJR-rI/s1600/image_6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" gu="true" height="411" src="http://3.bp.blogspot.com/_DVwXCN8X3yE/S_mOS4Pwd7I/AAAAAAAAAJ4/qkEiSYJR-rI/s640/image_6.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS';"&gt;2.) Agregar un Linq Classes, Add-&amp;gt;New Item,&amp;nbsp; elija el &amp;nbsp;LinqToSql Classes,mostrara la siguiente ventana, agregue el nombre de &lt;/span&gt;&lt;span style="font-family: 'Trebuchet MS';"&gt;Nortwind.dbml.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_DVwXCN8X3yE/S_mUH1o9YII/AAAAAAAAAKI/O3OydxsYuZ4/s1600/linq.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" gu="true" height="408" src="http://4.bp.blogspot.com/_DVwXCN8X3yE/S_mUH1o9YII/AAAAAAAAAKI/O3OydxsYuZ4/s640/linq.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS';"&gt;3.) Desde server Explorer Arrastren la tabla clientes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_DVwXCN8X3yE/S_mUgRodbZI/AAAAAAAAAKQ/zDvhZ_FZT9E/s1600/linq2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" gu="true" height="228" src="http://2.bp.blogspot.com/_DVwXCN8X3yE/S_mUgRodbZI/AAAAAAAAAKQ/zDvhZ_FZT9E/s640/linq2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS';"&gt;4.) Creación de&amp;nbsp;la interface, dirijase al ventana de&amp;nbsp;Solution explorer y habra el archivo &lt;span style="color: red;"&gt;IService.cs&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_DVwXCN8X3yE/S_mXCyqRRqI/AAAAAAAAAKY/bR6xK3XXETU/s1600/explorer.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" gu="true" height="400" src="http://4.bp.blogspot.com/_DVwXCN8X3yE/S_mXCyqRRqI/AAAAAAAAAKY/bR6xK3XXETU/s400/explorer.PNG" width="385" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS';"&gt;Abra el archivo y agregue el siguiente codigo dentro del dela &amp;nbsp;función&lt;br /&gt;&lt;span style="color: red;"&gt;public interface IService &lt;span style="color: black;"&gt;Ejemplo&lt;/span&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[OperationContract]&lt;br /&gt;&lt;pre&gt;List&lt;span style="color: blue;"&gt;&amp;lt;customer&amp;gt;&lt;/span&gt;GetCustomersCountry(&lt;span style="color: blue;"&gt;string&lt;/span&gt; Country);&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS';"&gt;5.) Implementación de la Internface, para eso abra el archivo Service.cs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS';"&gt;Acerque el mouse a la clase y coloquelo sobre el sobre Class IService y cuando aparesca el icono en forma de hoja&amp;nbsp; precione clic en Implement interface 'IService1' Ejemplo:&lt;/span&gt;public class Service : IService&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_DVwXCN8X3yE/S_maB7ZiKkI/AAAAAAAAAKg/UbWxQH8kOKE/s1600/implementando.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" gu="true" src="http://1.bp.blogspot.com/_DVwXCN8X3yE/S_maB7ZiKkI/AAAAAAAAAKg/UbWxQH8kOKE/s320/implementando.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS';"&gt;6.)&amp;nbsp; Ingresando codigo del Methodo, luego del paso 5 se habra agregado el siguiente codigo:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; List&lt;span class="Apple-style-span" style="color: blue;"&gt;&amp;lt;customer&amp;gt;&lt;/span&gt; GetCustomersCountry(&lt;span style="color: blue;"&gt;string&lt;/span&gt; Country)&lt;/span&gt;&lt;span class="Apple-style-span"&gt;{ &lt;br /&gt;&lt;br /&gt;NortwindDataContext db = &lt;span style="color: blue;"&gt;new&lt;/span&gt; NortwindDataContext(); &lt;br /&gt;var query = from cust &lt;span style="color: blue;"&gt;in&lt;/span&gt; db.Customers &lt;br /&gt;where cust.Country.StartsWith(Country) &lt;br /&gt;select cust; &lt;br /&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt; query.ToList(); &lt;br /&gt;   &lt;br /&gt;} &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;span style="color: red; font-family: 'Trebuchet MS', sans-serif;"&gt;Web Cliente - Para Utilizar el WCF&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #073763; font-family: 'Trebuchet MS', sans-serif;"&gt;1.- Hacemos clic derecho en la Solución y agregamos un nuevo proyecto Web Asp.Net.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #073763; font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #073763; font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;File - new web site&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #073763; font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-B4eadoubt9s/TmKudGLaezI/AAAAAAAAAg8/eUaRAXpjKpY/s1600/New+website.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="395" src="http://4.bp.blogspot.com/-B4eadoubt9s/TmKudGLaezI/AAAAAAAAAg8/eUaRAXpjKpY/s640/New+website.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: #073763; font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;span class="Apple-style-span" style="color: red;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #073763; font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: black;"&gt;2.- Ahora añadimos un Service Reference a nuestra aplicación Web haciendo clic derecho a nuestro proyecto, luego debido a que nuestro cliente está en una misma Solución, descubrimos si existe algún servicio en la solución y la agregamos dando clic en OK, hagámoslo como se muestra a continuación:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_DVwXCN8X3yE/S_mroYyszqI/AAAAAAAAAKo/hJikhRs4hzA/s1600/clip_image012_thumb%5B4%5D.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" gu="true" height="317" src="http://1.bp.blogspot.com/_DVwXCN8X3yE/S_mroYyszqI/AAAAAAAAAKo/hJikhRs4hzA/s400/clip_image012_thumb%5B4%5D.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;3.- Añadiremos una pagina para utilizar la referencia.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-7gK0-PrSVxw/TCfJp3nlLrI/AAAAAAAAAL0/K9jpooRoLs4/s1600/Capture8.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="408" src="http://2.bp.blogspot.com/-7gK0-PrSVxw/TCfJp3nlLrI/AAAAAAAAAL0/K9jpooRoLs4/s640/Capture8.PNG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;4.-&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;Agregaremos controles a la pagina&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-P9pmwNdfyn8/TmK4Tq2EXII/AAAAAAAAAhE/PA3fRvabhig/s1600/Captura.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-P9pmwNdfyn8/TmK4Tq2EXII/AAAAAAAAAhE/PA3fRvabhig/s1600/Captura.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Trebuchet MS', sans-serif;"&gt;5.- Por ultimo el código para llamar al wcf&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="color: blue;"&gt;protected&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; Button1_Click(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt;{ &lt;br /&gt;ServiceReference1.ServiceClient servicio = &lt;span style="color: blue;"&gt;new&lt;/span&gt; ServiceReference1.ServiceClient(); &lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"&gt; query = servicio.GetCustomersCountry(TextBox1.Text);&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;servicio.Close();&lt;br /&gt;&lt;pre&gt;&lt;span class="Apple-style-span"&gt;&lt;span style="color: blue;"&gt;var&lt;/span&gt; query1 = &lt;span style="color: blue;"&gt;from&lt;/span&gt; c &lt;span style="color: blue;"&gt;in&lt;/span&gt; query &lt;br /&gt;&lt;span style="color: blue;"&gt;select new&lt;/span&gt; &lt;br /&gt;{ &lt;br /&gt;c.CustomerID, &lt;br /&gt;c.CompanyName, &lt;br /&gt;c.Country, &lt;br /&gt;c.Phone, &lt;br /&gt;c.Fax &lt;br /&gt;}; &lt;br /&gt;&lt;br /&gt;GridView1.DataSource = query1; &lt;br /&gt;DataBind(); &lt;br /&gt;} &lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;a href="http://msdn.microsoft.com/es-es/library/ms733103(v=VS.90).aspx"&gt;Detalles de las características de WCF&lt;/a&gt;&lt;span style="color: red;"&gt;Nombre del Articulo Original:&lt;/span&gt;Using Linq To SQL With WCF Service&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-1362936585534892076?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/1362936585534892076/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=1362936585534892076' title='1 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1362936585534892076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1362936585534892076'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2010/05/wcf-service-con-linq.html' title='WCF Service con Linq'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_DVwXCN8X3yE/S_mOS4Pwd7I/AAAAAAAAAJ4/qkEiSYJR-rI/s72-c/image_6.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-1715988178209917592</id><published>2011-09-01T01:25:00.001-06:00</published><updated>2011-09-01T01:25:53.824-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server'/><category scheme='http://www.blogger.com/atom/ns#' term='seguridad'/><category scheme='http://www.blogger.com/atom/ns#' term='Encriptar'/><category scheme='http://www.blogger.com/atom/ns#' term='aspnet'/><title type='text'>Encriptar columna sql server con aspnet</title><content type='html'>Acá les proporciono un ejemplo de como crear una tabla de usuarios con el campo de Contraseña encriptado, luego veremos desde una pagina aspnet como podemos validar el usuario contra dicha tabla.&lt;br /&gt;&lt;br /&gt;1.) Crear el master key&lt;br /&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;/* Crea la &lt;span style="color: blue;"&gt;key&lt;/span&gt; master */&lt;/span&gt; &lt;br /&gt;&lt;span style="color: blue;"&gt;USE&lt;/span&gt; northwind &lt;br /&gt;GO &lt;br /&gt;&lt;span style="color: blue;"&gt;CREATE&lt;/span&gt; MASTER &lt;span style="color: blue;"&gt;KEY&lt;/span&gt; ENCRYPTION &lt;br /&gt;&lt;span style="color: blue;"&gt;BY&lt;/span&gt; PASSWORD = 'SQLAuthority' &lt;br /&gt;GO &lt;br /&gt;&lt;br /&gt;2.) Crear el certificado de encriptacion&lt;br /&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;/* Crea certificado de encriptacion */&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;CREATE&lt;/span&gt; CERTIFICATE EncryptTestCert &lt;br /&gt;&lt;span style="color: blue;"&gt;WITH&lt;/span&gt; SUBJECT = 'SQLAuthority' &lt;br /&gt;GO &lt;br /&gt;&lt;br /&gt;3.) Crea&amp;nbsp;la &amp;nbsp;Symmetric Key&lt;br /&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;/* Crea Symmetric Key */&lt;/span&gt; &lt;br /&gt;&lt;span style="color: blue;"&gt;CREATE&lt;/span&gt; SYMMETRIC &lt;span style="color: blue;"&gt;KEY&lt;/span&gt; TestTableKey &lt;br /&gt;&lt;span style="color: blue;"&gt;WITH&lt;/span&gt; ALGORITHM = TRIPLE_DES ENCRYPTION &lt;br /&gt;&lt;span style="color: blue;"&gt;BY&lt;/span&gt; CERTIFICATE EncryptTestCert &lt;br /&gt;GO &lt;br /&gt;&lt;br /&gt;4.) Crea la tabla&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;Create&lt;/span&gt; &lt;span style="color: blue;"&gt;Table&lt;/span&gt; Usuarios &lt;br /&gt;( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IdUsuario&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int &lt;span style="color: blue;"&gt;identity&lt;/span&gt;(1,1) &lt;span style="color: blue;"&gt;primary&lt;/span&gt; &lt;span style="color: blue;"&gt;key&lt;/span&gt;, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Usuario&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;varchar(50), &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Contrasena&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VARBINARY(256) &lt;br /&gt;) &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5.) Crea store procedure de ingrear usuarios&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;create&lt;/span&gt; &lt;span style="color: blue;"&gt;proc&lt;/span&gt; Ingresa_usuario &lt;br /&gt;( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Usuario&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;varchar(50), &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Contrasena&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;varchar(50) &lt;br /&gt;) &lt;br /&gt;&lt;span style="color: blue;"&gt;as&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;OPEN&lt;/span&gt; SYMMETRIC &lt;span style="color: blue;"&gt;KEY&lt;/span&gt; TestTableKey DECRYPTION &lt;br /&gt;&lt;span style="color: blue;"&gt;BY&lt;/span&gt; CERTIFICATE EncryptTestCert &lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;insert&lt;/span&gt; &lt;span style="color: blue;"&gt;into&lt;/span&gt; usuarios(Usuario,Contrasena) &lt;br /&gt;&lt;span style="color: blue;"&gt;values&lt;/span&gt;(@Usuario, ENCRYPTBYKEY(KEY_GUID('TestTableKey'),@Contrasena)) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;5.1) Ingresando usuarios a través del store procedure&lt;br /&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;/* Ingresando usuarios con el store procedure */&lt;/span&gt; &lt;br /&gt;&lt;span style="color: blue;"&gt;exec&lt;/span&gt; Ingresa_usuario 'usuario1','password' &lt;br /&gt;&lt;span style="color: blue;"&gt;exec&lt;/span&gt; Ingresa_usuario 'usuario2','P@ssw0rd' &lt;br /&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;/* muestra la columna encriptada */&lt;/span&gt; &lt;br /&gt;&lt;span style="color: blue;"&gt;select&lt;/span&gt; * &lt;span style="color: blue;"&gt;from&lt;/span&gt; usuarios&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-7qcJZmAkxeA/Tl8lHFJAETI/AAAAAAAAAgY/P39LwFtVkgQ/s1600/Captura%2Bde%2Bpantalla%2B2011-09-01%2Ba%2Bla%2528s%2529%2B00.22.13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="116" src="http://2.bp.blogspot.com/-7qcJZmAkxeA/Tl8lHFJAETI/AAAAAAAAAgY/P39LwFtVkgQ/s640/Captura%2Bde%2Bpantalla%2B2011-09-01%2Ba%2Bla%2528s%2529%2B00.22.13.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;/* verificando que las contraseñas estén correctamente almacenadas. */&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;OPEN&lt;/span&gt; SYMMETRIC &lt;span style="color: blue;"&gt;KEY&lt;/span&gt; TestTableKey DECRYPTION &lt;br /&gt;&lt;span style="color: blue;"&gt;BY&lt;/span&gt; CERTIFICATE EncryptTestCert &lt;br /&gt;&lt;span style="color: blue;"&gt;SELECT&lt;/span&gt; Usuario,&lt;span style="color: blue;"&gt;CONVERT&lt;/span&gt;(VARCHAR(50),DECRYPTBYKEY(Contrasena)) &lt;span style="color: blue;"&gt;AS&lt;/span&gt; Contrasena &lt;br /&gt;&lt;span style="color: blue;"&gt;FROM&lt;/span&gt; usuarios &lt;br /&gt;&lt;span style="color: blue;"&gt;insert&lt;/span&gt; &lt;span style="color: blue;"&gt;into&lt;/span&gt; usuarios(Usuario,Contrasena) &lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-44kUD4ulYYg/Tl8msSImxYI/AAAAAAAAAgk/r1nFJSAT7j4/s1600/Captura%2Bde%2Bpantalla%2B2011-09-01%2Ba%2Bla%2528s%2529%2B00.30.20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="116" src="http://1.bp.blogspot.com/-44kUD4ulYYg/Tl8msSImxYI/AAAAAAAAAgk/r1nFJSAT7j4/s640/Captura%2Bde%2Bpantalla%2B2011-09-01%2Ba%2Bla%2528s%2529%2B00.30.20.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6.) Crear store procedure de validar usuarios&lt;br /&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;create&lt;/span&gt; &lt;span style="color: blue;"&gt;proc&lt;/span&gt;&amp;nbsp;Valida_usuario &lt;br /&gt;( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Usuario&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;varchar(50), &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Contrasena&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;varchar(50) &lt;br /&gt;) &lt;br /&gt;&lt;span style="color: blue;"&gt;as&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;OPEN&lt;/span&gt; SYMMETRIC &lt;span style="color: blue;"&gt;KEY&lt;/span&gt; TestTableKey DECRYPTION &lt;br /&gt;&lt;span style="color: blue;"&gt;BY&lt;/span&gt; CERTIFICATE EncryptTestCert &lt;br /&gt;&lt;span style="color: blue;"&gt;SELECT&lt;/span&gt; count(*) as Contar&lt;br /&gt;&lt;span style="color: blue;"&gt;FROM&lt;/span&gt; usuarios&lt;br /&gt;&lt;span style="color: blue;"&gt;where&lt;/span&gt; Usuario=@Usuario &lt;br /&gt;&lt;span style="color: blue;"&gt;and&lt;/span&gt; &lt;span style="color: blue;"&gt;CONVERT&lt;/span&gt;(VARCHAR(50),DECRYPTBYKEY(Contrasena))=@Contrasena &lt;br /&gt;&lt;span style="color: blue;"&gt;CLOSE&lt;/span&gt; SYMMETRIC &lt;span style="color: blue;"&gt;KEY&lt;/span&gt; TestTableKey &lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;Ahora en Visual Studio .net crearemos la pagina de validación&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: large; line-height: 18px;"&gt;&lt;strong&gt;Creando pagina de login.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;7.) &amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;Agregue un pagina con el nombre de&amp;nbsp;Login.aspx (clic en el menu web site new ítem)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-nzh5JAZr1w0/TemxcYuzEVI/AAAAAAAAAUs/QEKiXr28c3Q/s1600/item.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="404" src="http://4.bp.blogspot.com/-nzh5JAZr1w0/TemxcYuzEVI/AAAAAAAAAUs/QEKiXr28c3Q/s640/item.PNG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;8.)&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&amp;nbsp;En la pagina agregue un control de login a la pagina desde el toolbox.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-eYeZJvh9DEc/TemyQqR9vnI/AAAAAAAAAUw/7p5zcQsjjeY/s1600/control.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-eYeZJvh9DEc/TemyQqR9vnI/AAAAAAAAAUw/7p5zcQsjjeY/s1600/control.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;8.1) Su pagina se mirara así:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-4A7SVgXn2yI/Tem1Kn1VU-I/AAAAAAAAAU4/xtwfYnLNfmk/s1600/login2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-4A7SVgXn2yI/Tem1Kn1VU-I/AAAAAAAAAU4/xtwfYnLNfmk/s1600/login2.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;8.2) Capture el evento Authenticate del control login1 y agregue el&amp;nbsp;código&amp;nbsp;de autenticación (precione doble clic sobre el control para generar el evento) este evento tendrá el código de autenticar.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt;&lt;span style="color: blue;"&gt;protected&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt; &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt;&lt;span style="color: blue;"&gt;void&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt; Login1_Authenticate(&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt;&lt;span style="color: blue;"&gt;object&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; white-space: pre;"&gt; sender, AuthenticateEventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;{ &lt;br /&gt;&lt;br /&gt;}&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; white-space: normal;"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; white-space: normal;"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Validando con Linq to SQL Classes&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;9) Agregue un contexto &amp;nbsp;haciendo click derecho sobre su proyecto, luego presioné "add item" y luego busque Linq to SQL Classes, agregue un nombre y luego add.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-a-nnKEh2Nb0/S_mUH1o9YII/AAAAAAAAAKI/B-ikPCDTBeU/s1600/linq.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="255" src="http://3.bp.blogspot.com/-a-nnKEh2Nb0/S_mUH1o9YII/AAAAAAAAAKI/B-ikPCDTBeU/s400/linq.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;10) Habra su contexto y desde el server explorer arrastre los store procederes realizados en los pasos anteriores( paso 6 y 5), esto crea automáticamente 2 funciones que hacen referencia a los store procedure.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-8PW-5wmsZIo/Tl8t3SflPsI/AAAAAAAAAgw/sDFpvc0wX_c/s1600/Captura+de+pantalla+2011-09-01+a+la%2528s%2529+01.01.25.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="252" src="http://3.bp.blogspot.com/-8PW-5wmsZIo/Tl8t3SflPsI/AAAAAAAAAgw/sDFpvc0wX_c/s320/Captura+de+pantalla+2011-09-01+a+la%2528s%2529+01.01.25.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;11) Validando usuarios en el evento Authenticate del paso 8.2:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;span style="color: blue;"&gt;protected&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; Login1_Authenticate(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, AuthenticateEventArgs e)&lt;br /&gt;    { &lt;br /&gt;        DataClassesDataContext db = &lt;span style="color: blue;"&gt;new&lt;/span&gt; DataClassesDataContext();&lt;br /&gt;&lt;br /&gt;        var query = db.Valida_usuario(Login1.UserName, Login1.Password).Single(); &lt;br /&gt;&lt;br /&gt;        &lt;span style="color: blue;"&gt;if&lt;/span&gt; (query.contar &amp;gt; &lt;span style="color: maroon;"&gt;0&lt;/span&gt;)&lt;br /&gt;        { &lt;br /&gt;            &lt;span style="color: green;"&gt;//password correcto&lt;/span&gt; &lt;br /&gt;            System.Web.Security.FormsAuthentication.SetAuthCookie(Login1.UserName, &lt;span style="color: maroon;"&gt;false&lt;/span&gt;);&lt;br /&gt;            Response.Redirect(&lt;span style="color: maroon;"&gt;"Default.aspx"&lt;/span&gt;); &lt;br /&gt;        } &lt;br /&gt;        &lt;span style="color: blue;"&gt;else&lt;/span&gt; &lt;br /&gt;        { &lt;br /&gt;            &lt;span style="color: green;"&gt;//password incorrecto&lt;/span&gt; &lt;br /&gt;            Login1.FailureText = &lt;span style="color: maroon;"&gt;"Usuario o password incorrecto"&lt;/span&gt;; &lt;br /&gt;        } &lt;br /&gt;&lt;br /&gt;    }&lt;/pre&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;12.) Creando usuarios ( pendiente de terminar)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-1715988178209917592?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1715988178209917592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1715988178209917592'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/09/encriptar-columna-sql-server-con-aspnet.html' title='Encriptar columna sql server con aspnet'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-7qcJZmAkxeA/Tl8lHFJAETI/AAAAAAAAAgY/P39LwFtVkgQ/s72-c/Captura%2Bde%2Bpantalla%2B2011-09-01%2Ba%2Bla%2528s%2529%2B00.22.13.png' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-1474408276205023552</id><published>2011-08-27T01:29:00.001-06:00</published><updated>2011-08-27T01:36:03.081-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ajax'/><title type='text'>Ajax Control Toolkit TabContainer</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: left;"&gt;Ejemplo de código de Ajax Control:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-q0p8rQ5-BBo/TlidM7vF5PI/AAAAAAAAAf0/qYEf9cihfgE/s1600/Captura+de+pantalla+2011-08-27+a+la%2528s%2529+01.30.01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="141" src="http://4.bp.blogspot.com/-q0p8rQ5-BBo/TlidM7vF5PI/AAAAAAAAAf0/qYEf9cihfgE/s640/Captura+de+pantalla+2011-08-27+a+la%2528s%2529+01.30.01.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-1M-L1NtpnxU/Tlib5s-UmjI/AAAAAAAAAfs/Od9RaWGWVOI/s1600/Captura+de+pantalla+2011-08-27+a+la%2528s%2529+01.24.58.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-1M-L1NtpnxU/Tlib5s-UmjI/AAAAAAAAAfs/Od9RaWGWVOI/s1600/Captura+de+pantalla+2011-08-27+a+la%2528s%2529+01.24.58.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Si no han usando los Ajax control Toolkit, los pueden bajar de &lt;a href="http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/"&gt;aquí&lt;/a&gt;.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Ejemplo Completo:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;lt;asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"&amp;gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:ToolkitScriptManager&amp;gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1"&amp;gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TabPanel runat="server" HeaderText="Clientes" ID="TabPanel1"&amp;gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ContentTemplate&amp;gt; &amp;nbsp;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /&amp;gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:GridView ID="GridView1" runat="server"&amp;gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:GridView&amp;gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/ContentTemplate&amp;gt; &amp;nbsp;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:TabPanel&amp;gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Productos"&amp;gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ContentTemplate&amp;gt; &amp;nbsp;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Ejemplo&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ContentTemplate&amp;gt; &amp;nbsp;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:TabPanel&amp;gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/asp:TabContainer&amp;gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-1474408276205023552?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/1474408276205023552/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=1474408276205023552' title='2 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1474408276205023552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1474408276205023552'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/08/ajax-control-toolkit-tabcontainer.html' title='Ajax Control Toolkit TabContainer'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-q0p8rQ5-BBo/TlidM7vF5PI/AAAAAAAAAf0/qYEf9cihfgE/s72-c/Captura+de+pantalla+2011-08-27+a+la%2528s%2529+01.30.01.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-7779637936780881195</id><published>2011-08-27T00:27:00.001-06:00</published><updated>2011-08-27T00:29:25.683-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='aspnet'/><title type='text'>Cache con linq aspnet</title><content type='html'>&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;El objeto Cache puede servir para optimizar una Aplicacion Web, antes de desplegar información.&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Esto puede funcionar para información de no cambia continuamente, ejemplo:&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-wFcJJ6RmCqU/TliOnyYJ0SI/AAAAAAAAAbU/D3Y5-WlXzuk/s1600/Captura+de+pantalla+2011-08-27+a+la%2528s%2529+00.28.19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-wFcJJ6RmCqU/TliOnyYJ0SI/AAAAAAAAAbU/D3Y5-WlXzuk/s1600/Captura+de+pantalla+2011-08-27+a+la%2528s%2529+00.28.19.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;Código:&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;nortwindDataContext nw = new nortwindDataContext();&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; object cacheObj = Cache["consulta"];&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var query = cacheObj as List&lt;customer&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/customer&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (cacheObj == null)&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; query = (from c in nw.Customers&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; select c).ToList();&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cache.Insert("consulta", query, null, System.Web.Caching.Cache.NoAbsoluteExpiration,&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TimeSpan.FromHours(4));&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GridView1.DataSource = query;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DataBind();&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-7779637936780881195?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/7779637936780881195/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=7779637936780881195' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/7779637936780881195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/7779637936780881195'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/08/cache-con-linq-aspnet.html' title='Cache con linq aspnet'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-wFcJJ6RmCqU/TliOnyYJ0SI/AAAAAAAAAbU/D3Y5-WlXzuk/s72-c/Captura+de+pantalla+2011-08-27+a+la%2528s%2529+00.28.19.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-7535210117077277892</id><published>2011-08-14T15:29:00.000-06:00</published><updated>2011-08-14T15:29:49.924-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Evitar Sql Injection php</title><content type='html'>&lt;br /&gt;&lt;br /&gt;Crear función:&lt;br /&gt;&lt;br /&gt;function mysql_fix_string($string)&lt;br /&gt;{&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;if(get_magic_quotes_gpc())&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;		&lt;/span&gt;$string = stripslashes($string);&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;	&lt;/span&gt;return mysql_real_escape_string($string);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Utilizar función:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$usuario= mysql_fix_string($_POST[usuario]);&lt;br /&gt;$pasword= mysql_fix_string($_POST[password]);&lt;br /&gt;&lt;br /&gt;Otra opción con parámetros:&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;				&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;PREPARE statement FROM "INSERT INTO usuarios VALUES(?,?)";&lt;br /&gt;&lt;br /&gt;SET @usuario ="test",&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@password="123";&lt;br /&gt;&lt;br /&gt;EXECUTE statement USING @usuario,@password;&lt;br /&gt;&lt;br /&gt;DEALLOCATE PREPARE statement;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-7535210117077277892?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/7535210117077277892/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=7535210117077277892' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/7535210117077277892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/7535210117077277892'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/08/evitar-sql-injection-php.html' title='Evitar Sql Injection php'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-4587811700464875591</id><published>2011-08-07T02:43:00.002-06:00</published><updated>2011-08-07T02:46:32.954-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Encryptar contraseñas en MySQL y php</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Programados que se respeta no deja la contraseña visible en un campo en la base de datos.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Ejemplo de la tabla&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;CREATE TABLE Usuarios (&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; usuario varchar(20) NOT NULL,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; contrasena varchar(40) NOT NULL&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Como encriptamos el campo contrasena, podemos hacerlos con sha1 o md5 los campos debe de ser de cierta logintud:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;sha1: &amp;nbsp;40 caracteres&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;MD5 : 32 caracteres&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;Cual es el seguro ?&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;Facil sha es mas seguro MD5 ya que calcula el cheksum SHA es de 160 bits de una cadena, mientras que MD5 la calcula de 128. Sin embargo&amp;nbsp;MD5 puede ser vulnerado, la práctica es tan compleja que no merece la pena el esfuerzo.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Ejemplos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;INSERT INTO usuarios VALUES('usuario',sha1('contraseña'));&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;INSERT INTO usuarios VALUES('usuario',MD5('contraseña'));&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;select coun(*)&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;from&amp;nbsp;usuarios&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;where&amp;nbsp;usuario=sha1('contraseña')&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Ejemplo php:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;$conexion = mysql_connect("localhost", "root", "123");&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;mysql_select_db("sysdb", $conexion);&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;$sql="INSERT INTO Usuarios (usuario,contrasena,)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;VALUES('$_POST[usuario]', sha1('$_POST[password]'))";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font: 12.0px Helvetica; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-size: small;"&gt;mysql_query($sql)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-4587811700464875591?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/4587811700464875591/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=4587811700464875591' title='1 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/4587811700464875591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/4587811700464875591'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/08/encryptar-contrasenas-en-mysql-y-php.html' title='Encryptar contraseñas en MySQL y php'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-8290653709417344731</id><published>2011-08-05T20:53:00.001-06:00</published><updated>2011-08-05T20:56:46.284-06:00</updated><title type='text'>root en Mac OS X</title><content type='html'>Como todo sistema UNIX, Mac OS X también cuenta con una cuenta root y activarla es bastante sencillo, tan sólo tenemos que ejecutar en la terminal el siguiente comando:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;sudo passwd root&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Luego pedirá repetir el password del usuario conectado, y el paso siguiente será colocar el nuevo password de root.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-8290653709417344731?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/8290653709417344731/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=8290653709417344731' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/8290653709417344731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/8290653709417344731'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/08/root-en-mac-os-x.html' title='root en Mac OS X'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-2503868570732615535</id><published>2011-08-03T16:47:00.000-06:00</published><updated>2011-08-03T16:47:06.545-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='access'/><title type='text'>Agregar Administrador del Panel de control Access 2010</title><content type='html'>Pasos:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1.)&amp;nbsp; Menu archivo&lt;br /&gt;2.) Opciones&lt;br /&gt;3.) Personalizar cinta de opciones&lt;br /&gt;4.) Elegir todos los comando en el combo de comandos disponibles&lt;br /&gt;4.1) Administrador de panel de control&lt;br /&gt;4.2) Nueva ficha, coloque un nombre&lt;br /&gt;4.3) Agregar lo elegido en paso 4.1&lt;br /&gt;5.) Aceptar, salir e ingrese nuevo.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-2503868570732615535?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/2503868570732615535/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=2503868570732615535' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/2503868570732615535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/2503868570732615535'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/08/agregar-administrador-del-panel-de.html' title='Agregar Administrador del Panel de control Access 2010'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-7488177271953056578</id><published>2011-07-28T23:22:00.000-06:00</published><updated>2011-07-28T23:22:15.120-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interesante'/><title type='text'>Me gustan los pitufos ( miren que pitufina)</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-GOGn7ZvA4XU/TjI6LiLyREI/AAAAAAAAAYc/Wra_e4zx8fo/s1600/0725-katy-perry-smurfs-08.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="640" src="http://1.bp.blogspot.com/-GOGn7ZvA4XU/TjI6LiLyREI/AAAAAAAAAYc/Wra_e4zx8fo/s640/0725-katy-perry-smurfs-08.jpg" width="426" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-aUgs2JUqVbM/TjI68iyQmjI/AAAAAAAAAYg/KTs0KAxP2SE/s1600/0725-katy-perry-smurfs-10.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-aUgs2JUqVbM/TjI68iyQmjI/AAAAAAAAAYg/KTs0KAxP2SE/s1600/0725-katy-perry-smurfs-10.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-MrkUqaj_UCU/TjI7VX2q8lI/AAAAAAAAAYk/M5JFkcFxUhY/s1600/072411SMU_KPerry738702_LR1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-MrkUqaj_UCU/TjI7VX2q8lI/AAAAAAAAAYk/M5JFkcFxUhY/s1600/072411SMU_KPerry738702_LR1.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-1adFuKsJIwg/TjI7gcjIePI/AAAAAAAAAYo/gd3c0zITguw/s1600/Katy-Perry-pitufina-6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-1adFuKsJIwg/TjI7gcjIePI/AAAAAAAAAYo/gd3c0zITguw/s1600/Katy-Perry-pitufina-6.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-pUrfeEg0kdc/TjI_wn8U5lI/AAAAAAAAAYs/VlE5CtdzBz4/s1600/Katy-Perry-pitufina-8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-pUrfeEg0kdc/TjI_wn8U5lI/AAAAAAAAAYs/VlE5CtdzBz4/s1600/Katy-Perry-pitufina-8.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Aej8BhiF-40/TjJBW3-mhEI/AAAAAAAAAYw/EtYgL-rOKag/s1600/katy-perry-smurfs-22.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-Aej8BhiF-40/TjJBW3-mhEI/AAAAAAAAAYw/EtYgL-rOKag/s1600/katy-perry-smurfs-22.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-P2qD_YnmYcU/TjJCF2iee6I/AAAAAAAAAY0/kGul1VTFzCM/s1600/katy-perry-smurfs-19.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-P2qD_YnmYcU/TjJCF2iee6I/AAAAAAAAAY0/kGul1VTFzCM/s1600/katy-perry-smurfs-19.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-ZJkdq19bj08/TjJCkZeh2pI/AAAAAAAAAY4/OT7FCIT8xXg/s1600/katy-perry-smurfette-dress-at-smurfs-premiere-11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-ZJkdq19bj08/TjJCkZeh2pI/AAAAAAAAAY4/OT7FCIT8xXg/s1600/katy-perry-smurfette-dress-at-smurfs-premiere-11.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Q5SvL_3mPBE/TjJC0OykKkI/AAAAAAAAAY8/Bg8bcceX4-s/s1600/katy-perry-smurfette-dress-at-smurfs-premiere-01_large.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-Q5SvL_3mPBE/TjJC0OykKkI/AAAAAAAAAY8/Bg8bcceX4-s/s1600/katy-perry-smurfette-dress-at-smurfs-premiere-01_large.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-RLsUx6hpNE4/TjJDEqYq1-I/AAAAAAAAAZA/gf3lHeg7oT4/s1600/Katy-Perry-pitufina-16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-RLsUx6hpNE4/TjJDEqYq1-I/AAAAAAAAAZA/gf3lHeg7oT4/s1600/Katy-Perry-pitufina-16.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-7488177271953056578?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/7488177271953056578/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=7488177271953056578' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/7488177271953056578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/7488177271953056578'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/me-gustan-los-pitufos-miren-que.html' title='Me gustan los pitufos ( miren que pitufina)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-GOGn7ZvA4XU/TjI6LiLyREI/AAAAAAAAAYc/Wra_e4zx8fo/s72-c/0725-katy-perry-smurfs-08.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-5688612335503092648</id><published>2011-07-27T01:01:00.000-06:00</published><updated>2011-07-27T01:03:09.328-06:00</updated><title type='text'>Moralejas ( Chistes)</title><content type='html'> &lt;span style="font-size: 16pt;"&gt;&lt;/span&gt;&lt;span style="font-size: 18pt;"&gt;&lt;strong&gt;1) CUANDO SU EMPLEADO SE ENFERME, DELE EL DIA LIBRE! &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Kung Chang llamó a su jefe y le  dijo: &lt;br /&gt;&lt;br /&gt;- 'Jefe, hoy yo no tlabajal, yo estal enfelmo. Duele  cabeza, duele panza, duele pielna, no voy tlabajo'. &lt;br /&gt;&lt;br /&gt;El Jefe le responde: &lt;br /&gt;- 'Kung Chang, realmente hoy te necesito en el trabajo.  Cuando me siento así de mal, le pido a mi esposa que tengamos sexo. Eso me hace sentir mucho mejor y puedo ir a trabajar. Deberías probar, te hará muy bien'. &lt;br /&gt;&lt;br /&gt;Dos horas después, Kung Chang vuelve a llamar a su Jefe  y le dice: &lt;br /&gt;&lt;br /&gt;- '¡Jefe, no sabel qué decil! Glacias pol consejo, ya  sentilme mucho mejol, enseguida yo il tlabajo. Felicito mucho, muy linda su casa, muy glande su cualto y muy buena su esposa'. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 13pt;"&gt;&lt;em&gt;&lt;strong&gt;Moraleja administrativa: &lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(173,0,0);"&gt;&lt;strong&gt;'La comunicación debe ser clara.  Sea explícito cuando hable con sus colaboradores'. &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="font-size: 13pt; color: rgb(25,54,109);"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-size: 16pt;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 18pt;"&gt;&lt;strong&gt;2) RESPETAR LAS OPINIONES &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Un hombre estaba poniendo flores en la tumba de un  pariente, cuando ve a un chino poniendo un plato de arroz en la tumba vecina. El hombre se dirige al chino, y le  pregunta: &lt;br /&gt;&lt;br /&gt;-  'Disculpe señor, pero ¿cree usted que de verdad el difunto se comerá el arroz? &lt;br /&gt;-  'Si', respondió el chino... 'Cuando el suyo venga a oler sus FLORES.'&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 13pt;"&gt;&lt;em&gt;&lt;strong&gt;MORALEJA: &lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(173,0,0);"&gt;&lt;strong&gt;Respetar las opciones del otro,  es una de las mayores virtudes que un ser humano puede tener. Las personas  son diferentes, actúan diferente y piensan diferente. No  juzgue............. COMPRENDA.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="font-size: 13pt; color: rgb(25,54,109);"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-size: 16pt;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 18pt;"&gt;&lt;strong&gt;3) HISTORIA DE DOS AMIGAS &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dos amigas salieron solas, sin sus maridos. De regreso en la madrugada, agotadas por la borrachera, les dieron ganas de  hacer pis, pero &lt;br /&gt;lo único que había cerca era un cementerio. Decidieron bajarse y hacerlo... La primera no encontró con que secarse, así que se limpió con &lt;br /&gt;su ropa interior y la tiró. La segunda tampoco encontró con qué, así que agarró la cinta  de una corona de flores perteneciente a un reciente funeral y se limpió con ella.. &lt;br /&gt;&lt;br /&gt;A la mañana siguiente los maridos se llaman y uno le dice al otro: !!... esto ya es el colmo!, estoy hasta los huevos de las salidas &lt;br /&gt;de éstas dos. Esto es ha acabado, imagínate..... llegar sin bragas a casa a las 4:00 de la mañana. &lt;br /&gt;&lt;br /&gt;Y el otro le contesta: Tienes suerte, y no se de qué te quejas!!! Por lo menos la tuya llegó sin bragas. Mi mujer llegó con una cinta en el culo que decía:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'Nunca te olvidaremos. Con cariño: tus compañeros de  trabajo'.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 13pt;"&gt;&lt;em&gt;&lt;strong&gt;MORALEJA: &lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 19pt; color: rgb(173,0,0);"&gt;&lt;strong&gt;No saque conclusiones sin preguntar, pregunte, siempre pregunte antes.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style="font-size: 13pt; color: rgb(25,54,109);"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 18pt;"&gt;&lt;strong&gt;4) AMOR DE LEJOS... &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Un soldado español destinado en Irak recibe una carta de su novia desde Madrid. La carta decía lo siguiente: &lt;br /&gt;&lt;br /&gt;'Querido Alberto. &lt;br /&gt;&lt;br /&gt;Ya no puedo continuar con esta relación. La distancia que nos separa es demasiado grande. Tengo que admitir que te he sido infiel dos veces desde que te fuiste y creo que ni tu ni yo nos merecemos esto, lo siento. &lt;br /&gt;&lt;br /&gt;Por favor devuélveme la foto que te envié. &lt;br /&gt;Con amor. Sofía.' &lt;br /&gt;&lt;br /&gt;El soldado, muy herido, le pidió a todos sus compañeros que le regalaran fotos de sus novias, hermanas, amigas, tías, primas, etc. &lt;br /&gt;Junto con la foto de Sofía incluyó todas esas otras fotos que había recolectado de sus amigos. &lt;br /&gt;&lt;br /&gt;Había 57 fotos en el sobre y una nota que decía : &lt;br /&gt;&lt;br /&gt;'Querida Sofía. &lt;br /&gt;Perdóname, pero no puedo recordar quién coño eres. Por favor, busca tu foto en el paquete y me devuelves el resto.'&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 13pt;"&gt;&lt;em&gt;&lt;strong&gt;MORALEJA: &lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(173,0,0);"&gt;&lt;strong&gt;Aún derrotado... hay que SABER JODER AL ENEMIGO&lt;/strong&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-5688612335503092648?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/5688612335503092648/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=5688612335503092648' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/5688612335503092648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/5688612335503092648'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/moralejas-chistes.html' title='Moralejas ( Chistes)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-2746681936369700510</id><published>2011-07-26T23:59:00.000-06:00</published><updated>2011-07-27T00:16:09.072-06:00</updated><title type='text'>Validar Correo en php</title><content type='html'>&lt;span style="font-size: 12pt;"&gt;Como validar un correo del lado del servidor???&lt;br /&gt;&lt;br /&gt;Para que sirve eso dirán, voy a usar un dhtml o java script pero es una buena practica también validar del lado del servidor por si tienen des habilidad o esto en el navegador.&lt;br /&gt;&lt;br /&gt;Os dejo el código.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&amp;lt;?php&lt;br /&gt;&lt;br /&gt;// validate a phone number&lt;br /&gt;if( !preg_match("/^([1]-)?[0-9]{3}-[0-9]{3}-[0-9]{4}$/i", $phone) ) {&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;echo 'Please enter a valid phone number';&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// validate an email address&lt;br /&gt;if( !preg_match("/^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$/i", $email) ) {&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;echo 'You have entered and invalid email address';&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(38,38,38);"&gt;&amp;lt;?php &lt;br /&gt; if (is_numeric (887)) &lt;br /&gt; {&lt;br /&gt; echo "Yes";&lt;br /&gt; } else {&lt;br /&gt; echo "No";&lt;br /&gt; }&lt;br /&gt; ?&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-2746681936369700510?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/2746681936369700510/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=2746681936369700510' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/2746681936369700510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/2746681936369700510'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/validar-correo-en-php.html' title='Validar Correo en php'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-93027787934114623</id><published>2011-07-23T17:26:00.000-06:00</published><updated>2011-07-23T17:26:58.000-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>Formateo de SQL (Oracle, SQL Server, Mysql)</title><content type='html'>Nunca les ha ocurrido que tiene que ver el código de alguien y ademas que no hemos visto nunca esta des ordenado, pues hay una solucion sencilla esta pagina les proporciona esa funcionalidad entre otras, como por ejemplo porde pasar el ciego c# a SQL o al contrario.&lt;br /&gt;&lt;br /&gt;Les dejo la pagina:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dpriver.com/pp/sqlformat.htm"&gt;http://www.dpriver.com/pp/sqlformat.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-93027787934114623?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/93027787934114623/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=93027787934114623' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/93027787934114623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/93027787934114623'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/formateo-de-sql-oracle-sql-server-mysql.html' title='Formateo de SQL (Oracle, SQL Server, Mysql)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-4376509630142906570</id><published>2011-07-22T23:49:00.000-06:00</published><updated>2011-07-22T23:49:51.482-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='aspnet'/><title type='text'>Debug en Aspnet</title><content type='html'>&lt;span class="sentence" id="xn10_c420ded348bc05456f965de68de57f61"&gt;ASP.NET es la principal tecnología que se usa para desarrollar aplicaciones web en Visual Studio.&lt;/span&gt;  &lt;span class="sentence" id="xn11_d880dcf8a0b6933c686e041ab9fcc938"&gt;El  depurador de Visual Studio proporciona herramientas muy eficaces para  depurar aplicaciones web ASP.NET localmente o en un servidor remoto.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="sentence" id="xn11_d880dcf8a0b6933c686e041ab9fcc938"&gt;Antes de iniciar debe hacer referencia al name space:&lt;/span&gt;&lt;br /&gt;&lt;span class="sentence" id="xn11_d880dcf8a0b6933c686e041ab9fcc938"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="sentence" id="xn11_d880dcf8a0b6933c686e041ab9fcc938"&gt;&lt;b&gt;using System.Diagnostics;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;&lt;i&gt;Escribir Debug en codigo&lt;/i&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i = 10;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Vacía el búfer de resultados y hace que los datos almacenados en el búfer se escriban .&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.AutoFlush =true; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Indent(); //Aumenta en uno el valor actual de la propiedad IndentLevel.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.WriteLine("Iniciando Debug");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.WriteLine("Valor de variable: ");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Write(i); // &lt;span&gt;&lt;span class="sentence" id="xn19_e939c3a7049376364c68eff5f33bc39a"&gt;Escribe el valor del método &lt;span&gt;ToString&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Unindent();&amp;nbsp; //Disminuye en uno el valor actual de la propiedad IndentLevel.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.WriteIf(i &amp;lt; 20, "Si esta i"); &amp;nbsp;&amp;nbsp;&amp;nbsp; //Escribe un mensaje en los agentes de escucha de seguimiento de la colección de Listeners si una condición es true. &lt;br /&gt;&lt;span class="sentence" id="xn11_d880dcf8a0b6933c686e041ab9fcc938"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;&lt;i&gt;Leer Debug&amp;nbsp;&lt;/i&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;Para ver el resultado de dicho debug debera revisar la ventana de output.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Menu:&lt;br /&gt;Debug, windows, Output&lt;br /&gt;&lt;br /&gt;Nota:&lt;br /&gt;El resultado lo pude ver en tiempo de ejecucion colocando un break point en la linea que debea analizar.&lt;br /&gt;&lt;br /&gt;Mas informacion:&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/es-ar/library/system.diagnostics.debug.aspx"&gt;http://msdn.microsoft.com/es-ar/library/system.diagnostics.debug.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-4376509630142906570?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/4376509630142906570/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=4376509630142906570' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/4376509630142906570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/4376509630142906570'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/debug-en-aspnet.html' title='Debug en Aspnet'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-6944905220157224411</id><published>2011-07-22T23:24:00.000-06:00</published><updated>2011-07-22T23:24:35.211-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='aspnet'/><title type='text'>Tracing en  ASP.NET Page</title><content type='html'>&lt;u&gt;&lt;i&gt;&lt;b&gt;Habilitar Tracing&lt;/b&gt;&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;1.) En la pagina puede agregar: &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;b&gt;&amp;lt;%@ Page Trace="true" %&amp;gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;Opcionalmente se puede agregar: TraceMode &lt;/pre&gt;&lt;pre&gt;&lt;b&gt;&amp;lt;%@ Page Language="VB" Trace="True" TraceMode="SortByCategory" %&amp;gt; &lt;/b&gt;&lt;/pre&gt;&lt;br /&gt;2.) Programaticamente con la linea:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Trace.IsEnabled = true;&lt;br /&gt;&lt;br /&gt;3.) Para un site tiene que editar el archivo&amp;nbsp;&amp;nbsp; Web.config&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt; configuration &amp;gt;&lt;br /&gt;  &amp;lt; system.web &amp;gt;&lt;br /&gt;    &amp;lt; trace enabled="true" pageOutput="false" requestLimit="40" localOnly="false"/ &amp;gt;&lt;br /&gt;  &amp;lt; /system.web &amp;gt;&lt;br /&gt;&amp;lt; /configuration &amp;gt;&lt;/pre&gt;&amp;nbsp; &lt;br /&gt;&lt;u&gt;&lt;b&gt;&lt;i&gt;Escribir Tracing&lt;/i&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Trace.Warn(&lt;span style="color: #a31515;"&gt;"Categoria"&lt;/span&gt;, &lt;span style="color: #a31515;"&gt;"Mensaje de pantalla"&lt;/span&gt;, ae)&lt;/pre&gt;&lt;pre&gt;Trace.Write(&lt;span style="color: #a31515;"&gt;"&lt;/span&gt;&lt;span style="color: #a31515;"&gt;Categoria&lt;/span&gt;&lt;span style="color: #a31515;"&gt;"&lt;/span&gt;, &lt;span style="color: #a31515;"&gt;"Mensaje de pantalla"&lt;/span&gt;, ioe) &lt;/pre&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;&lt;i&gt;Leer Tracing&lt;/i&gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;Para leer el tracing debe entrar a la pagina  Trace.axd&amp;nbsp; en su sitio:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;http://localhost/SampleApplication/trace.axd&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;i&gt;&lt;b&gt;Tabla configuracion:&lt;/b&gt;&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;enabled&lt;/b&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;true para habilitar el seguimiento para a aplicación; de lo contrario, false. El valor predeterminado es false. Puede reemplazar esta configuración para las páginas individuales estableciendo el atributo Trace en la directiva @ Page de esas páginas en true o false.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;pageOutput&lt;/b&gt;&amp;nbsp; &lt;br /&gt;true para mostrar el seguimiento tanto en páginas como en el visor de seguimiento (Trace.axd); de lo contrario, false. El valor predeterminado es false.&lt;br /&gt;NoteNota&lt;br /&gt;&lt;br /&gt;Las páginas individuales con el seguimiento habilitado no se ven afectadas por esta configuración.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;RequestLimit&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Número de solicitudes de seguimiento que se almacenan en el servidor. El valor predeterminado es 10.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;traceMode&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Orden en que se muestra la información de seguimiento. Establezca en SortByTime para ordenar en el orden en el que se procesó la información. Establezca en SortByCategory para ordenar alfabéticamente por categorías definidas por el usuario. El valor predeterminado es SortByTime.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;localOnly&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;true para hacer que el visor de seguimiento (Trace.axd) esté disponible sólo para el servidor Web de host; de lo contrario, false. El valor predeterminado es true.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;mostRecent&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;true para mostrar la información de seguimiento más reciente como resultado del seguimiento; de lo contrario, false, que indica que una vez superado el valor requestLimit, no se almacenan nuevas solicitudes. El valor predeterminado es false.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-6944905220157224411?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/6944905220157224411/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=6944905220157224411' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/6944905220157224411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/6944905220157224411'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/tracing-en-aspnet-page.html' title='Tracing en  ASP.NET Page'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-1874288232349300161</id><published>2011-07-20T23:43:00.000-06:00</published><updated>2011-07-20T23:50:50.892-06:00</updated><title type='text'>OS X Lion ( El sistema operativo mas avanzado del mundo)</title><content type='html'>Hoy liberaron el sistema Operativo mas avanzado del mundo.&lt;br /&gt;&lt;br /&gt;Es una gran noticia para todos los mac fan boys.&lt;br /&gt;&lt;br /&gt;Que tiene de espectacular se preguntaran? Cualquier cosa que les pueda decir esta en: &lt;a href="http://www.apple.com/macosx/"&gt;http://www.apple.com/macosx/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ahora en mi humilde punto de vista se parece a la ipad en muchos aspectos, por ejemplo:&lt;br /&gt;&lt;br /&gt;&lt;ul style="list-style-type: disc"&gt;&lt;li&gt;El Lauchpad que es la forma de ver las aplicaciones instaladas funciona exactamente como la ipad&lt;/li&gt;&lt;li&gt;La forma de navegar con el scroll funciona igual ipad ( Arriba baja, abajo sube)&lt;/li&gt;&lt;li&gt;Full screen con Mail es  el del ipad.&lt;/li&gt;&lt;/ul&gt;En fin creo que el concepto de &lt;strong&gt;back to the mac. &lt;/strong&gt;Es 100% real.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-1874288232349300161?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/1874288232349300161/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=1874288232349300161' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1874288232349300161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1874288232349300161'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/os-x-lion-el-sistema-operativo-mas.html' title='OS X Lion ( El sistema operativo mas avanzado del mundo)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-249924789109249561</id><published>2011-07-18T22:10:00.000-06:00</published><updated>2011-07-18T22:10:52.790-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL server'/><title type='text'>Rank de datos agrupados (ROW_NUMBER(), DENSE_RANK() , NTILE)</title><content type='html'>Ejemplos con nortwind.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;ROW_NUMBER()&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;Devuelve el número secuencial de una fila de una partición de un  conjunto de resultados, comenzando con 1 para la primera fila de cada  partición.&lt;br /&gt;&lt;br /&gt;select ROW_NUMBER() over (order by companyname),&lt;br /&gt;&amp;nbsp;companyname,CustomerID&lt;br /&gt;from Customers&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;DENSE_RANK()&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;Devuelve el rango de filas dentro de la partición de un conjunto de  resultados, sin ningún espacio en la clasificación. El rango de una fila  es uno más el número de rangos distintos anteriores a la fila en  cuestión.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With tble1 AS&lt;br /&gt;(&lt;br /&gt;select Orders.CustomerID, &lt;br /&gt;COUNT(*) as counts&amp;nbsp; &lt;br /&gt;from Orders &lt;br /&gt;group by CustomerID &lt;br /&gt;)&lt;br /&gt;select tble1.customerid, &lt;br /&gt;DENSE_RANK() OVER (ORDER BY tble1.counts desc) AS [cust grade] &lt;br /&gt;from tble1&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;NTILE&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Distribuye las filas de una partición ordenada en un número especificado  de grupos. Los grupos se numeran a partir del uno. Para cada fila,  NTILE devuelve el número del grupo al que pertenece la fila.&lt;br /&gt;&lt;br /&gt;select ProductName, UnitsInStock,&lt;br /&gt;NTILE (2) OVER(order by unitsinstock desc) as 'Ntile'&lt;br /&gt;from Products &lt;br /&gt;where UnitsInStock&amp;gt;20&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-249924789109249561?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/249924789109249561/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=249924789109249561' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/249924789109249561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/249924789109249561'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/rank-de-datos-agrupados-rownumber.html' title='Rank de datos agrupados (ROW_NUMBER(), DENSE_RANK() , NTILE)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-977544278259231816</id><published>2011-07-17T16:41:00.001-06:00</published><updated>2011-07-17T16:50:08.695-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Post back php</title><content type='html'>&lt;strong&gt;Post Back en php,  esto es útil cuando el formulario se envía a si mismo&lt;/strong&gt;:&lt;br /&gt;&lt;br /&gt;&amp;lt;form class="register" action="&amp;lt;?php echo $PHP_SELF;?&amp;gt;" method="post"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;input type="text" name="Nombre" required="required" /&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Ejemplo post Back:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;if ($_SERVER['REQUEST_METHOD'] == 'POST') &lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo “primera vez”;&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo “”mas de primera;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-977544278259231816?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/977544278259231816/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=977544278259231816' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/977544278259231816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/977544278259231816'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/post-back-php.html' title='Post back php'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-5779120504468184231</id><published>2011-07-17T15:22:00.002-06:00</published><updated>2011-07-17T15:29:39.978-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>Store Procedure que regresa un select oracle</title><content type='html'>&lt;span style="color: black; font-size: 12pt;"&gt;&lt;strong&gt;1.) Crear un Ref Cursor que será retornado:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: #f9f9f9;"&gt;create or replace PACKAGE Types AS&lt;br /&gt;TYPE cursor_type IS REF CURSOR;&lt;br /&gt;END Types;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f9f9f9;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-size: 12pt;"&gt;&lt;strong&gt;2.) Creando el  Store procedure&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-size: 12pt;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f9f9f9;"&gt;create or replace&lt;br /&gt;PROCEDURE getAllCity(p_recordset OUT types.cursor_type) AS&lt;br /&gt;BEGIN&lt;br /&gt;OPEN p_recordset FOR&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;select * from tbl_country;&lt;br /&gt;END getAllCity;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f9f9f9;"&gt;&lt;br /&gt;&lt;strong&gt;3.) Código c# que llama el store procedure&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: #f9f9f9;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt; string strconn =&amp;nbsp; myDynconnStr;&lt;br /&gt;OracleConnection conn = new OracleConnection(strconn);&lt;br /&gt;OracleCommand objCmd = new OracleCommand();&lt;br /&gt;objCmd.Connection = conn;&lt;br /&gt;objCmd.CommandText = "getAllCity";&lt;br /&gt;objCmd.CommandType = CommandType.StoredProcedure;&lt;br /&gt;objCmd.Parameters.Add("p_recordset", OracleType.Cursor).Direction = ParameterDirection.Output;&lt;br /&gt;OracleDataAdapter odr = new OracleDataAdapter(objCmd);&lt;br /&gt;DataSet ds = new DataSet();&lt;br /&gt;odr.Fill(ds);&lt;br /&gt;GridView1.DataSource = ds.Tables[0];&lt;br /&gt;GridView1.DataBind();&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-5779120504468184231?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/5779120504468184231/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=5779120504468184231' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/5779120504468184231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/5779120504468184231'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/store-procedure-que-regresa-un-select.html' title='Store Procedure que regresa un select oracle'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-9043376957183477786</id><published>2011-07-15T22:59:00.001-06:00</published><updated>2011-07-15T23:48:59.655-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Calcular tiempos ( Timespan)</title><content type='html'>&lt;span class="sentence" id="xn1_835348dd6149c43eded83760211998f4"&gt;Representa un intervalo de tiempo. &lt;/span&gt;&lt;span class="sentence" id="xn85_a7e9983d3c395b4a4358815789356e14"&gt;Un objeto &lt;span class="selflink"&gt;TimeSpan&lt;/span&gt;  representa un intervalo de tiempo (duración de tiempo o tiempo  transcurrido) que se mide como un número positivo o negativo de días,  horas, minutos, segundos y fracciones de segundo.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="sentence" id="xn85_a7e9983d3c395b4a4358815789356e14"&gt;Ejemplo:&lt;/span&gt;&lt;br /&gt;&lt;span class="sentence" id="xn85_a7e9983d3c395b4a4358815789356e14"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class="sentence" id="xn85_a7e9983d3c395b4a4358815789356e14"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: blue;"&gt;protected void&lt;/span&gt; Button1_Click(&lt;span style="color: blue;"&gt;object &lt;/span&gt;sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: #6fa8dc;"&gt; &lt;/span&gt;&lt;span style="color: #666666;"&gt;&lt;span style="color: #6fa8dc;"&gt;TimeSpan&lt;/span&gt; &lt;/span&gt;tspan;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #6fa8dc;"&gt;DateTime&lt;/span&gt; inicio;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #6fa8dc;"&gt;DateTime &lt;/span&gt;final;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inicio = DateTime.Now;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: #38761d;"&gt; //codigo de proceso o consulta&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; final = &lt;span style="color: #3d85c6;"&gt;DateTime&lt;/span&gt;.Now;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tspan = final.Subtract(inicio).Duration();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label1.Text = tspan.Duration().ToString();&lt;/span&gt;&lt;br /&gt;&lt;span class="sentence" id="xn85_a7e9983d3c395b4a4358815789356e14"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label2.Text = " Minutos: " + tspan.Minutes.ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label3.Text = " Segundos: " + tspan.Seconds.ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-9043376957183477786?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/9043376957183477786/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=9043376957183477786' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/9043376957183477786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/9043376957183477786'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/calcular-tiempos-timespan.html' title='Calcular tiempos ( Timespan)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-3242753202746319270</id><published>2011-07-10T23:20:00.002-06:00</published><updated>2011-07-11T23:15:20.197-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interesante'/><title type='text'>Cual es el SmartPhone mas usado? ¿Windows phone?</title><content type='html'>Será Windows Phone??? jajajajajaja  eso NO pasa  ni en los sueños mas húmedos de Steve Ballmer (Presidente de Microsoft).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Les dejo la imagen que habla sola.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-UPsB9J8DxL8/ThvEifJgtCI/AAAAAAAAAYY/5IR9qCSxG0A/s1600/smartphone-os-distribution.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="256" src="http://1.bp.blogspot.com/-UPsB9J8DxL8/ThvEifJgtCI/AAAAAAAAAYY/5IR9qCSxG0A/s400/smartphone-os-distribution.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-3242753202746319270?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/3242753202746319270/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=3242753202746319270' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/3242753202746319270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/3242753202746319270'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/cual-es-el-smartphone-mas-usado-windows.html' title='Cual es el SmartPhone mas usado? ¿Windows phone?'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-UPsB9J8DxL8/ThvEifJgtCI/AAAAAAAAAYY/5IR9qCSxG0A/s72-c/smartphone-os-distribution.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-1622995101953923616</id><published>2011-07-09T16:59:00.000-06:00</published><updated>2011-07-09T17:05:15.344-06:00</updated><title type='text'>Tablas temporales Oracle,sql Server</title><content type='html'>&lt;span style="font-size: 14pt; text-decoration: underline;"&gt;&lt;strong&gt;Crear tabla temporal en Sql Server&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hay dos tipos de tablas temporales: locales y globales. Se diferencian entre sí por los nombres, la visibilidad y la disponibilidad. Las tablas temporales locales tienen como primer carácter de sus nombres un signo de número (#); sólo son visibles para el usuario de la conexión actual y se eliminan cuando el usuario se desconecta de la instancia de SQL Server. Las tablas temporales globales presentan dos signos de número (##) antes del nombre; son visibles para cualquier usuario después de su creación y se eliminan cuando todos los usuarios que hacen referencia a la tabla se desconectan de la instancia de SQL Server.&lt;br /&gt;&lt;br /&gt;CREATE TABLE #test (&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;YakID int,&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;YakName char(30)&lt;br /&gt; )&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 14pt; text-decoration: underline;"&gt;&lt;strong&gt;Crear tabla temporal en oracle&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Para crear una tabla temporal usaremos la siguiente sentencia&lt;br /&gt;&lt;br /&gt;CREATE GLOBAL TEMPORARY TABLE nombre_tabla (&lt;br /&gt;columna1 NUMBER,&lt;br /&gt;columna2 NUMBER&lt;br /&gt;) ON COMMIT DELETE ROWS;&lt;br /&gt;&lt;br /&gt;si cuando se realice un commit queremos que no se pierdan los registros insertados.&lt;br /&gt;&lt;br /&gt;o bien&lt;br /&gt;) ON COMMIT PRESERVE ROWS;&lt;br /&gt;&lt;br /&gt;En este caso cuando se haga un commit, los registros segirán en la tabla. Se borra la tabla automáticamente cuando termina la sesión&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-1622995101953923616?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/1622995101953923616/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=1622995101953923616' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1622995101953923616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1622995101953923616'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/07/tablas-temporales-oraclesql-server.html' title='Tablas temporales Oracle,sql Server'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-1494538652492362902</id><published>2011-06-23T21:59:00.000-06:00</published><updated>2011-06-23T22:16:56.795-06:00</updated><title type='text'>Mejores prácticas de versiones .NET  ( Assembly)</title><content type='html'>Cada Proyecto NET se crea , contiene un archivo llamado AssemblyInfo se crea que contiene atributos utilizados para definir la versión.&lt;br /&gt;&lt;br /&gt;Esto nos permite saber que versión estamos utilizando lo cual permite efectivamente a varios miembros del equipo para identificar los ensamblados implementados y ayuda a solucionar problemas que pueden ocurrir en un ambiente particular (por ejemplo, desarrollo, prueba, o de producción).&lt;br /&gt;&lt;br /&gt;Versiones de la Asamblea constará de cuatro partes diferentes:&lt;br /&gt;&lt;br /&gt;{versión principal} &lt;br /&gt;{versión menor}&lt;br /&gt;{número de compilación} &lt;br /&gt;{revisiones}&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Versión principal&lt;/strong&gt;&lt;br /&gt;     Incrementa de forma manual para las versiones principales, como la adición de muchas nuevas características de la solución.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Versión menores&lt;/strong&gt;&lt;br /&gt;     Incrementa de forma manual para las versiones menores, como la introducción de pequeños cambios en las características existentes.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Número de compilación&lt;/strong&gt;&lt;br /&gt;     Por lo general se incrementa de forma automática como parte de cada generación a cabo en el servidor de compilación. Esto permite que cada generación para realizar un seguimiento y probado.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Revisión&lt;/strong&gt;&lt;br /&gt;     Incrementa para QFE (también conocido como “hotfixes” o parches) que se basa liberados en el ambiente de producción (PROD). Esto se pone a cero para la versión inicial de cualquier versión de mayor / menor de la solución.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-1494538652492362902?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/1494538652492362902/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=1494538652492362902' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1494538652492362902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1494538652492362902'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/06/mejores-practicas-de-versiones-net.html' title='Mejores prácticas de versiones .NET  ( Assembly)'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-2890287345627439241</id><published>2011-06-18T09:32:00.002-06:00</published><updated>2011-06-18T10:25:37.872-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Entity Framework'/><title type='text'>Manejando transacciones en Entity Framework</title><content type='html'>Para crear código transaccional necesita tener una referencia al las siguientes clase System.Transactions (en system.transactions.dll).&lt;br /&gt;&lt;br /&gt;Debe llamar a la&amp;nbsp;librería&amp;nbsp;en el&amp;nbsp;código&amp;nbsp;también.&lt;br /&gt;&lt;br /&gt;using System.Transactions;&lt;br /&gt;&lt;br /&gt;El TransactionScope nos proporcionara la infraestructura &amp;nbsp;para manejar las transacciones un ejemplo a&amp;nbsp;continuación:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-HRHnh_eD_Gk/TfzF194jnNI/AAAAAAAAAWk/-9y4kK5qK6I/s1600/tran.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-HRHnh_eD_Gk/TfzF194jnNI/AAAAAAAAAWk/-9y4kK5qK6I/s1600/tran.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-2890287345627439241?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/2890287345627439241/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=2890287345627439241' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/2890287345627439241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/2890287345627439241'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/06/manejando-transacciones-en-entity.html' title='Manejando transacciones en Entity Framework'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-HRHnh_eD_Gk/TfzF194jnNI/AAAAAAAAAWk/-9y4kK5qK6I/s72-c/tran.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-5041250505930894683</id><published>2011-06-10T23:22:00.000-06:00</published><updated>2011-06-10T23:22:11.127-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='aspnet'/><title type='text'>ejemplo de  ASP.NET Membership</title><content type='html'>Opciones para alojar Membership&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-JAC-UR9V3ro/TfLuY8olQyI/AAAAAAAAAWM/nANPp2KOxIM/s1600/m3w1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-JAC-UR9V3ro/TfLuY8olQyI/AAAAAAAAAWM/nANPp2KOxIM/s1600/m3w1.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-V63jFchfY_M/TfLuc3o6UCI/AAAAAAAAAWQ/gSR0A-t62F4/s1600/m3w2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-V63jFchfY_M/TfLuc3o6UCI/AAAAAAAAAWQ/gSR0A-t62F4/s1600/m3w2.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-V63jFchfY_M/TfLuc3o6UCI/AAAAAAAAAWQ/gSR0A-t62F4/s1600/m3w2.png" style="cursor: move;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px;"&gt;Aplicando Membership-Related aun base de datos existente.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: 13px; line-height: 18px;"&gt;Navegue en la siguiente ruta:&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;b&gt;C:\Windows\Microsoft.NET\Framework\v4.0.30319&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Ejecute&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small; line-height: 18px;"&gt;&amp;nbsp;&lt;b&gt;aspnet_regsql.exe&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;El siguiente wizard se mostrara&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;1.) Elija configure sql server for application service&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-pBGBgtWXT4U/TfLxNR1UDZI/AAAAAAAAAWU/ikT9HcVNQGE/s1600/w1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="307" src="http://3.bp.blogspot.com/-pBGBgtWXT4U/TfLxNR1UDZI/AAAAAAAAAWU/ikT9HcVNQGE/s400/w1.PNG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;2.) Luego elija la base de datos donde&amp;nbsp;pondrá&amp;nbsp;las tablas de&amp;nbsp;configuración.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-U_1Qw3oTc0s/TfLxvcRBmaI/AAAAAAAAAWY/cNvkGBYAuZk/s1600/w2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="249" src="http://1.bp.blogspot.com/-U_1Qw3oTc0s/TfLxvcRBmaI/AAAAAAAAAWY/cNvkGBYAuZk/s320/w2.PNG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;3.) Ahora tenemos que crear la base de datos tablas, vistas, store procedure.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Abra Microsoft Managent studio y &amp;nbsp;ejecute el script :&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: monospace; font-size: 12px; line-height: 18px;"&gt;&lt;b&gt;InstallCommon.sql&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Ruta:&lt;b&gt;&amp;nbsp;C:\Windows\Microsoft.NET\Framework\v4.0.30319&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;Se creara la siguiente base datos.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: small; line-height: normal;"&gt;&lt;a href="http://4.bp.blogspot.com/-f43M-IKQgAs/TfLzaYe-H7I/AAAAAAAAAWc/4Bm_jNCBbTw/s1600/db.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-f43M-IKQgAs/TfLzaYe-H7I/AAAAAAAAAWc/4Bm_jNCBbTw/s1600/db.PNG" style="cursor: move;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;4.)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: monospace; font-size: 12px; line-height: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&amp;lt; configuration &amp;gt;&lt;br /&gt;  &lt;b&gt;&amp;lt; connectionStrings &amp;gt;&lt;br /&gt;     &amp;lt; add name="MyDB" connectionString="..." / &amp;gt;&lt;br /&gt;  &amp;lt; /connectionStrings &amp;gt;&lt;/b&gt;&lt;br /&gt;  &amp;lt; system.web &amp;gt;&lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;    &amp;lt; roleManager enabled="true"&lt;br /&gt;                 defaultProvider="CustomizedRoleProvider" &amp;gt;&lt;br /&gt;      &amp;lt; providers &amp;gt;&lt;br /&gt;         &amp;lt; add name="CustomizedRoleProvider"&lt;br /&gt;              type="System.Web.Security.SqlRoleProvider"&lt;br /&gt;              &lt;b&gt;connectionStringName="MyDB"&lt;/b&gt; / &amp;gt;&lt;br /&gt;      &amp;lt; /providers &amp;gt;&lt;br /&gt;    &amp;lt; /roleManager &amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt; membership defaultProvider="CustomizedMembershipProvider" &amp;gt;&lt;br /&gt;      &amp;lt; providers &amp;gt;&lt;br /&gt;         &amp;lt; add name="CustomizedMembershipProvider"&lt;br /&gt;              type="System.Web.Security.SqlMembershipProvider"&lt;br /&gt;              &lt;b&gt;connectionStringName="MyDB"&lt;/b&gt; / &amp;gt;&lt;br /&gt;      &amp;lt; /providers &amp;gt;&lt;br /&gt;    &amp;lt; /membership &amp;gt;&lt;br /&gt;&lt;br /&gt;  &amp;lt; /system.web &amp;gt;&lt;br /&gt;&amp;lt; /configuration &amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-5041250505930894683?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/5041250505930894683/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=5041250505930894683' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/5041250505930894683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/5041250505930894683'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/06/ejemplo-de-aspnet-membership.html' title='ejemplo de  ASP.NET Membership'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-JAC-UR9V3ro/TfLuY8olQyI/AAAAAAAAAWM/nANPp2KOxIM/s72-c/m3w1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-2208965608685956834</id><published>2011-06-10T22:01:00.001-06:00</published><updated>2011-06-10T22:06:12.982-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Entity Framework'/><title type='text'>Ejemplo de Entity Framework con Windows Forms</title><content type='html'>1.) En Visual Studio File | New Project&lt;br /&gt;&lt;br /&gt;2.) Elija&amp;nbsp;Windows Forms Application. Precione &amp;nbsp;Clic OK. Para crear la&amp;nbsp;aplicación.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-mXIzzjpOAZU/TfLcT0WumaI/AAAAAAAAAVM/uOKmaXtj3Bg/s1600/imagen1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="408" src="http://4.bp.blogspot.com/-mXIzzjpOAZU/TfLcT0WumaI/AAAAAAAAAVM/uOKmaXtj3Bg/s640/imagen1.PNG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;3.) En el menu Project | Add New Item &amp;nbsp;y &amp;nbsp;elija&amp;nbsp;Entity Data Model.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-S9jxHX8ri58/TfLeHgTDEnI/AAAAAAAAAVY/s0oSvfnmYXs/s1600/imagen2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="406" src="http://3.bp.blogspot.com/-S9jxHX8ri58/TfLeHgTDEnI/AAAAAAAAAVY/s0oSvfnmYXs/s640/imagen2.PNG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;4.) En el&amp;nbsp;Entity Data Model Wizard se mostrara, llene la&amp;nbsp;información&amp;nbsp;que se le solicita.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-ipXqUNIuQ0c/TfLeqyx3ZrI/AAAAAAAAAVc/rgID-N1tTNA/s1600/imagen3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-ipXqUNIuQ0c/TfLeqyx3ZrI/AAAAAAAAAVc/rgID-N1tTNA/s1600/imagen3.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;5.) Elija la tabla de&amp;nbsp;categorías&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-KrIby3dbhf4/TfLfk6Hs4dI/AAAAAAAAAVg/GAeC0na_Ams/s1600/imagen4.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="357" src="http://1.bp.blogspot.com/-KrIby3dbhf4/TfLfk6Hs4dI/AAAAAAAAAVg/GAeC0na_Ams/s400/imagen4.PNG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;6.) El resultado sera:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-zDwo8fO7rwg/TfLgQLZo9wI/AAAAAAAAAVo/QpHB4hHCSzs/s1600/imagen5.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-zDwo8fO7rwg/TfLgQLZo9wI/AAAAAAAAAVo/QpHB4hHCSzs/s1600/imagen5.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Antes de pasar al siguiente paso tiene que generar el proyecto, esto lo puede lograr en el menu:&lt;br /&gt;&amp;nbsp;&lt;b&gt;Build | Build Solution&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;7.) En el Formulario form1, clic en el&amp;nbsp;menú&amp;nbsp;&lt;b&gt;Data | Add data source.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Vs0p6b6OlIA/TfLhIqn4XXI/AAAAAAAAAVs/FLEtpNzKwbI/s1600/imagen6.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="308" src="http://1.bp.blogspot.com/-Vs0p6b6OlIA/TfLhIqn4XXI/AAAAAAAAAVs/FLEtpNzKwbI/s400/imagen6.PNG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;8.) El asistente le mostrara la ventana donde tiene que&amp;nbsp;elegir&amp;nbsp;los objetos que utilizara, en esta caso elija la tabla de&amp;nbsp;categorías y luego next y finish.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-KDW6MjvGUSw/TfLi4lM2nGI/AAAAAAAAAVw/Jli_AES5yDU/s1600/imagen8.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="308" src="http://3.bp.blogspot.com/-KDW6MjvGUSw/TfLi4lM2nGI/AAAAAAAAAVw/Jli_AES5yDU/s400/imagen8.PNG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;9.) El data source panel esta oculto, por lo que debemos de mostrarlo para poder utilizar el objecto&amp;nbsp;recientemente&amp;nbsp;creado, en el menu&amp;nbsp;Data, Show Data Sources.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-rVoB43YoNAE/TfLkNINaL7I/AAAAAAAAAV0/gZyubKSQwyE/s1600/imagen9.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-rVoB43YoNAE/TfLkNINaL7I/AAAAAAAAAV0/gZyubKSQwyE/s400/imagen9.PNG" width="243" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;10.) Ahora arrastre&amp;nbsp;Categorías&amp;nbsp;al formulario, se mostrara lo siguiente.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-vF6vKS8lSUQ/TfLlHQqbBtI/AAAAAAAAAV4/5GBuIlHqtG8/s1600/imagen10.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-vF6vKS8lSUQ/TfLlHQqbBtI/AAAAAAAAAV4/5GBuIlHqtG8/s1600/imagen10.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #003333; font-size: 14px; font-style: italic; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;Populate el Data Grid View&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;11.)&amp;nbsp;Presione&amp;nbsp;clic derecho sobre el formulario, view Code y agregue el siguiente&amp;nbsp;código.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-3GP9XA8dFJM/TfLmrsJGGTI/AAAAAAAAAV8/h6kUQ_6j0Nw/s1600/imagen11.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-3GP9XA8dFJM/TfLmrsJGGTI/AAAAAAAAAV8/h6kUQ_6j0Nw/s1600/imagen11.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;12.) Se mostrara de la siguiente manera:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-JEou3yW4xxI/TfLnJBTxPSI/AAAAAAAAAWA/-B8AHitSRfE/s1600/imagen12.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="269" src="http://3.bp.blogspot.com/-JEou3yW4xxI/TfLnJBTxPSI/AAAAAAAAAWA/-B8AHitSRfE/s320/imagen12.PNG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;span class="Apple-style-span" style="color: #003333; font-family: helvetica, arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 14px; line-height: 25px;"&gt;&lt;i&gt;Agregando&amp;nbsp;código&amp;nbsp; para guardar los cambios en la Database&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 25px;"&gt;&lt;strong style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #003333; font-size: 14px; font-style: italic; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;13.) &amp;nbsp;Presione&amp;nbsp;doble clic sobre el&amp;nbsp;botón&amp;nbsp;de guardar y agregue el siguiente&amp;nbsp;código.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-VgUBWyvuAQY/TfLoP05-ImI/AAAAAAAAAWE/6k4JtmYOiWo/s1600/imagen13.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-VgUBWyvuAQY/TfLoP05-ImI/AAAAAAAAAWE/6k4JtmYOiWo/s1600/imagen13.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;14.) Habilite el&amp;nbsp;botón&amp;nbsp;de guardar, clic derecho habilitar.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-CQQANikKUH8/TfLpkCQaNwI/AAAAAAAAAWI/KLEDgXl3a0c/s1600/imagen14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="255" src="http://2.bp.blogspot.com/-CQQANikKUH8/TfLpkCQaNwI/AAAAAAAAAWI/KLEDgXl3a0c/s400/imagen14.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;Una vez que&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;el&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;código&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;se&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;ha añadido&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span title="Click for alternate translations"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;guarde &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;la solución&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;y&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;genere&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="" title="Click for alternate translations"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;Ejecute la&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;aplicación&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;y&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;verificar&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;que los cambios&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;realizados&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;en&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;la&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;red&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="hps" title="Click for alternate translations"&gt;se guardan&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;span class="" title="Click for alternate translations"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-2208965608685956834?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/2208965608685956834/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=2208965608685956834' title='1 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/2208965608685956834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/2208965608685956834'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/06/ejemplo-de-entity-framework-con-windows.html' title='Ejemplo de Entity Framework con Windows Forms'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-mXIzzjpOAZU/TfLcT0WumaI/AAAAAAAAAVM/uOKmaXtj3Bg/s72-c/imagen1.PNG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-615129096763758685</id><published>2011-06-05T20:52:00.000-06:00</published><updated>2011-06-05T21:00:52.442-06:00</updated><title type='text'>Ejecutar un exe  con vb</title><content type='html'>&lt;span style="color: rgb(18,19,255);"&gt;Imports&lt;/span&gt; System.Diagnostics&lt;br /&gt; &lt;br /&gt;Este es un ejemplo de como ejecutar una aplicación en este caso acrobat reader, enviado como argumento un pdf.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(18,19,255);"&gt;Public Class&lt;/span&gt; &lt;span style="color: rgb(44,148,141);"&gt;Form1&lt;/span&gt;&lt;br /&gt;  &lt;br /&gt; &lt;br /&gt;    Private Sub Form1_Load(sender &lt;span style="color: rgb(18,19,255);"&gt;As Object&lt;/span&gt;, e &lt;span style="color: rgb(18,19,255);"&gt;As&lt;/span&gt; System.EventArgs) &lt;span style="color: rgb(18,19,255);"&gt;Handles Me&lt;/span&gt;.Load&lt;br /&gt;        &lt;span style="color: rgb(18,19,255);"&gt;Dim&lt;/span&gt; proc &lt;span style="color: rgb(18,19,255);"&gt;As New&lt;/span&gt; &lt;span style="color: rgb(44,148,141);"&gt;Process()&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;        &lt;span style="color: rgb(18,19,255);"&gt;With&lt;/span&gt; proc.StartInfo&lt;br /&gt;            .Arguments = &lt;span style="color: rgb(120,0,7);"&gt;"C:\Users\Corellana\Downloads\dto_6_91_codigotributario.pdf"&lt;/span&gt;&lt;br /&gt;            .UseShellExecute = &lt;span style="color: rgb(18,19,255);"&gt;True&lt;/span&gt;&lt;br /&gt;            .WindowStyle = &lt;span style="color: rgb(44,148,141);"&gt;ProcessWindowStyle&lt;/span&gt;.Maximized&lt;br /&gt;            .WorkingDirectory = "C:\Program Files (x86)\Adobe\Reader 9.0\Reader" '&lt;span style="color: rgb(39,120,73);"&gt;&amp;lt;----- path del exe&lt;/span&gt;&lt;br /&gt;            .FileName = &lt;span style="color: rgb(120,0,7);"&gt;"AcroRd32.exe" &lt;/span&gt;'&lt;span style="color: rgb(39,120,73);"&gt;&amp;lt;----- indica el exe a ejecutar&lt;/span&gt;&lt;br /&gt;        &lt;span style="color: rgb(18,19,255);"&gt;End With&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;        proc.Start()&lt;br /&gt;        proc.Close()&lt;br /&gt;        proc.Dispose()&lt;br /&gt;    &lt;span style="color: rgb(18,19,255);"&gt;End Sub&lt;br /&gt;End Class&lt;/span&gt;&lt;br /&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-615129096763758685?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/615129096763758685/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=615129096763758685' title='1 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/615129096763758685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/615129096763758685'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/06/ejecutar-un-exe-con-vb.html' title='Ejecutar un exe  con vb'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-6173519263302898378</id><published>2011-06-03T23:31:00.003-06:00</published><updated>2011-06-05T21:14:11.464-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='aspnet'/><title type='text'>Autenticación en aspnet</title><content type='html'>&lt;span style="font-size: 12pt;"&gt;Ejercicio de como crear una autenticación basica con formularios.&lt;br /&gt;&lt;br /&gt;1.) Lo primero que tenemos que hacer es modificar el archivo &lt;strong&gt;web config&lt;/strong&gt;, para quede de la siguiente manera.&lt;br /&gt;&lt;br /&gt;1.1)&amp;nbsp;En el tag de&amp;nbsp;&lt;/span&gt;&amp;lt;&lt;span style="color: blue; font-size: 13pt;"&gt;system.web&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;&amp;gt; &lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;cambie el &amp;nbsp;elemento&amp;nbsp;autenticación&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: blue; font-size: 13pt;"&gt;authentication&lt;/span&gt; &lt;span style="font-size: 13pt;"&gt;&lt;/span&gt;&lt;span style="color: #f40000; font-size: 13pt;"&gt;mode&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;="Forms"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 12pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: blue; font-size: 12pt;"&gt;authentication&lt;/span&gt; &lt;span style="font-size: 12pt;"&gt;&lt;/span&gt;&lt;span style="color: #f40000; font-size: 12pt;"&gt;mode&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;="Forms"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: 12pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: blue; font-size: 12pt;"&gt;forms&lt;/span&gt; &lt;span style="font-size: 12pt;"&gt;&lt;/span&gt;&lt;span style="color: #f40000; font-size: 12pt;"&gt;loginUrl&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;="login.aspx" &lt;/span&gt;&lt;span style="color: #f40000; font-size: 12pt;"&gt;timeout&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;="2880"/&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="font-size: 12pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: blue; font-size: 12pt;"&gt;authentication&lt;/span&gt; &lt;span style="font-size: 12pt;"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;El elemento forms es el que define el comportamiento de nuestro sistema de autenticación. Los atributos de este elemento son los siguientes:&lt;br /&gt;&lt;ul style="list-style-type: disc;"&gt;&lt;li&gt;&lt;strong&gt;name&lt;/strong&gt;. El nombre de la cookie del navegador que almacena el ticket de acceso. Si no se especifica uno se llamará ASPXAUTH. Por temas de seguridad usaremos un nombre distinto del por defecto.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;loginUrl&lt;/strong&gt;. La pagina a la que se enviará a los usuarios no logados de modo automático. Si no se especifica ninguna, se nos enviará a la página login.aspx situada en el directorio raíz de la aplicación Web.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;timeout&lt;/strong&gt;. Minutos en los que la cookie tiene validez. Por defecto es de 30 minutos.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;protection.&lt;/strong&gt;&amp;nbsp;Especifica la forma en la que se protegen los datos de la cookie. Los valores son All, None, Encryption y Validation, siendo All el valor por defecto. Conviene indicar que, a menos que se indique lo contrario, las cookies se encriptan usando los algoritmos DES o TripleDES, dependiendo del servidor.&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-size: 10pt;"&gt;1.2) &amp;nbsp;&lt;/span&gt;&lt;strong&gt;Configurando el directorio privado.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ya tenemos configurado el entorno de autenticación. Ahora toca configurar nuestro sitio como privado para que evitar accesos no deseados.&lt;br /&gt;En primer lugar hemos de modificar el archivo web.config. En este archivo hemos de configurar el elemento authorization.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 13pt;"&gt;&amp;lt;xml &lt;/span&gt;&lt;span style="color: #f40000; font-size: 13pt;"&gt;version&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;="1.0" &lt;/span&gt;&lt;span style="color: #f40000; font-size: 13pt;"&gt;encoding&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;="utf-8" ?&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style="color: blue; font-size: 13pt;"&gt;configuration&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style="color: blue; font-size: 13pt;"&gt;system.web&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style="color: blue; font-size: 13pt;"&gt;authorization&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;&lt;/span&gt;&lt;span style="color: blue; font-size: 13pt;"&gt;deny&lt;/span&gt; &lt;span style="font-size: 13pt;"&gt;&lt;/span&gt;&lt;span style="color: #f40000; font-size: 13pt;"&gt;users&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;="?" /&amp;gt;&lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: blue; font-size: 13pt;"&gt;allow &lt;/span&gt;&lt;span style="color: #f40000; font-size: 13pt;"&gt;users&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;="*" /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style="color: blue; font-size: 13pt;"&gt;authorization&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style="color: blue; font-size: 13pt;"&gt;system.web&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span style="color: blue; font-size: 13pt;"&gt;configuration&lt;/span&gt;&lt;span style="font-size: 13pt;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;Dentro de la sección authorization podemos tener los siguientes elementos&lt;br /&gt;&lt;ul style="list-style-type: disc;"&gt;&lt;li&gt;&lt;strong&gt;allow&lt;/strong&gt;&amp;nbsp;para permitir el acceso a los usuarios.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;deny&lt;/strong&gt;&amp;nbsp;para denegar usuarios.&lt;/li&gt;&lt;/ul&gt;En ambos elementos tenemos el atributo users donde podemos especificar&lt;br /&gt;&lt;ul style="list-style-type: disc;"&gt;&lt;li&gt;“?” para indicar todos los usuarios anónimos&lt;/li&gt;&lt;li&gt;“*” para indicar a todos los usuarios, tanto anónimos como autenticados.&lt;/li&gt;&lt;li&gt;Lista de usuarios separada por coma, para indicar a un grupo de usuarios a los que queramos dar o denegar acceso, según el elemento en el que se encuentre.&lt;/li&gt;&lt;/ul&gt;Con estos cambios ya no podran entrar sin autenticarse.&lt;br /&gt;&lt;br /&gt;2.)&amp;nbsp;&lt;strong&gt;Creando pagina de login.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;strong&gt;&lt;/strong&gt;2.1) Agregue un pagina con el nombre de&amp;nbsp;Login.aspx (clic en el menu web site new item)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-nzh5JAZr1w0/TemxcYuzEVI/AAAAAAAAAUs/QEKiXr28c3Q/s1600/item.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="253" src="http://4.bp.blogspot.com/-nzh5JAZr1w0/TemxcYuzEVI/AAAAAAAAAUs/QEKiXr28c3Q/s400/item.PNG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2.2) En la pagina agregue un control de login a la pagina.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-eYeZJvh9DEc/TemyQqR9vnI/AAAAAAAAAUw/7p5zcQsjjeY/s1600/control.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-eYeZJvh9DEc/TemyQqR9vnI/AAAAAAAAAUw/7p5zcQsjjeY/s1600/control.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; 2.3) Su pagina se mirara así:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-4A7SVgXn2yI/Tem1Kn1VU-I/AAAAAAAAAU4/xtwfYnLNfmk/s1600/login2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-4A7SVgXn2yI/Tem1Kn1VU-I/AAAAAAAAAU4/xtwfYnLNfmk/s1600/login2.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 2.4) Capture el evento Authenticate del control login1 y agregue el&amp;nbsp;código&amp;nbsp;de autenticacion.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-MVIQjkg74G4/Tem1ddBj_jI/AAAAAAAAAU8/zVFWobUfp_k/s1600/codigo+aut.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-MVIQjkg74G4/Tem1ddBj_jI/AAAAAAAAAU8/zVFWobUfp_k/s1600/codigo+aut.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Con esto tenemos la validación, podremos dar por terminado este punto, si quiere validarlo con Entity Framework, continue.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;3.)&amp;nbsp;&lt;strong&gt;Validando con entity framework.&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;strong&gt;&lt;/strong&gt;3.1) Abra su&amp;nbsp;SQL Server Management Studio y ejecute el siguiente codigo, el cual creara su nueva tabla de usuarios.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-q91w__kv96Q/Tem-XULO2pI/AAAAAAAAAVA/J8tvA-b6I-4/s1600/sql.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-q91w__kv96Q/Tem-XULO2pI/AAAAAAAAAVA/J8tvA-b6I-4/s1600/sql.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;3.1) Cree o edite su modelo de entity Framerwok y agregue su tabla&amp;nbsp;recientemente&amp;nbsp;creada, para lograra esto editando su modelo precione clic derecho "Update model from database"&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-smT7b1csgws/Tem_34Uk_6I/AAAAAAAAAVE/6PoKV7eF7E4/s1600/add.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-smT7b1csgws/Tem_34Uk_6I/AAAAAAAAAVE/6PoKV7eF7E4/s1600/add.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;3.1) Por ultimo cambiaremos el codigo de nuestra pagina de login para que valide con la tabla de la base de datos.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-VYMzxHj2Ta4/TenDCZjeVfI/AAAAAAAAAVI/Kjzu6p1neeg/s1600/validacionfinal.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/-VYMzxHj2Ta4/TenDCZjeVfI/AAAAAAAAAVI/Kjzu6p1neeg/s1600/validacionfinal.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-6173519263302898378?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/6173519263302898378/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=6173519263302898378' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/6173519263302898378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/6173519263302898378'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/06/autenticacion-en-aspnet.html' title='Autenticación en aspnet'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-nzh5JAZr1w0/TemxcYuzEVI/AAAAAAAAAUs/QEKiXr28c3Q/s72-c/item.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-259184902618568482</id><published>2011-05-28T23:48:00.003-06:00</published><updated>2011-05-28T23:59:07.240-06:00</updated><title type='text'>Des habilitar clic derecho con Jquery</title><content type='html'>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"&gt;&lt;/script&gt;&lt;br /&gt;&lt;script&gt;$(document).ready(function(){ $(document).bind("contextmenu",function(e){  return false; });});&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;Agregue el siguiente código en su pagina web, el tab &amp;lt;head&amp;gt;, para ver un ejemplo esta misma entrada de blog&amp;nbsp;presione&amp;nbsp;clic derecho.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-A_LKeE8XkRQ/TeHf6NUINOI/AAAAAAAAAUg/8MduWu3kLfA/s1600/Captura+de+pantalla+2011-05-28+a+las+23.55.21.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-A_LKeE8XkRQ/TeHf6NUINOI/AAAAAAAAAUg/8MduWu3kLfA/s1600/Captura+de+pantalla+2011-05-28+a+las+23.55.21.png" style="cursor: move;" /&gt;&lt;/a&gt;&amp;lt;script src=&lt;span style="color: black;"&gt;“&lt;/span&gt;&lt;span style="color: #0f1883;"&gt;&lt;strong&gt;https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js”&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: #83160b;"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #83160b;"&gt;&lt;strong&gt;&amp;lt;script&amp;gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;$(&lt;/span&gt;&lt;span style="color: #830c55;"&gt;&lt;strong&gt;document&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;).ready(function&lt;/span&gt;&lt;span style="color: #110983;"&gt;&lt;strong&gt;(){&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: black;"&gt;$(&lt;/span&gt;&lt;span style="color: #830c55;"&gt;&lt;strong&gt;document&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;).bind(“&lt;/span&gt;&lt;span style="color: #0f1883;"&gt;&lt;strong&gt;contextmenu&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;”,function&lt;/span&gt;&lt;span style="color: #110983;"&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;e&lt;/span&gt;&lt;span style="color: #110983;"&gt;&lt;strong&gt;){&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;span style="color: #110983;"&gt;&lt;strong&gt;return false;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;span style="color: #110983;"&gt;&lt;strong&gt;});&lt;br /&gt;});&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #83160b;"&gt;&lt;strong&gt;&amp;lt;/script&amp;gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/-A_LKeE8XkRQ/TeHf6NUINOI/AAAAAAAAAUg/8MduWu3kLfA/s1600/Captura+de+pantalla+2011-05-28+a+las+23.55.21.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-259184902618568482?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/259184902618568482/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=259184902618568482' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/259184902618568482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/259184902618568482'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/05/des-habilitar-clic-derecho-con-jquery.html' title='Des habilitar clic derecho con Jquery'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-A_LKeE8XkRQ/TeHf6NUINOI/AAAAAAAAAUg/8MduWu3kLfA/s72-c/Captura+de+pantalla+2011-05-28+a+las+23.55.21.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-1770196278426129225</id><published>2011-05-28T00:02:00.003-06:00</published><updated>2011-06-03T21:36:06.580-06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Entity Framework'/><title type='text'>Insertar, actulizar, Eliminar con Entity con un GridView</title><content type='html'>1.) crear la Modelo de Entity framework, para lograrlo:&lt;br /&gt;Clic en el menu &lt;b&gt;web site&lt;/b&gt; y luego &lt;b&gt;add new item&lt;/b&gt;&lt;br /&gt;Se mostrara la siguiente pantalla:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-_yUHJcbYQsY/TeCKJNlWyvI/AAAAAAAAAT8/vkOlMUXTcxM/s1600/entity1.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="253" src="http://4.bp.blogspot.com/-_yUHJcbYQsY/TeCKJNlWyvI/AAAAAAAAAT8/vkOlMUXTcxM/s400/entity1.PNG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;En&amp;nbsp;el asistente agregue la tabla de categories:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-31BMbXs2XTo/TeCKtcQ0icI/AAAAAAAAAUA/Ey0DJBk1834/s1600/entity2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="356" src="http://2.bp.blogspot.com/-31BMbXs2XTo/TeCKtcQ0icI/AAAAAAAAAUA/Ey0DJBk1834/s400/entity2.PNG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Presione&amp;nbsp;clic en finish.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;2.) Cree una pagina donde alojara el ejemplo.&lt;br /&gt;2.1) Agregue una tabla con las siguiente&amp;nbsp;información.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-aLZcH6hd9mo/TeCLMQ3YrPI/AAAAAAAAAUE/tfr0AhtafUY/s1600/entity3.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/-aLZcH6hd9mo/TeCLMQ3YrPI/AAAAAAAAAUE/tfr0AhtafUY/s320/entity3.PNG" width="280" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;2.2) En la tabla que acaba de crear agregue los siguientes campos, &amp;nbsp;abajo de la tabla agregue un&amp;nbsp;GridView abajo de la tabla.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-ZCg-kJ_bAps/TeCLiga5E-I/AAAAAAAAAUI/FjdGB0q0gWs/s1600/entity4.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="192" src="http://1.bp.blogspot.com/-ZCg-kJ_bAps/TeCLiga5E-I/AAAAAAAAAUI/FjdGB0q0gWs/s640/entity4.PNG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;2.3) En las propiedades del grid edite las columnas y agregue las columnas de editar y eliminar.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-fh977ghgfpU/TeCMUjOYIrI/AAAAAAAAAUM/1XZHAIaB6OE/s1600/entity5.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="305" src="http://4.bp.blogspot.com/-fh977ghgfpU/TeCMUjOYIrI/AAAAAAAAAUM/1XZHAIaB6OE/s400/entity5.PNG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Ahora que tenemos todo el modelo&amp;nbsp;gráfico&amp;nbsp;podemos empezar a escribir&amp;nbsp;código:&lt;br /&gt;&lt;br /&gt;3.)Crear el evento Load para llenar el grid, recuerde agregar el using del &amp;nbsp;model.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-9rwt-SNdfU0/Temnsj4LuUI/AAAAAAAAAUk/yD7eDMGW_XI/s1600/entity10.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-9rwt-SNdfU0/Temnsj4LuUI/AAAAAAAAAUk/yD7eDMGW_XI/s1600/entity10.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Crearemos los eventos de Insertar, editar &amp;nbsp;y eliminar.&lt;br /&gt;4.) Escriba el siguiente&amp;nbsp;código:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-9hsy9F83kMs/TemoFn4sQ2I/AAAAAAAAAUo/2atvmiNQoak/s1600/entity6.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-9hsy9F83kMs/TemoFn4sQ2I/AAAAAAAAAUo/2atvmiNQoak/s1600/entity6.PNG" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;5.) Capture los siguientes eventos del grid&amp;nbsp;RowEditing,RowCancelingEdit ,RowUpdating, &amp;nbsp;RowDeleting y complete con las siguiente codigo.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-nBt3SAzCGqo/TeCPCHlG3xI/AAAAAAAAAUc/pN5J96fkL_U/s1600/ultima.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="460" src="http://2.bp.blogspot.com/-nBt3SAzCGqo/TeCPCHlG3xI/AAAAAAAAAUc/pN5J96fkL_U/s640/ultima.PNG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://ejemplos.softwarecj.com/"&gt;Ver Ejemplo en vivo&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6312851090582327060-1770196278426129225?l=www.cjorellana.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.cjorellana.net/feeds/1770196278426129225/comments/default' title='Comentarios de la entrada'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6312851090582327060&amp;postID=1770196278426129225' title='0 Comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1770196278426129225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6312851090582327060/posts/default/1770196278426129225'/><link rel='alternate' type='text/html' href='http://www.cjorellana.net/2011/05/insertar-actulizar-eliminar-con-entity.html' title='Insertar, actulizar, Eliminar con Entity con un GridView'/><author><name>Anonimo</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/_DVwXCN8X3yE/SsFFiCGLKcI/AAAAAAAAAGY/otSRXQdHaDU/S220/harrypottertunica.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-_yUHJcbYQsY/TeCKJNlWyvI/AAAAAAAAAT8/vkOlMUXTcxM/s72-c/entity1.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6312851090582327060.post-3213243313294204735</id><published>2011-05-12T22:46:00.000-06:00</published><updated>2011-05-14T16:37:46.340-06:00</updated><title type='text'>CONTROL + C en mac</title><content type='html'>Después de muchos años usando Pc me traslade a Mac y es excelente pero  no me acostumbro al manzanita + C para copiar y Manzanita + p para pegar, si ustedes tiene este mismo problema  hay solución y es sencilla: Agregar una nueva función rápida de teclado.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CONTROL+C&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;- Preferencias del Sistema -&amp;gt; Teclado y Ratón -&amp;gt; Funciones rápidas de teclado&lt;br /&gt;- Clic en el signo +&lt;br /&gt;- En la ventana que aparece:&lt;br /&gt;&lt;br /&gt;Aplicación: Todas las aplicaciones&lt;br /&gt;Título del menú: &lt;em&gt;Copiar&lt;/em&gt; (esto ha de ser exacto al menú de la aplicación)&lt;br /&gt;Función r
