<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pablo Viale</title>
	<atom:link href="http://www.viale.mx/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.viale.mx</link>
	<description>Consejos para diseño y desarrollo de aplicaciones web</description>
	<lastBuildDate>Wed, 29 Jun 2011 22:18:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>BC30002: Type &#8216;System.Data.Linq.Mapping.DatabaseAttribute&#8217; is not defined.</title>
		<link>http://www.viale.mx/2011/06/29/bc30002-type-system-data-linq-mapping-databaseattribute-is-not-defined/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=bc30002-type-system-data-linq-mapping-databaseattribute-is-not-defined</link>
		<comments>http://www.viale.mx/2011/06/29/bc30002-type-system-data-linq-mapping-databaseattribute-is-not-defined/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 22:18:01 +0000</pubDate>
		<dc:creator>Pablo Viale</dc:creator>
				<category><![CDATA[ASP.NET 2.0 / 3.5]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[SQL (mySQL)]]></category>

		<guid isPermaLink="false">http://www.viale.mx/?p=549</guid>
		<description><![CDATA[Si estás utilizando LINQ en tu aplicación de asp.net y te sale este error: BC30002: Type 'System.Data.Linq.Mapping.DatabaseAttribute' is not defined. Es probable que no hayas hecho referencia del assembly en el archivo web.config. Entre el tag assemblies y /assemblies de tu archivo web.config coloca lo siguiente: Clic para mostrar texto plano XML: &#60;add assembly="System.Data.Linq, Version=3.5.0.0, [...]]]></description>
			<content:encoded><![CDATA[<p>Si estás utilizando LINQ en tu aplicación de asp.net y te sale este error:</p>
<p><code>BC30002: Type 'System.Data.Linq.Mapping.DatabaseAttribute' is not defined.</code></p>
<p>Es probable que no hayas hecho referencia del assembly en el archivo web.config.<br />
Entre el tag assemblies y /assemblies de tu archivo web.config coloca lo siguiente:</p>
<div class="igBar"><span id="lxml-2"><a href="#" onclick="javascript:showPlainTxt('xml-2'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-2">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;add</span> <span style="color: #000066;">assembly</span>=<span style="color: #ff0000;">"System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"</span><span style="font-weight: bold; color: black;">/&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>¡Suerte!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viale.mx/2011/06/29/bc30002-type-system-data-linq-mapping-databaseattribute-is-not-defined/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cómo encontrar las dimensiones de una imagen subida mediante FileUpload</title>
		<link>http://www.viale.mx/2011/02/02/como-encontrar-las-dimensiones-de-una-imagen-fileupload/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=como-encontrar-las-dimensiones-de-una-imagen-fileupload</link>
		<comments>http://www.viale.mx/2011/02/02/como-encontrar-las-dimensiones-de-una-imagen-fileupload/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 21:38:05 +0000</pubDate>
		<dc:creator>Pablo Viale</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.viale.mx/?p=542</guid>
		<description><![CDATA[Si cuentas con un control como este: Clic para mostrar texto plano ASP: &#60;asp:FileUpload ID="Imagen" runat="server" /&#62; Mediante el cual pretendes recibir una imagen, y quieres validar el ancho y alto de ésta, haz lo siguiente en tu código de servidor: Clic para mostrar texto plano VB.NET: Dim LaImagen As New System.Drawing.Bitmap&#40;Imagen.PostedFile.InputStream&#41; If LaImagen.Width &#60;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Si cuentas con un control como este:</p>
<div class="igBar"><span id="lasp-5"><a href="#" onclick="javascript:showPlainTxt('asp-5'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">ASP:</span>
<div id="asp-5">
<div class="asp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;asp:FileUpload ID=<span style="color:#CC0000;">"Imagen"</span> runat=<span style="color:#CC0000;">"server"</span> /&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Mediante el cual pretendes recibir una imagen, y quieres validar el ancho y alto de ésta, haz lo siguiente en tu código de servidor:</p>
<div class="igBar"><span id="lvbnet-6"><a href="#" onclick="javascript:showPlainTxt('vbnet-6'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-6">
<div class="vbnet">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">Dim</span> LaImagen <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> System.<span style="color: #0000FF;">Drawing</span>.<span style="color: #0000FF;">Bitmap</span><span style="color: #000000;">&#40;</span>Imagen.<span style="color: #0000FF;">PostedFile</span>.<span style="color: #0000FF;">InputStream</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">If</span> LaImagen.<span style="color: #0600FF;">Width</span> &lt;&gt; <span style="color: #FF0000;color:#800000;">680</span> Or LaImagen.<span style="color: #0000FF;">Height</span> &lt;&gt; <span style="color: #FF0000;color:#800000;">300</span> <span style="color: #FF8000;">Then</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">'Pon aquí tu código correspondiente</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">End</span> <span style="color: #0600FF;">If</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>En el ejemplo anterior estamos diciendo "Si la imagen no mide de ancho 680 pixeles o no mide de alto 300 pixeles, entonces...".</p>
<p>Esto es útil para combinarlo con un "CustomValidator" y validar el tamaño de la imagen que estás recibiendo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viale.mx/2011/02/02/como-encontrar-las-dimensiones-de-una-imagen-fileupload/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>C&#243;mo encontrar la extensi&#243;n de un archivo subido mediante FileUpload</title>
		<link>http://www.viale.mx/2011/02/02/como-encontrar-la-extension-de-un-archivo-subido-mediante-fileupload/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=como-encontrar-la-extension-de-un-archivo-subido-mediante-fileupload</link>
		<comments>http://www.viale.mx/2011/02/02/como-encontrar-la-extension-de-un-archivo-subido-mediante-fileupload/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 21:18:43 +0000</pubDate>
		<dc:creator>Pablo Viale</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.viale.mx/?p=537</guid>
		<description><![CDATA[Si estás usando un control como este: Clic para mostrar texto plano ASP: &#60;asp:FileUpload ID="Imagen" runat="server" /&#62; Y necesitas conocer su extensión para realizar alguna validación, haz lo siguiente en tu código de servidor: Clic para mostrar texto plano VB.NET: If System.IO.Path.GetExtension&#40;Imagen.FileName&#41;.ToLower &#60;&#62; ".jpg" then 'Pon aquí el código correspondiente End If En el ejemplo [...]]]></description>
			<content:encoded><![CDATA[<p>Si estás usando un control como este:</p>
<div class="igBar"><span id="lasp-9"><a href="#" onclick="javascript:showPlainTxt('asp-9'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">ASP:</span>
<div id="asp-9">
<div class="asp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;asp:FileUpload ID=<span style="color:#CC0000;">"Imagen"</span> runat=<span style="color:#CC0000;">"server"</span> /&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Y necesitas conocer su extensión para realizar alguna validación, haz lo siguiente en tu código de servidor:</p>
<div class="igBar"><span id="lvbnet-10"><a href="#" onclick="javascript:showPlainTxt('vbnet-10'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-10">
<div class="vbnet">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">If</span> System.<span style="color: #0000FF;">IO</span>.<span style="color: #0000FF;">Path</span>.<span style="color: #0000FF;">GetExtension</span><span style="color: #000000;">&#40;</span>Imagen.<span style="color: #0000FF;">FileName</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">ToLower</span> &lt;&gt; <span style="color: #808080;">".jpg"</span> <span style="color: #FF8000;">then</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #008080; font-style: italic;">'Pon aquí el código correspondiente</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">End</span> <span style="color: #0600FF;">If</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>En el ejemplo anterior estamos diciendo "Si la extensión del archivo NO es igual a ".jpg", entonces...".</p>
<p>Esto es útil combinándolo con un "CustomValidator" para revisar que solamente estén subiendo imágenes, por ejemplo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viale.mx/2011/02/02/como-encontrar-la-extension-de-un-archivo-subido-mediante-fileupload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C&#243;mo obtener el UserId del usuario logueado</title>
		<link>http://www.viale.mx/2010/11/26/como-obtener-el-guid-del-usuario-logueado/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=como-obtener-el-guid-del-usuario-logueado</link>
		<comments>http://www.viale.mx/2010/11/26/como-obtener-el-guid-del-usuario-logueado/#comments</comments>
		<pubDate>Fri, 26 Nov 2010 20:46:48 +0000</pubDate>
		<dc:creator>Pablo Viale</dc:creator>
				<category><![CDATA[ASP.NET 2.0 / 3.5]]></category>

		<guid isPermaLink="false">http://www.viale.mx/?p=532</guid>
		<description><![CDATA[Para obtener el UserID del usuario actualmente logueado, utiliza el siguiente código: Clic para mostrar texto plano VB.NET: Dim UsuarioLogueado As MembershipUser = Membership.GetUser&#40;&#41; Dim ElGUID As Guid = UsuarioLogueado.ProviderUserKey 'Si lo necesitas como string utiliza ElGUID.ToString En el ejemplo el UserId queda almacenado en la variable ElGUID que es de tipo Guid (Globally unique [...]]]></description>
			<content:encoded><![CDATA[<p>Para obtener el UserID del usuario actualmente logueado, utiliza el siguiente código:</p>
<div class="igBar"><span id="lvbnet-12"><a href="#" onclick="javascript:showPlainTxt('vbnet-12'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-12">
<div class="vbnet">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">Dim</span> UsuarioLogueado <span style="color: #FF8000;">As</span> MembershipUser = Membership.<span style="color: #0000FF;">GetUser</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0600FF;">Dim</span> ElGUID <span style="color: #FF8000;">As</span> Guid = UsuarioLogueado.<span style="color: #0000FF;">ProviderUserKey</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #008080; font-style: italic;">'Si lo necesitas como string utiliza ElGUID.ToString </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>En el ejemplo el <em>UserId</em> queda almacenado en la variable <em>ElGUID</em> que es de tipo <em>Guid (Globally unique identifier)</em>. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.viale.mx/2010/11/26/como-obtener-el-guid-del-usuario-logueado/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crea botones para tus formularios con CSS</title>
		<link>http://www.viale.mx/2010/11/20/crea-botones-para-tus-formularios-con-css/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=crea-botones-para-tus-formularios-con-css</link>
		<comments>http://www.viale.mx/2010/11/20/crea-botones-para-tus-formularios-con-css/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 18:01:11 +0000</pubDate>
		<dc:creator>Pablo Viale</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.viale.mx/2010/11/20/crea-botones-para-tus-formularios-con-css/</guid>
		<description><![CDATA[En esta página encuentras el CSS Button Designer, una buena herramienta para crear el código CSS de tus botones. La interface es gráfica y te permite modificar todo lo relacionado con el botón, como fondo, bordes, tipo de letra, ancho, alto, etc. Al final te presenta el código que debes copiar y pegar en tu [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.pagetutor.com/button_designer/index.html" target="_blank">En esta página encuentras el CSS Button Designer</a>, una buena herramienta para crear el código CSS de tus botones. La interface es gráfica y te permite modificar todo lo relacionado con el botón, como fondo, bordes, tipo de letra, ancho, alto, etc.</p>
<p>Al final te presenta el código que debes copiar y pegar en tu hoja de estilos.</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/11/image5.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: ; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.viale.mx/wp-content/uploads/2010/11/image_thumb5.png" width="567" height="345" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.viale.mx/2010/11/20/crea-botones-para-tus-formularios-con-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Utilizando m&#250;ltiples controles UpdateProgress en una sola p&#225;gina</title>
		<link>http://www.viale.mx/2010/11/12/utilizando-multiples-controles-updateprogress-en-una-sola-pagina/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=utilizando-multiples-controles-updateprogress-en-una-sola-pagina</link>
		<comments>http://www.viale.mx/2010/11/12/utilizando-multiples-controles-updateprogress-en-una-sola-pagina/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 17:32:54 +0000</pubDate>
		<dc:creator>Pablo Viale</dc:creator>
				<category><![CDATA[ASP.NET 2.0 / 3.5]]></category>
		<category><![CDATA[Ajax]]></category>

		<guid isPermaLink="false">http://www.viale.mx/?p=510</guid>
		<description><![CDATA[Si tienes dos o más controles UpdatePanel que quieres que se actualicen por separado, quizás también quieras tener diferentes indicadores “un momento por favor…” para cada uno de ellos, con la finalidad de que se muestren en diferentes posiciones. Antes de darte la solución considera este código: Clic para mostrar texto plano ASP: &#60;asp:ScriptManager ID="ScriptManager1" [...]]]></description>
			<content:encoded><![CDATA[<p><html xmlns="">Si tienes dos o más controles <strong>UpdatePanel</strong> que quieres que se actualicen por separado, quizás también quieras tener diferentes indicadores “un momento por favor…” para cada uno de ellos, con la finalidad de que se muestren en diferentes posiciones.</p>
<p>Antes de darte la solución considera este código:</p>
<div class="igBar"><span id="lasp-16"><a href="#" onclick="javascript:showPlainTxt('asp-16'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">ASP:</span>
<div id="asp-16">
<div class="asp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;asp:ScriptManager ID=<span style="color:#CC0000;">"ScriptManager1"</span> runat=<span style="color:#CC0000;">"server"</span> /&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;asp:UpdatePanel ID=<span style="color:#CC0000;">"UpdatePanel1"</span> runat=<span style="color:#CC0000;">"server"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;Triggers&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:AsyncPostBackTrigger ControlID=<span style="color:#CC0000;">"Boton1"</span> EventName=<span style="color:#CC0000;">"Click"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/Triggers&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;ContentTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:UpdateProgress ID=<span style="color:#CC0000;">"UpdateProgress1"</span> runat=<span style="color:#CC0000;">"server"</span> DisplayAfter=<span style="color:#CC0000;">"0"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ProgressTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Un momento por favor...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ProgressTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/asp:UpdateProgress&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Button ID=<span style="color:#CC0000;">"Boton1"</span> runat=<span style="color:#CC0000;">"server"</span> Text=<span style="color:#CC0000;">"Botón 1"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID=<span style="color:#CC0000;">"Hora1"</span> runat=<span style="color:#CC0000;">"server"</span> Text=<span style="color:#CC0000;">"&lt;br /&gt;"</span>&gt;&lt;/asp:Label&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/ContentTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/asp:UpdatePanel&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;br /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;br /&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;asp:UpdatePanel ID=<span style="color:#CC0000;">"UpdatePanel2"</span> runat=<span style="color:#CC0000;">"server"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;Triggers&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:AsyncPostBackTrigger ControlID=<span style="color:#CC0000;">"Boton2"</span> EventName=<span style="color:#CC0000;">"Click"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/Triggers&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;ContentTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:UpdateProgress ID=<span style="color:#CC0000;">"UpdateProgress2"</span> runat=<span style="color:#CC0000;">"server"</span> DisplayAfter=<span style="color:#CC0000;">"0"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ProgressTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Un momento por favor...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ProgressTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/asp:UpdateProgress&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Button ID=<span style="color:#CC0000;">"Boton2"</span> runat=<span style="color:#CC0000;">"server"</span> Text=<span style="color:#CC0000;">"Botón 2"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID=<span style="color:#CC0000;">"Hora2"</span> runat=<span style="color:#CC0000;">"server"</span> Text=<span style="color:#CC0000;">""</span>&gt;&lt;/asp:Label&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/ContentTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/asp:UpdatePanel&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lvbnet-17"><a href="#" onclick="javascript:showPlainTxt('vbnet-17'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">VB.NET:</span>
<div id="vbnet-17">
<div class="vbnet">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Protected <span style="color: #0600FF;">Sub</span> Boton1_Click<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">EventArgs</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Handles</span> Boton1.<span style="color: #0000FF;">Click</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Threading.<span style="color: #0000FF;">Thread</span>.<span style="color: #0000FF;">Sleep</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">1000</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Hora1.<span style="color: #0000FF;">Text</span> = <span style="color: #808080;">"La hora es "</span> &amp; <span style="color: #0600FF;">Now</span>.<span style="color: #0000FF;">ToString</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Protected <span style="color: #0600FF;">Sub</span> Boton2_Click<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sender <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Object</span>, <span style="color: #FF8000;">ByVal</span> e <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">EventArgs</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">Handles</span> Boton2.<span style="color: #0000FF;">Click</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Threading.<span style="color: #0000FF;">Thread</span>.<span style="color: #0000FF;">Sleep</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;color:#800000;">1000</span><span style="color: #000000;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Hora2.<span style="color: #0000FF;">Text</span> = <span style="color: #808080;">"La hora es "</span> &amp; <span style="color: #0600FF;">Now</span>.<span style="color: #0000FF;">ToString</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>El cual genera lo siguiente:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/11/image.png"><img title="image" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" src="http://www.viale.mx/wp-content/uploads/2010/11/image_thumb.png" border="0" alt="image" width="244" height="111" /></a></p>
<p>Y al hacer clic en el botón 1 (o en el 2) ocurre lo siguiente:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/11/image1.png"><img title="image" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" src="http://www.viale.mx/wp-content/uploads/2010/11/image_thumb1.png" border="0" alt="image" width="170" height="121" /></a></p>
<p>Los dos controles <strong>UpdateProgress</strong> aparecieron porque es su comportamiento natural cuando se hace un postBack. Obviamente queremos que cada uno aparezca únicamente cuando se haga clic en su botón correspondiente.</p>
<p>Para hacerlo, utiliza la propiedad <strong>AssociatedUpdatePanelID </strong>del control <strong>UpdateProgress,</strong> de tal forma que tu código quede así:</p>
<div class="igBar"><span id="lasp-18"><a href="#" onclick="javascript:showPlainTxt('asp-18'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">ASP:</span>
<div id="asp-18">
<div class="asp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;asp:ScriptManager ID=<span style="color:#CC0000;">"ScriptManager1"</span> runat=<span style="color:#CC0000;">"server"</span> /&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;asp:UpdatePanel ID=<span style="color:#CC0000;">"UpdatePanel1"</span> runat=<span style="color:#CC0000;">"server"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;Triggers&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:AsyncPostBackTrigger ControlID=<span style="color:#CC0000;">"Boton1"</span> EventName=<span style="color:#CC0000;">"Click"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/Triggers&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;ContentTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:UpdateProgress ID=<span style="color:#CC0000;">"UpdateProgress1"</span> runat=<span style="color:#CC0000;">"server"</span> DisplayAfter=<span style="color:#CC0000;">"0"</span> AssociatedUpdatePanelID=<span style="color:#CC0000;">"UpdatePanel1"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ProgressTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Un momento por favor...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ProgressTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/asp:UpdateProgress&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Button ID=<span style="color:#CC0000;">"Boton1"</span> runat=<span style="color:#CC0000;">"server"</span> Text=<span style="color:#CC0000;">"Botón 1"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID=<span style="color:#CC0000;">"Hora1"</span> runat=<span style="color:#CC0000;">"server"</span> Text=<span style="color:#CC0000;">"&lt;br /&gt;"</span>&gt;&lt;/asp:Label&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/ContentTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/asp:UpdatePanel&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;br /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;br /&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;asp:UpdatePanel ID=<span style="color:#CC0000;">"UpdatePanel2"</span> runat=<span style="color:#CC0000;">"server"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;Triggers&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:AsyncPostBackTrigger ControlID=<span style="color:#CC0000;">"Boton2"</span> EventName=<span style="color:#CC0000;">"Click"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/Triggers&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;ContentTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:UpdateProgress ID=<span style="color:#CC0000;">"UpdateProgress2"</span> runat=<span style="color:#CC0000;">"server"</span> DisplayAfter=<span style="color:#CC0000;">"0"</span> AssociatedUpdatePanelID=<span style="color:#CC0000;">"UpdatePanel2"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ProgressTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Un momento por favor...</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ProgressTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/asp:UpdateProgress&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Button ID=<span style="color:#CC0000;">"Boton2"</span> runat=<span style="color:#CC0000;">"server"</span> Text=<span style="color:#CC0000;">"Botón 2"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;asp:Label ID=<span style="color:#CC0000;">"Hora2"</span> runat=<span style="color:#CC0000;">"server"</span> Text=<span style="color:#CC0000;">""</span>&gt;&lt;/asp:Label&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/ContentTemplate&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/asp:UpdatePanel&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><em>El código VB quedaría igual</em></p>
<p>De esta forma al oprimir el primer botón ocurrirá esto:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/11/image2.png"><img title="image" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" src="http://www.viale.mx/wp-content/uploads/2010/11/image_thumb2.png" border="0" alt="image" width="181" height="112" /></a></p>
<p>Y al oprimir el segundo botón verás esto:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/11/image3.png"><img title="image" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" src="http://www.viale.mx/wp-content/uploads/2010/11/image_thumb3.png" border="0" alt="image" width="289" height="110" /></a></p>
<p>De esta forma puedes colocar varios indicadores para cada una de las partes en las que dividas visualmente tu página.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viale.mx/2010/11/12/utilizando-multiples-controles-updateprogress-en-una-sola-pagina/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Live Messenger no funciona en Vista o Windows 7</title>
		<link>http://www.viale.mx/2010/08/14/windows-live-messenger-no-funciona-en-vista-o-windows-7/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=windows-live-messenger-no-funciona-en-vista-o-windows-7</link>
		<comments>http://www.viale.mx/2010/08/14/windows-live-messenger-no-funciona-en-vista-o-windows-7/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 21:33:15 +0000</pubDate>
		<dc:creator>Pablo Viale</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.viale.mx/2010/08/14/windows-live-messenger-no-funciona-en-vista-o-windows-7/</guid>
		<description><![CDATA[Si te encuentras con el problema de que tienes Windows Vista o Windows 7 e instalas Windows Live Messenger, y al intentar conectarte los monitos se quedan dando vueltas eternamente y nunca logras establecer conexión, intenta este truco. Haz clic en el botón de inicio y teclea “cmd”, y cuando salga el icono, dale clic [...]]]></description>
			<content:encoded><![CDATA[<p>Si te encuentras con el problema de que tienes Windows Vista o Windows 7 e instalas Windows Live Messenger, y al intentar conectarte los monitos se quedan dando vueltas eternamente y nunca logras establecer conexión, intenta este truco.</p>
<p>Haz clic en el botón de inicio y teclea “cmd”, y cuando salga el icono, dale clic con el botón derecho y selecciona “Ejecutar como administrador”:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/08/image.png"><img style="border-bottom: 0px; border-left: 0px; margin: 0px; display: inline; border-top: 0px; border-right: 0px" class="wlDisabledImage" title="image" border="0" alt="image" src="http://www.viale.mx/wp-content/uploads/2010/08/image_thumb.png" width="312" height="118" /></a></p>
<p>Cuando aparezca la ventana negra, teclea lo siguiente:</p>
<p>netsh int tcp set global autotuninglevel=disabled</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/08/clip_image002.jpg"><img style="border-bottom: 0px; border-left: 0px; margin: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://www.viale.mx/wp-content/uploads/2010/08/clip_image002_thumb.jpg" width="532" height="64" /></a></p>
<p>Y listo, ya con eso queda arreglado tu Windows Live Messenger.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viale.mx/2010/08/14/windows-live-messenger-no-funciona-en-vista-o-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>El bot&#243;n LIKE de Facebook no se ve en Internet Explorer</title>
		<link>http://www.viale.mx/2010/07/20/el-boton-like-de-facebook-no-se-ve-en-internet-explorer/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=el-boton-like-de-facebook-no-se-ve-en-internet-explorer</link>
		<comments>http://www.viale.mx/2010/07/20/el-boton-like-de-facebook-no-se-ve-en-internet-explorer/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 17:29:03 +0000</pubDate>
		<dc:creator>Pablo Viale</dc:creator>
				<category><![CDATA[Varios]]></category>

		<guid isPermaLink="false">http://www.viale.mx/?p=493</guid>
		<description><![CDATA[Si estás tratando de integrar el botón LIKE de Facebook en tu sitio web y lo ves en todos los navegadores excepto en Internet Explorer, añade este atributo al tag HTML: Clic para mostrar texto plano HTML: xmlns:fb=&#34;http://www.facebook.com/2008/fbml&#34; De tal forma que tu tag HTML al final deberá verse así: Clic para mostrar texto plano [...]]]></description>
			<content:encoded><![CDATA[<p>Si estás tratando de integrar el botón LIKE de Facebook en tu sitio web y lo ves en todos los navegadores excepto en Internet Explorer, añade este atributo al tag HTML:</p>
<div class="igBar"><span id="lhtml-21"><a href="#" onclick="javascript:showPlainTxt('html-21'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-21">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">xmlns:fb=&quot;http://www.facebook.com/2008/fbml&quot; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>De tal forma que tu tag HTML al final deberá verse así:</p>
<div class="igBar"><span id="lhtml-22"><a href="#" onclick="javascript:showPlainTxt('html-22'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-22">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">&lt;html</span></a> xmlns:fb=<span style="color: #ff0000;">"http://www.facebook.com/2008/fbml"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Listo, con eso arreglas el problema.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viale.mx/2010/07/20/el-boton-like-de-facebook-no-se-ve-en-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>C&#243;mo instalar PHP en Windows 2003 con IIS 6</title>
		<link>http://www.viale.mx/2010/07/16/como-instalar-php-en-windows-2003-con-iis-6/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=como-instalar-php-en-windows-2003-con-iis-6</link>
		<comments>http://www.viale.mx/2010/07/16/como-instalar-php-en-windows-2003-con-iis-6/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 18:31:38 +0000</pubDate>
		<dc:creator>Pablo Viale</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.viale.mx/?p=487</guid>
		<description><![CDATA[Generalmente es un dolor de cabeza instalar PHP en Windows, es por eso que hice esta guía que explica como hacer una instalación básica de PHP. Si necesitas algo más especializado como instalar extensiones utiliza Google para encontrar otros tutoriales. 1. Descarga los archivos correctos Ingresa a http://php.net/downloads.php y descarga el “zip package”. No sigas [...]]]></description>
			<content:encoded><![CDATA[<p>Generalmente es un dolor de cabeza instalar PHP en Windows, es por eso que hice esta guía que explica como hacer una instalación básica de PHP. Si necesitas algo más especializado como instalar extensiones utiliza Google para encontrar otros tutoriales.</p>
<h2>1. Descarga los archivos correctos</h2>
<p>Ingresa a <a href="http://php.net/downloads.php">http://php.net/downloads.php</a> y descarga el “zip package”. No sigas la liga que dice windows.php.net:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/07/image.png"><img class="wlDisabledImage" style="display: inline; border: 0px;" title="image" src="http://www.viale.mx/wp-content/uploads/2010/07/image_thumb.png" border="0" alt="image" width="497" height="529" /></a></p>
<p>Cópialos en tu servidor en “C:\PHP”. Apégate a esta ruta, no intentes rutas extrañas que tengan espacios o que sean muy largas.</p>
<h2>2. Configura PHP.INI</h2>
<p>En los archivos que acabas de descomprimir encontrarás un archivo llamado “php.ini-recommended” o algo similar, renómbralo a “php.ini”, y con un editor de texto plano encuentra la línea:</p>
<p>; cgi.force_redirect = 1</p>
<p>Y cámbiala por:</p>
<p>cgi.force_redirect = 0</p>
<h2>3. Copia los archivos necesarios al directorio de Windows</h2>
<p>Copia los siguientes archivos:</p>
<ul>
<li>php5isapi.dll</li>
<li>php.ini</li>
</ul>
<p>a la carpeta “C:\WINDOWS\system32”</p>
<p>O bien, agrega la ruta “c:\php” a la variable de entorno PATH del servidor.</p>
<h2>4. Configura IIS</h2>
<p>En la consola de IIS abre “Web service extensions” y agrega una nueva:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/07/image1.png"><img class="wlDisabledImage" style="display: inline; border: 0px;" title="image" src="http://www.viale.mx/wp-content/uploads/2010/07/image_thumb1.png" border="0" alt="image" width="488" height="209" /></a></p>
<p>Pon “PHP” en “Extension name” y selecciona el archivo “c:\php\php5isapi.dll”. Marca la casilla que dice “Set extension status to Allowed”.</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/07/image2.png"><img class="wlDisabledImage" style="margin: 0px; display: inline; border: 0px;" title="image" src="http://www.viale.mx/wp-content/uploads/2010/07/image_thumb2.png" border="0" alt="image" width="398" height="339" /></a></p>
<p>Al final debe verse así en la lista de extensiones:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/07/image3.png"><img class="wlDisabledImage" style="margin: 0px; display: inline; border: 0px;" title="image" src="http://www.viale.mx/wp-content/uploads/2010/07/image_thumb3.png" border="0" alt="image" width="258" height="18" /></a></p>
<p>Todavía en la consola de IIS, selecciona el sitio web o el directorio virtual al que quieras dar permisos de ejecutar PHP y abre sus propiedades. Ve a la pestaña “Home Directory” y haz clic en el botón “Configuration”:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/07/image4.png"><img class="wlDisabledImage" style="margin: 0px; display: inline; border: 0px;" title="image" src="http://www.viale.mx/wp-content/uploads/2010/07/image_thumb4.png" border="0" alt="image" width="472" height="458" /></a></p>
<p>En la nueva ventana, abre la pestaña “Mappings” y agrega una extensión ISAPI con el archivo “C:\php\php5isapi.dll” y los verbos “GET,POST,HEAD”:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/07/image5.png"><img class="wlDisabledImage" style="margin: 0px; display: inline; border: 0px;" title="image" src="http://www.viale.mx/wp-content/uploads/2010/07/image_thumb5.png" border="0" alt="image" width="472" height="458" /></a></p>
<p>Haz clic en todos los botones “OK” hasta salir.</p>
<h2>5. Configura los permisos</h2>
<p>Ahora fíjate en qué “Application pool” está corriendo tu sitio web o directorio virtual.</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/07/image6.png"><img class="wlDisabledImage" style="margin: 0px; display: inline; border: 0px;" title="image" src="http://www.viale.mx/wp-content/uploads/2010/07/image_thumb6.png" border="0" alt="image" width="472" height="458" /></a></p>
<p>Y en la consola de IIS, arriba de “Web Sites” encontrarás los “Application pools”, abre las propiedades de la “pool” en la que corre tu sitio web y en su pestaña “Identity” fíjate qué usuario se utiliza:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/07/image7.png"><img class="wlDisabledImage" style="margin: 0px; display: inline; border: 0px;" title="image" src="http://www.viale.mx/wp-content/uploads/2010/07/image_thumb7.png" border="0" alt="image" width="461" height="435" /></a></p>
<p>Ahora tienes que darle permisos a este usuario sobre el directorio “c:\php”.</p>
<p>Abre el explorador de Windows y señala el directorio “php” dentro de “c:\”, y ve a sus propiedades, luego a la pestaña “Security”, haz clic en “Add” y agrega al usuario que encontraste arriba. Luego oprime el botón “Advanced” y asegúrate de que esté marcada la casilla que dice “Replace permission entries on all child objects with entries shown here that apply to child objects”:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/07/image8.png"><img class="wlDisabledImage" style="margin: 0px; display: inline; border: 0px;" title="image" src="http://www.viale.mx/wp-content/uploads/2010/07/image_thumb8.png" border="0" alt="image" width="618" height="501" /></a></p>
<p>Oprime “OK” hasta cerrar todo.</p>
<h2>6. Haz pruebas</h2>
<p>Crea un archivo llamado, por ejemplo, “phpinfo.php” y agrega esta línea de código:</p>
<p>
<div class="igBar"><span id="lphp-24"><a href="#" onclick="javascript:showPlainTxt('php-24'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-24">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?</span> <a href="http://www.php.net/phpinfo"><span style="color:#000066;">phpinfo</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Ahora abre esa página en un navegador, si ves esto:</p>
<p><a href="http://www.viale.mx/wp-content/uploads/2010/07/image9.png"><img class="wlDisabledImage" style="margin: 0px; display: inline; border: 0px;" title="image" src="http://www.viale.mx/wp-content/uploads/2010/07/image_thumb9.png" border="0" alt="image" width="604" height="247" /></a></p>
<p>es que lo lograste.</p>
<p>Si no, <img class="wlEmoticon wlEmoticon-sadsmile" style="border-style: none;" src="http://www.viale.mx/wp-content/uploads/2010/07/wlEmoticonsadsmile.png" alt="Triste" />, intenta buscar los errores que te aparezcan en Google.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viale.mx/2010/07/16/como-instalar-php-en-windows-2003-con-iis-6/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cómo asignar un mismo procedimiento a múltiples botones</title>
		<link>http://www.viale.mx/2010/07/05/como-asignar-un-mismo-procedimiento-a-multiples-botones/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=como-asignar-un-mismo-procedimiento-a-multiples-botones</link>
		<comments>http://www.viale.mx/2010/07/05/como-asignar-un-mismo-procedimiento-a-multiples-botones/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 17:09:31 +0000</pubDate>
		<dc:creator>Pablo Viale</dc:creator>
				<category><![CDATA[ASP.NET 2.0 / 3.5]]></category>

		<guid isPermaLink="false">http://www.viale.mx/?p=463</guid>
		<description><![CDATA[Supongamos que por alguna razón quieres colocar dos botones en una página ASP.NET que ejecuten el mismo procedimiento. Por ejemplo, un largo formulario con dos botones para guardar los cambios. Solamente tienes que escribir el código para uno de los botones, como normalmente lo harías. Y para el segundo, establece el evento "OnClick" al procedimiento [...]]]></description>
			<content:encoded><![CDATA[<p>Supongamos que por alguna razón quieres colocar dos botones en una página ASP.NET que ejecuten el mismo procedimiento. Por ejemplo, un largo formulario con dos botones para guardar los cambios.</p>
<p>Solamente tienes que escribir el código para uno de los botones, como normalmente lo harías.</p>
<p>Y para el segundo, establece el evento "OnClick" al procedimiento del primer botón.</p>
<p>Aquí está un ejemplo con los dos botones:</p>
<div class="igBar"><span id="lasp-26"><a href="#" onclick="javascript:showPlainTxt('asp-26'); return false;">Clic para mostrar texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">ASP:</span>
<div id="asp-26">
<div class="asp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;asp:Button ID=<span style="color:#CC0000;">"Guardar"</span> runat=<span style="color:#CC0000;">"server"</span> Text=<span style="color:#CC0000;">"Guardar cambios"</span> /&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;asp:Button ID=<span style="color:#CC0000;">"Guardar2"</span> runat=<span style="color:#CC0000;">"server"</span> Text=<span style="color:#CC0000;">"Guardar cambios"</span> OnClick=<span style="color:#CC0000;">"Guardar_Click"</span> /&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>¡Suerte!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viale.mx/2010/07/05/como-asignar-un-mismo-procedimiento-a-multiples-botones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

