<?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>Alex Medina &#187; Foco</title>
	<atom:link href="http://www.alexmedina.net/blog/tag/foco/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alexmedina.net/blog</link>
	<description>Porque todos los días se aprende algo nuevo...</description>
	<lastBuildDate>Thu, 22 Dec 2011 09:40:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ASP.NET AJAX UpdatePanel ScriptManager – Dirigir el Foco hacia un Control</title>
		<link>http://www.alexmedina.net/blog/2010/04/27/asp-net-ajax-updatepanel-scriptmanager-%e2%80%93-dirigir-el-foco-hacia-un-control/</link>
		<comments>http://www.alexmedina.net/blog/2010/04/27/asp-net-ajax-updatepanel-scriptmanager-%e2%80%93-dirigir-el-foco-hacia-un-control/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 15:03:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Foco]]></category>
		<category><![CDATA[Focus]]></category>
		<category><![CDATA[UpdatePanel]]></category>

		<guid isPermaLink="false">http://alexmedina.net/blog/?p=102</guid>
		<description><![CDATA[Tradicionalmente cuando queremos dirigir el foco hacia un control hacemos esto: Control.focus(); PERO si trabajamos con ASP.NET AJAX con un ScriptManager y un UpdatePanel al hacer postback asincrono el UpdatePanel , pierde el foco, para que esto no ocurra insertamos esta linea de codigo para lograr tener el foco donde queramos. ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page); [...]]]></description>
			<content:encoded><![CDATA[<p>Tradicionalmente cuando queremos dirigir el foco hacia un control hacemos esto:</p>
<p><code>Control.focus();</code></p>
<p>PERO si trabajamos con ASP.NET AJAX con un ScriptManager y un UpdatePanel al hacer postback asincrono el UpdatePanel , pierde el foco, para que esto no ocurra insertamos esta linea de codigo para lograr tener el foco donde queramos.</p>
<p><code>ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);</code></p>
<p>scriptManager.SetFocus(CONTROL);</p>
<p>CONTROL = Textbox(Caja de Texto)</p>
<p>Espero los haya ayudado , suerte con sus desarrollos.</p>
<p>PS: el metodo.SetFocus(CONTROL) , tiene como paramentro cualquier tipo de CONTROL ASP.NET asi que podemos usar cualquier CONTROL</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexmedina.net/blog/2010/04/27/asp-net-ajax-updatepanel-scriptmanager-%e2%80%93-dirigir-el-foco-hacia-un-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

