<?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:blogger='http://schemas.google.com/blogger/2008' 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-7733664808680981733</id><updated>2025-03-26T12:13:58.437-07:00</updated><category term="c#"/><category term=".Net"/><category term="ASP.Net"/><category term="Visual Studio"/><category term="Apuntes y trucos"/><category term="Windows Forms"/><category term="Sql"/><category term="web"/><category term="windows application"/><category term="Javascript"/><category term=".aspx"/><category term="Procedimiento almacenado"/><category term="Chrome"/><category term="Html"/><category term="Noticias"/><category term="DataTable"/><category term="Google"/><category term="IIS"/><category term="Internet Explorer"/><category term="Vb"/><category term="jQuery"/><category term="AJAX"/><category term="Analytics"/><category term="JOB"/><category term="Select Distinct"/><category term="X-UA-Compatible"/><category term="Xml"/><category term="textbox"/><category term="web service"/><category term="Blogs"/><category term="Comando"/><category term="CommandField"/><category term="CommandName"/><category term="Correo electronico"/><category term="Datename"/><category term="Datepart"/><category term="Exportar Dataset"/><category term="Firefox"/><category term="Form MDI"/><category term="GridView"/><category term="IE"/><category term="IE10"/><category term="Inteligencia Artificial"/><category term="Microsoft Internet"/><category term="ODBC"/><category term="OnRowDataBound"/><category term="OnRowDeleting"/><category term="Oracle"/><category term="PdfSharp"/><category term="Plugin"/><category term="Random"/><category term="SEO"/><category term="SO"/><category term="System.Net.Mail"/><category term="Toolbox"/><category term="Valida correo"/><category term="Windows 7"/><category term="almacenado"/><category term="devenv"/><category term="ejemplo"/><category term="eventos"/><category term="onblur"/><category term="onchance"/><category term="onfocus"/><category term="tablas"/><category term="visitas"/><category term="web.config"/><title type='text'>DevCate Programación Web</title><subtitle type='html'>DevCate Programación, nace por la necesidad de encontrar de forma rápida y fácil código fuente de calidad en diferentes lenguajes de Programación, sea Web o escritorio. Te invito a conocerlo.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>56</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-9203651072354624681</id><published>2024-01-22T04:22:00.000-08:00</published><updated>2024-01-22T04:22:07.143-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apuntes y trucos"/><category scheme="http://www.blogger.com/atom/ns#" term="Procedimiento almacenado"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql"/><title type='text'> ¡Descubre el Secreto de la Edad en SQL Server! Calcula Edades en un Parpadeo</title><content type='html'>&lt;p&gt;&lt;b&gt;¿Te has preguntado alguna vez cómo calcular la edad de forma rápida y eficiente utilizando SQL Server?&lt;/b&gt; ¡No busques más! En este breve tutorial, te revelaremos un forma fácil para obtener la edad de tus datos con solo unos pocos pasos en SQL Server.&lt;/p&gt;&lt;p&gt;La clave para calcular la edad radica en la función &lt;a href=&quot;https://devcate.blogspot.com/2013/12/calcular-la-edad-en-anos-meses-y-dias.html&quot; target=&quot;_blank&quot;&gt;DATEDIFF &lt;/a&gt;y algunos trucos astutos. Para empezar, necesitarás la fecha de nacimiento de tus usuarios o clientes. Luego, con un simple cálculo, podrás mostrar la edad en años de manera precisa.&lt;/p&gt;&lt;p&gt;Sin embargo, solo utilizando la función DateDiff tendríamos inconvenientes, solo resta los años no tiene en cuenta el mes y el día.&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;¿Cómo lo Solucionamos?&lt;/h2&gt;&lt;p&gt;&amp;nbsp;El siguiente código utiliza la función DateDiff y me ha funcionado mucho&lt;/p&gt;

&lt;pre class=&quot;brush: sql;&quot;&gt;Select DATEDIFF(YEAR,Convert(datetime, &#39;22/01/1980&#39;,103),GETDATE())-
			(CASE  WHEN DATEADD(YY,DATEDIFF(YEAR,Convert(datetime,&#39;22/01/1980&#39;,103),GETDATE()),
					Convert(datetime,&#39;22/01/1980&#39;,103))&amp;gt;GETDATE() THEN 1
				ELSE 0  End) as Edad
&lt;/pre&gt;

&lt;p&gt;Pero existe este otro código, que me gusta y funciona de maravilla:&lt;/p&gt;
&lt;pre class=&quot;brush: sql;&quot;&gt;Select Floor((cast(convert(varchar(8),getdate(),112) as int)-
	Cast(convert(varchar(8),Convert(datetime,&#39;22/01/1980&#39;,103),112) as int) ) / 10000) as Edad 
&lt;/pre&gt;
&lt;p&gt;Para este último ejemplo; convertimos la fecha como una cadena pegada (22011980), esto lo restamos, luego dividimos entre 10000 y finalmente redondeamos con la función Sql floor.&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/9203651072354624681/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2024/01/descubre-el-secreto-de-la-edad-en-sql.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/9203651072354624681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/9203651072354624681'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2024/01/descubre-el-secreto-de-la-edad-en-sql.html' title=' ¡Descubre el Secreto de la Edad en SQL Server! Calcula Edades en un Parpadeo'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-5450171197433830632</id><published>2023-12-07T10:13:00.000-08:00</published><updated>2023-12-07T10:13:06.324-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Inteligencia Artificial"/><title type='text'>¿Cómo Usar la Inteligencia Artificial para Ganar Dinero?</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKtSz65hwSB4bGw3fzgN-ukcHWbD1NGP5pkMBVAe9wu5jy9xnfRB2tr_Y6dR0sT1lWaUpew0up_A9ySVyXGDX9uMG3r-NWE3Vg8D3As2UGwbH3_TKBX9z-cNcnKuak-yc5LB-x_k2nj9nv7RPBT4j1OITiT9cVqFl1gJ2CyhWvkS5vbXD3pyf5oiOzICQ/s640/Inteligencia_Artificial.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Cómo Usar la Inteligencia Artificial&quot; border=&quot;0&quot; data-original-height=&quot;427&quot; data-original-width=&quot;640&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKtSz65hwSB4bGw3fzgN-ukcHWbD1NGP5pkMBVAe9wu5jy9xnfRB2tr_Y6dR0sT1lWaUpew0up_A9ySVyXGDX9uMG3r-NWE3Vg8D3As2UGwbH3_TKBX9z-cNcnKuak-yc5LB-x_k2nj9nv7RPBT4j1OITiT9cVqFl1gJ2CyhWvkS5vbXD3pyf5oiOzICQ/w320-h214/Inteligencia_Artificial.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&lt;span style=&quot;color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; white-space-collapse: preserve;&quot;&gt;¿Te has preguntado alguna vez cómo la inteligencia artificial (IA) puede convertirse en tu aliado para generar ingresos? La conjunción entre la innovación tecnológica y las oportunidades financieras está dando paso a un mundo donde la IA no solo revoluciona la forma en que vivimos y trabajamos, sino también en cómo podemos obtener ganancias. ¡Sigue leyendo para descubrir cómo utilizar esta tecnología para maximizar tus ingresos!&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;h4 style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: var(--tw-prose-headings); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; font-weight: 400; line-height: 1.5; margin: 1rem 0px 0.5rem; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: inherit; font-weight: 700;&quot;&gt;¿Qué es la Inteligencia Artificial y su Potencial en la Generación de Ingresos?&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; margin: 0px 0px 1.25em; white-space-collapse: preserve;&quot;&gt;La inteligencia artificial se refiere a la capacidad de las máquinas para aprender, razonar y realizar tareas de manera autónoma, imitando la inteligencia humana. En el ámbito financiero, su aplicación va más allá de simplificar procesos: se convierte en una herramienta poderosa para aumentar la eficiencia y descubrir oportunidades de negocio.&lt;/p&gt;&lt;h4 style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: var(--tw-prose-headings); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; font-weight: 400; line-height: 1.5; margin: 1rem 0px 0.5rem; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: inherit; font-weight: 700;&quot;&gt;Aplicaciones Prácticas para Ganar Dinero con Inteligencia Artificial&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; margin: 0px; text-align: left; white-space-collapse: preserve;&quot;&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: var(--tw-prose-bold); font-weight: 600;&quot;&gt;Trading Algorítmico:&lt;/span&gt; Los algoritmos de IA pueden analizar datos financieros en tiempo real y ejecutar operaciones automáticamente. Esto permite identificar patrones y tendencias que podrían resultar en decisiones más acertadas en el mercado de valores, divisas o criptomonedas.&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: var(--tw-prose-bold); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; font-weight: 600; white-space-collapse: preserve;&quot;&gt;Personalización y Marketing:&lt;/span&gt;&lt;span style=&quot;color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; white-space-collapse: preserve;&quot;&gt; La IA puede analizar el comportamiento de los usuarios para ofrecer contenido y productos personalizados, aumentando las conversiones y ventas. Herramientas de recomendación basadas en IA pueden optimizar estrategias de marketing y publicidad.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: var(--tw-prose-bold); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; font-weight: 600; white-space-collapse: preserve;&quot;&gt;Automatización de Procesos Empresariales:&lt;/span&gt;&lt;span style=&quot;color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; white-space-collapse: preserve;&quot;&gt; La implementación de IA en la automatización de tareas repetitivas libera tiempo para centrarse en actividades más estratégicas, aumentando la productividad y eficiencia operativa.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;h4 style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: var(--tw-prose-headings); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; font-weight: 400; line-height: 1.5; margin: 1rem 0px 0.5rem; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: inherit; font-weight: 700;&quot;&gt;Pasos para Capitalizar la IA y Obtener Ingresos&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; margin: 0px; white-space-collapse: preserve;&quot;&gt;&lt;/p&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;span style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: var(--tw-prose-bold); font-weight: 600;&quot;&gt;Educación Continua:&lt;/span&gt; Mantente actualizado sobre las últimas tendencias y avances en IA y tecnología financiera. La capacitación constante te permite aprovechar al máximo las herramientas disponibles.&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: var(--tw-prose-bold); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; font-weight: 600; white-space-collapse: preserve;&quot;&gt;Identifica Oportunidades:&lt;/span&gt;&lt;span style=&quot;color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; white-space-collapse: preserve;&quot;&gt; Analiza tu industria y encuentra áreas donde la IA pueda mejorar procesos o crear nuevos modelos de negocio. La innovación es clave para generar ingresos.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: var(--tw-prose-bold); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; font-weight: 600; white-space-collapse: preserve;&quot;&gt;Implementación Gradual:&lt;/span&gt;&lt;span style=&quot;color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; white-space-collapse: preserve;&quot;&gt; Comienza con proyectos pequeños e incrementa la complejidad a medida que ganes experiencia. La implementación progresiva minimiza riesgos y maximiza aprendizaje.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;h4 style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: var(--tw-prose-headings); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; font-weight: 400; line-height: 1.5; margin: 1rem 0px 0.5rem; white-space-collapse: preserve;&quot;&gt;&lt;span style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: inherit; font-weight: 700;&quot;&gt;La Importancia de la Inteligencia Artificial en la Era Financiera Moderna&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; margin: 0px 0px 1.25em; white-space-collapse: preserve;&quot;&gt;En un mundo impulsado por datos, la IA se ha convertido en un componente fundamental para la toma de decisiones financieras. Sin embargo, es crucial comprender sus limitaciones y estar consciente de los riesgos inherentes a su uso, como la dependencia excesiva en algoritmos o la falta de interpretación humana en ciertos escenarios.&lt;/p&gt;&lt;p style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; margin: 1.25em 0px; white-space-collapse: preserve;&quot;&gt;El potencial de la inteligencia artificial para generar ingresos es vasto, pero su éxito depende de la comprensión de su funcionamiento y la aplicación ética de esta tecnología. Es una herramienta poderosa, pero el conocimiento humano y la creatividad siguen siendo elementos irremplazables en el proceso de generación de ingresos.&lt;/p&gt;&lt;p style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; margin: 1.25em 0px; white-space-collapse: preserve;&quot;&gt;En resumen, la integración de la inteligencia artificial en estrategias financieras puede abrir nuevas oportunidades para ganar dinero, pero requiere un enfoque reflexivo y una comprensión profunda de su aplicación para maximizar su potencial.&lt;/p&gt;&lt;p style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; margin: 1.25em 0px; white-space-collapse: preserve;&quot;&gt;En conclusión, la inteligencia artificial ofrece un abanico de oportunidades para generar ingresos, pero su uso efectivo y ético es crucial. Mantente informado, identifica oportunidades y adopta un enfoque gradual para capitalizar al máximo el potencial de esta revolucionaria tecnología en el ámbito financiero.&lt;/p&gt;&lt;p style=&quot;--tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-ring-color: rgba(69,89,164,.5); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-rotate: 0; --tw-scale-x: 1; --tw-scale-y: 1; --tw-scroll-snap-strictness: proximity; --tw-shadow-colored: 0 0 transparent; --tw-shadow: 0 0 transparent; --tw-skew-x: 0; --tw-skew-y: 0; --tw-translate-x: 0; --tw-translate-y: 0; border: 0px solid rgb(217, 217, 227); box-sizing: border-box; color: #374151; font-family: Söhne, ui-sans-serif, system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, Ubuntu, Cantarell, &amp;quot;Noto Sans&amp;quot;, sans-serif, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; margin: 1.25em 0px 0px; white-space-collapse: preserve;&quot;&gt;¿Estás listo para dar el siguiente paso en la generación de ingresos con inteligencia artificial? ¡Adelante, el futuro está a tu alcance!&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/5450171197433830632/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2023/12/como-usar-la-inteligencia-artificial.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/5450171197433830632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/5450171197433830632'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2023/12/como-usar-la-inteligencia-artificial.html' title='¿Cómo Usar la Inteligencia Artificial para Ganar Dinero?'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKtSz65hwSB4bGw3fzgN-ukcHWbD1NGP5pkMBVAe9wu5jy9xnfRB2tr_Y6dR0sT1lWaUpew0up_A9ySVyXGDX9uMG3r-NWE3Vg8D3As2UGwbH3_TKBX9z-cNcnKuak-yc5LB-x_k2nj9nv7RPBT4j1OITiT9cVqFl1gJ2CyhWvkS5vbXD3pyf5oiOzICQ/s72-w320-h214-c/Inteligencia_Artificial.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-1227184172099998616</id><published>2020-02-19T13:36:00.001-08:00</published><updated>2024-02-05T04:38:14.282-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="PdfSharp"/><title type='text'>▷ Extracción de Páginas PDF en C#: Todo lo que Necesitas Saber para Potenciar tu Desarrollo</title><content type='html'>&lt;div&gt;La manipulación de archivos PDF es una tarea frecuente en el desarrollo de software, y extraer páginas específicas de un PDF puede ser esencial en muchos escenarios. En este artículo, exploraremos a fondo cómo realizar esta tarea utilizando C# sin la necesidad de código, proporcionando información valiosa y consejos prácticos para mejorar tus habilidades de desarrollo.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;¿Por qué Extraer Páginas PDF?&lt;/h3&gt;&lt;div&gt;Antes de sumergirnos en los detalles técnicos, es esencial comprender por qué puede ser necesario extraer páginas de un documento PDF. Algunas situaciones comunes incluyen la necesidad de crear vistas previas, generar informes específicos o dividir un documento grande en secciones más manejables. Independientemente de la razón, la capacidad de extraer páginas PDF de manera eficiente puede potenciar significativamente tus aplicaciones.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;Herramienta Principal: PDFSharp&lt;/h2&gt;
&lt;br /&gt;Para abordar la extracción de páginas PDF en C#, utilizaremos la popular librería PDFSharp. Esta herramienta de código abierto es ampliamente utilizada en el desarrollo .NET y facilita la manipulación de documentos PDF. Asegúrate de tener iTextSharp instalado en tu proyecto antes de comenzar.&lt;div&gt;&lt;br /&gt;&lt;div&gt;
Para este ejemplo utilizaremos la libreria gratuita llamada PDFSharp, es un componente OpenSource y es desarrollada en Visual Studio C#.&lt;br /&gt;
&lt;br /&gt;
La cual la podemos descargar a travez de la siguiente URL:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em style=&quot;background-color: white; text-align: justify;&quot;&gt;http://sourceforge.net/projects/pdfsharp/files/pdfsharp&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;h2&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;¿Cómo separar paginas PDF en archivos con PDFSharp (C#)?&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Vamos al grano, para utilizar el siguiente código, cree un nuevo proyecto, por ejemplo Aplicación Windows Forms de C#. Dentro del proyecto agregue la referencia del componente descargado &lt;/span&gt;&lt;b&gt;PdfSharp.dll&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;Agregamos los Using&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;
System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;
System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;
System.ComponentModel;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;
System.Data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;
System.Drawing;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;
System.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;
System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;
System.Windows.Forms;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;
Captura_Fuid.Clases;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;
System.IO;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;
PdfSharp.Pdf.IO;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;b&gt;using&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;b&gt;
PdfSharp.Pdf;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; SplitPDF()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; string&lt;/span&gt;
sPath;&lt;span style=&quot;color: green;&quot;&gt;// = Directory.GetCurrentDirectory();&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;
sNameFile = &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;
sPathF = &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;
Destino = &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;
sPathLocal = &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;
(dt.Rows.Count &amp;gt; 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//Ruta
en donde quedaran los archivos PDF&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sPathLocal =
ConfigurationManager.AppSettings[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;PathVisorFuid&quot;&lt;/span&gt;].ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Destino =
ConfigurationManager.AppSettings[&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;PathDestino&quot;&lt;/span&gt;].ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//Objeto
que tiene el archivo de salida&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PdfSharp.Pdf.PdfDocument Outpdf
= &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; PdfSharp.Pdf.PdfDocument();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//objeto
que contiene el archivo de entrada con todas las paginas&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PdfSharp.Pdf.PdfDocument
Inputpdf = PdfReader.Open(Destino,&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; PdfDocumentOpenMode.Import);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;//Consulto
cuantas paginas tiene el archivo&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
count = Inputpdf.PageCount;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
Fila = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;
(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; idx = 0; idx &amp;lt; count; idx++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Outpdf = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; PdfSharp.Pdf.PdfDocument();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&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;&lt;span style=&quot;color: green;&quot;&gt;//Se
extrae la pagina&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PdfPage page =
Inputpdf.Pages[idx];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&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;&lt;span style=&quot;color: green;&quot;&gt;//Se
agrega la pagina al objeto document de salida&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Outpdf.AddPage(page);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fila = idx + 1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&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;&lt;span style=&quot;color: green;&quot;&gt;//Para
este ejemplo se arma el nmbre del archivo&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sNameFile = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Page_&quot;&lt;/span&gt; + Fila + &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;.pdf&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sPathF = sPathLocal + sPath
+ &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;/&quot;&lt;/span&gt; + sNameFile;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&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;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;
(!File.Exists(sPathF))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Outpdf.Save(sPathF);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt; line-height: 107%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt; line-height: 107%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot;; font-size: 9.5pt; line-height: 107%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;

La extracción de páginas PDF en C# es una tarea valiosa en el desarrollo de software, y la librería PDFSharp&amp;nbsp;facilita enormemente este proceso. Al seguir los pasos mencionados y aplicar los consejos prácticos, podrás mejorar la eficiencia de tus aplicaciones y brindar una mejor experiencia a nuestros clientes y usuarios.&amp;nbsp;&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/1227184172099998616/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2020/02/ejemplo-pdfsharp-separar-Pdf.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/1227184172099998616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/1227184172099998616'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2020/02/ejemplo-pdfsharp-separar-Pdf.html' title='▷ Extracción de Páginas PDF en C#: Todo lo que Necesitas Saber para Potenciar tu Desarrollo'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-1647334009252748935</id><published>2019-09-20T11:30:00.000-07:00</published><updated>2020-02-19T13:54:49.113-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="Random"/><title type='text'>Random: Generar cadenas de texto aleatorio C#</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilWR8BHo1KyA-y0LsWDTdGYfwZbjAv77cuf_npAsuwJda748Tb5_afuNif9M37xTGaeEpoe7IHqj269mauXb4FxP0TguC-Nof1BSI7jQjyEfkfvNGU91eAVdgTaP9Ez4EY4sgyrQ1BD-M/s1600/woodtype-846088_640.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;133&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilWR8BHo1KyA-y0LsWDTdGYfwZbjAv77cuf_npAsuwJda748Tb5_afuNif9M37xTGaeEpoe7IHqj269mauXb4FxP0TguC-Nof1BSI7jQjyEfkfvNGU91eAVdgTaP9Ez4EY4sgyrQ1BD-M/s200/woodtype-846088_640.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Hoy les traigo un ejemplo que considero que debe estar publicado en &lt;a href=&quot;http://devcate.blogspot.com/&quot;&gt;Devcate&lt;/a&gt;, por la necesidad e importancia a la hora de generar nombres aleatorios, ya sea para identificar un objeto único en base de datos, un usuario o producto. Este ejemplo se realiza a partir de la librería &lt;b&gt;Random &lt;/b&gt;de .&lt;a href=&quot;http://devcate.blogspot.com.co/search/label/.Net&quot; target=&quot;_blank&quot;&gt;Net&lt;/a&gt;, que es muy utilizado también para &lt;a href=&quot;http://devcate.blogspot.com.co/2012/06/generar-numeros-aleatorios.html&quot; target=&quot;_blank&quot;&gt;generar números aleatorios&lt;/a&gt;.&lt;/div&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;h2&gt;
Ejemplo Random Code Generator C#&lt;/h2&gt;
Miremos el código:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; GenerarCodigo()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Random&lt;/span&gt;
obj = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Random&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;
sCadena = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
longitud = sCadena.Length;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;char&lt;/span&gt;
cletra;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;
nlongitud = 5;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;
sNuevacadena = &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp;for&lt;/span&gt;
(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 0; i &amp;lt; nlongitud; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cletra =
posibles[obj.Next(nlongitud)];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sNuevacadena +=
cletra.ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;
sNuevacadena;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
En el ejemplo anterior, se crea una función llamada &lt;i&gt;GenerarCodigo &lt;/i&gt;que retorna una cadena de 5 caracteres, espero les sea de mucha utilidad.&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/1647334009252748935/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2017/01/random-generar-cadenas-de-texto.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/1647334009252748935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/1647334009252748935'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2017/01/random-generar-cadenas-de-texto.html' title='Random: Generar cadenas de texto aleatorio C#'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilWR8BHo1KyA-y0LsWDTdGYfwZbjAv77cuf_npAsuwJda748Tb5_afuNif9M37xTGaeEpoe7IHqj269mauXb4FxP0TguC-Nof1BSI7jQjyEfkfvNGU91eAVdgTaP9Ez4EY4sgyrQ1BD-M/s72-c/woodtype-846088_640.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-2531216340087584886</id><published>2016-07-05T12:15:00.002-07:00</published><updated>2016-07-05T12:15:45.332-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="Correo electronico"/><category scheme="http://www.blogger.com/atom/ns#" term="Valida correo"/><title type='text'>Validar el formato de un correo electrónico en C#</title><content type='html'>Muchas veces tenemos la necesidad de validar en .Net el correo electronico que es ingresado por un usuario en un formulario o sitio web. En este caso se valida mas de un correo separado por punto y coma (;)&amp;nbsp; e identifica que correo es valido. Si no es valido lo deja en blanco.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;ValidarCorreoElectronico(&quot;Correoinvalido{{@prueba.com;CorreoValido@hotmail.com&quot;&lt;/pre&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;private string ValidarCorreoElectronico(string sCorreoElectronico)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string sCorreo = string.Empty;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (sCorreoElectronico != string.Empty)
&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;&amp;nbsp;&amp;nbsp; String[] sMail = sCorreoElectronico.Split(new Char[] { &#39;;&#39; });&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int I = 0; I &amp;lt; sMail.Length; I++)
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ValidarFormatoCorreo(sMail[I].ToString()))
&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;&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;&amp;nbsp;&amp;nbsp; sCorreo = sMail[I].ToString() + &quot;;&quot; + sCorreo;
&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;&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;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (sCorreo != string.Empty)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sCorreo = sCorreo.Substring(0, sCorreo.Length - 1);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return sCorreo;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; private Boolean ValidarFormatoCorreo(String email)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String expresion;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expresion = &quot;\\w+([-+.&#39;]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*&quot;;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Regex.IsMatch(email, expresion))
&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;&amp;nbsp;&amp;nbsp; if (Regex.Replace(email, expresion, String.Empty).Length == 0)
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true;
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;
&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;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&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;&amp;nbsp;&amp;nbsp; return false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/pre&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/2531216340087584886/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2016/07/validar-el-formato-de-un-correo.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/2531216340087584886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/2531216340087584886'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2016/07/validar-el-formato-de-un-correo.html' title='Validar el formato de un correo electrónico en C#'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-2011590680391665334</id><published>2016-04-22T11:52:00.001-07:00</published><updated>2017-12-07T08:50:31.967-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="DataTable"/><category scheme="http://www.blogger.com/atom/ns#" term="Select Distinct"/><category scheme="http://www.blogger.com/atom/ns#" term="Vb"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><category scheme="http://www.blogger.com/atom/ns#" term="windows application"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Forms"/><title type='text'>Select DISTINCT From Datatable Using C# Parte II</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
Existe siempre la necesidad de realizar un &lt;a href=&quot;http://devcate.blogspot.com.co/2012/08/distinct-in-datatable.html&quot; target=&quot;_blank&quot;&gt;Select Distinct a un DataTable&lt;/a&gt; cuando las filas están repetidas. En esta ocasión les comparto una nueva solución en .Net &lt;a href=&quot;http://devcate.blogspot.com.co/search/label/c%23&quot;&gt;C#&lt;/a&gt; que permite devolver los resultados con mas de una columna.&amp;nbsp;&lt;/div&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: &quot;ca-pub-2507618574004627&quot;,
    enable_page_level_ads: true
  });
&lt;/script&gt;

&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;using System.Data;

public DataTable SelectRowDisctinct(DataTable dtData, string sColumnName)
{
 try
 {                
  DataTable distintos = dtData.DefaultView.ToTable(true, sColumnName);
  DataTable dtNew = new DataTable();
  foreach (DataColumn dcName in dtData.Columns)
  {
   dtNew.Columns.Add(new DataColumn(dcName.Caption,dcName.DataType));
  }
   
  foreach (DataRow drRow in distintos.Rows)
  {
   dtNew.ImportRow(dtData.Select(sColumnName + &quot; = &#39;&quot; + drRow[0] + &quot;&#39;&quot;)[0]);
  }
  return dtNew;
 }
 catch (Exception ex)
 {
  throw (ex);
 }
}
&lt;/pre&gt;
&lt;br /&gt;
Espero les pueda servir, de un&amp;nbsp;Select DISTINCT From Datatable Usando C#&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/2011590680391665334/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2016/04/c-select-distinct-en-un-datatable-ii.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/2011590680391665334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/2011590680391665334'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2016/04/c-select-distinct-en-un-datatable-ii.html' title='Select DISTINCT From Datatable Using C# Parte II'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-1117648054046380569</id><published>2016-02-21T18:41:00.000-08:00</published><updated>2016-02-21T18:54:30.395-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".aspx"/><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="Chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="Firefox"/><category scheme="http://www.blogger.com/atom/ns#" term="IE"/><category scheme="http://www.blogger.com/atom/ns#" term="Internet Explorer"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Javascript Validar números en Firefox, Chrome, IE </title><content type='html'>En una publicación anterior, pudimos&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://devcate.blogspot.com.co/2012/10/validar-solo-numeros-o-texto-con.html&quot;&gt;Validar sólo números&lt;/a&gt; &lt;/b&gt;en&lt;b&gt; &lt;a href=&quot;http://devcate.blogspot.com.co/search/label/Javascript&quot;&gt;Javascript&lt;/a&gt;&lt;/b&gt;, la cual nos ha permitido solucionar muchos inconvenientes.&lt;br /&gt;
&lt;br /&gt;
En esta ocasión les quiero compartir una validación de solo&amp;nbsp;números&amp;nbsp;mucho mas completa, es decir&amp;nbsp;contempla navegadores como &lt;b&gt;Chrome&lt;/b&gt;, Internet Explorer (&lt;b&gt;IE&lt;/b&gt;) y Firefox&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
A continuación les muestro el código, espero que les ayude.
&lt;br /&gt;
&lt;pre class=&quot;brush: js;&quot;&gt;var nav4 = window.Event ? true : false;
function SoloNumeros(evt) {
&amp;nbsp; &amp;nbsp; // NOTE: Backspace = 8, Enter = 13, &#39;0&#39; = 48, &#39;9&#39; = 57
&amp;nbsp; &amp;nbsp; var key = nav4 ? evt.which : evt.keyCode;
&amp;nbsp; &amp;nbsp; return (key &amp;lt;= 13 || (key &amp;gt;= 48 &amp;amp;&amp;amp; key &amp;lt;= 57 || key == 46));
}&lt;/pre&gt;

&lt;div align=&quot;center&quot;&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- RectanguloGrande336x280TD --&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;7467619394&quot; style=&quot;display: inline-block; height: 280px; width: 336px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
Para implementarlo en Asp.Ner C# incluimos nuestro código anterior en un archivo .&lt;b&gt;js&lt;/b&gt; y referenciarlo en nuestra pagina .aspx, así:&lt;br /&gt;
&lt;pre class=&quot;brush: js;&quot;&gt;script src=&quot;../Scripts/Utilidad.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
Y para llamar la función la podemos implementar en una caja de texto así:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: js;&quot;&gt;asp:TextBox ID=&quot;txtnFactura&quot; runat=&quot;server&quot; &amp;nbsp;onkeypress=&quot;return&amp;nbsp;SoloNumeros(event);&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;/pre&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/1117648054046380569/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2016/02/javascript-validar-numeros-en-firefox.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/1117648054046380569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/1117648054046380569'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2016/02/javascript-validar-numeros-en-firefox.html' title='Javascript Validar números en Firefox, Chrome, IE '/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-8894330523016529319</id><published>2015-09-23T13:25:00.000-07:00</published><updated>2015-09-23T13:25:55.915-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="almacenado"/><category scheme="http://www.blogger.com/atom/ns#" term="JOB"/><category scheme="http://www.blogger.com/atom/ns#" term="Procedimiento almacenado"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql"/><title type='text'>Como buscar procedimiento almacenado si esta programado como Job</title><content type='html'>A continuacion podemos ver como buscar un procedimiento almacenado en Sql Server si esta programado como Job:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: sql;&quot;&gt;select sj.*
from msdb.dbo.sysjobs sj
inner join msdb.dbo.sysjobsteps sjs on sj.job_id = sjs.job_id
inner join msdb.dbo.sysjobschedules sjsc on sjs.job_id = sjsc.job_id
where sjs.command like&#39;%Nombreprocedimientoalmacenado%&#39;
&lt;/pre&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/8894330523016529319/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2015/09/como-buscar-procedimiento-almacenado-si.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/8894330523016529319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/8894330523016529319'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2015/09/como-buscar-procedimiento-almacenado-si.html' title='Como buscar procedimiento almacenado si esta programado como Job'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-4558572628581860715</id><published>2015-08-26T09:55:00.000-07:00</published><updated>2017-12-07T09:01:18.791-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="CommandField"/><category scheme="http://www.blogger.com/atom/ns#" term="CommandName"/><category scheme="http://www.blogger.com/atom/ns#" term="DataTable"/><category scheme="http://www.blogger.com/atom/ns#" term="GridView"/><category scheme="http://www.blogger.com/atom/ns#" term="OnRowDataBound"/><category scheme="http://www.blogger.com/atom/ns#" term="OnRowDeleting"/><title type='text'>Como Eliminar un Row de un Gridview en C#</title><content type='html'>El siguiente formato HTML consiste en un &lt;b&gt;GridView de C#&lt;/b&gt; con dos columnas BoundField y una columna CommandField así:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;GridView&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: inherit; font-size: 11pt;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;=&quot;GridView1&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: inherit; font-size: 11pt;&quot;&gt;CssClass&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;Grid&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: inherit; font-size: 11pt;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;=&quot;server&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: inherit; font-size: 11pt;&quot;&gt;OnRowDeleting&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;=&quot;OnRowDeleting&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: inherit; font-size: 11pt;&quot;&gt;AutoGenerateColumns&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: inherit; font-size: 11pt;&quot;&gt;OnRowDataBound&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;OnRowDataBound&quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon; font-family: inherit; font-size: 11pt;&quot;&gt;Columns&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon; font-family: inherit; font-size: 11pt;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon; font-family: inherit; font-size: 11pt;&quot;&gt;BoundField&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: inherit; font-size: 11pt;&quot;&gt;DataField&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;=&quot;Item&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: inherit; font-size: 11pt;&quot;&gt;HeaderText&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;=&quot;Item&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon; font-family: inherit; font-size: 11pt;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon; font-family: inherit; font-size: 11pt;&quot;&gt;BoundField&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: inherit; font-size: 11pt;&quot;&gt;DataField&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;=&quot;Price&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: inherit; font-size: 11pt;&quot;&gt;HeaderText&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;=&quot;Price&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon; font-family: inherit; font-size: 11pt;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon; font-family: inherit; font-size: 11pt;&quot;&gt;CommandField&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: inherit; font-size: 11pt;&quot;&gt;ShowDeleteButton&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;=&quot;True&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: inherit; font-size: 11pt;&quot;&gt;ButtonType&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;=&quot;Button&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon; font-family: inherit; font-size: 11pt;&quot;&gt;Columns&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: maroon; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;GridView&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;/div&gt;
Dentro del evento de carga de la página , el &lt;b&gt;ASP.Net GridView&lt;/b&gt; se rellena usando un &lt;b&gt;DataTable &lt;/b&gt;y DataTable se guarda en la variable ViewState.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;protected&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Page_Load(&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;object&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;sender,&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;EventArgs&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;e)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;(!Page.IsPostBack)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;DataTable&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;dt =&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;DataTable&lt;/span&gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Columns.AddRange(&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;DataColumn&lt;/span&gt;[2] {&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;DataColumn&lt;/span&gt;(&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;Item&quot;&lt;/span&gt;),&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;DataColumn&lt;/span&gt;(&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;Price&quot;&lt;/span&gt;) });&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Rows.Add(&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;Shirt&quot;&lt;/span&gt;, 450);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Rows.Add(&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;Jeans&quot;&lt;/span&gt;, 3200);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Rows.Add(&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;Trousers&quot;&lt;/span&gt;, 1900);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Rows.Add(&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;Tie&quot;&lt;/span&gt;, 185);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Rows.Add(&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;Cap&quot;&lt;/span&gt;, 100);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Rows.Add(&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;Hat&quot;&lt;/span&gt;, 120);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Rows.Add(&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;Scarf&quot;&lt;/span&gt;, 290);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Rows.Add(&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;Belt&quot;&lt;/span&gt;, 150);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;ViewState[&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;dt&quot;&lt;/span&gt;] = dt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BindGrid();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;protected&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;BindGrid()&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GridView1.DataSource = ViewState[&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;dt&quot;&lt;/span&gt;]&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;as&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;DataTable&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GridView1.DataBind();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- RectanguloGrande336x280TD --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;7467619394&quot; style=&quot;display: inline-block; height: 280px; width: 336px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;Aplicando el cuadro de confirmación JavaScript para GridView CommandField Borrar Button&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Dentro del controlador de eventos &lt;b&gt;OnRowDataBound&lt;/b&gt;, un bucle se ejecuta en los controles Button del GridView. Si el &lt;b&gt;CommandName &lt;/b&gt;del botón es Eliminar continua mostrando el cuadro de confirmación se asignando su atributo OnClic.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;protected&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;OnRowDataBound(&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;object&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;sender,&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;GridViewRowEventArgs&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;e)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;(e.Row.RowType ==&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;DataControlRowType&lt;/span&gt;.DataRow)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;item = e.Row.Cells[0].Text;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;(&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;Button&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;button&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;e.Row.Cells[2].Controls.OfType&amp;lt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;Button&lt;/span&gt;&amp;gt;())&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;(button.CommandName ==&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;Delete&quot;&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&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; button.Attributes[&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;onclick&quot;&lt;/span&gt;] =&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;if(!confirm(&#39;Do you want to delete &quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;+ item +&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;?&#39;)){ return false; };&quot;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;Elimine el ASP.Net GridView Fila usando CommandField y eventos OnRowDeleting&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Cuando se hace clic en el botón Eliminar, se ejecuta el controlador de eventos &lt;b&gt;OnRowDeleting&lt;/b&gt;. Dentro del controlador de eventos OnRowDeleting, el Índice del GridView fila se determina y se y se utiliza para eliminar la Línea de DataTable.&lt;br /&gt;
&lt;br /&gt;
Por último, el DataTable se guarda de nuevo a la ViewState y el GridView está nuevamente poblada. A continuación puedes visualizar &lt;b&gt;como se Elimina un Row de un GridView&lt;/b&gt; de forma fácil.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;protected&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;void&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;OnRowDeleting(&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;object&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;sender,&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;GridViewDeleteEventArgs&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;e)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;index =&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;Convert&lt;/span&gt;.ToInt32(e.RowIndex);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;DataTable&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;dt = ViewState[&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;dt&quot;&lt;/span&gt;]&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: blue; font-family: inherit; font-size: 11pt;&quot;&gt;as&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; color: #2b91af; font-family: inherit; font-size: 11pt;&quot;&gt;DataTable&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt.Rows[index].Delete();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ViewState[&lt;span style=&quot;box-sizing: border-box; color: #a31515; font-family: inherit; font-size: 11pt;&quot;&gt;&quot;dt&quot;&lt;/span&gt;] = dt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BindGrid();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(242, 242, 242); border: medium none; box-sizing: border-box; color: #444444; font-family: sans-serif; font-size: 14.6666669845581px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; padding: 0in; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; font-family: &amp;quot;courier new&amp;quot;; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/4558572628581860715/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2015/08/gridview-aspnet-eliminar-fila.html#comment-form' title='4 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/4558572628581860715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/4558572628581860715'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2015/08/gridview-aspnet-eliminar-fila.html' title='Como Eliminar un Row de un Gridview en C#'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-3683771740634392133</id><published>2015-05-29T06:08:00.001-07:00</published><updated>2015-08-26T09:02:35.362-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".aspx"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="textbox"/><title type='text'>Mantener el valor de un TextBox en TextMode = Password c#, ASP.Net</title><content type='html'>He tenido la dificultad en &lt;b&gt;Asp.Net&lt;/b&gt;, luego de recuperar la contraseña de base de datos y visualizarla en una caja de texto, la cual esta configurada en Modo TextMode Password, ésta no se pueda ver.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;&amp;lt;asp:textbox id=&quot;txtClave&quot; runat=&quot;server&quot; textmode=&quot;Password&quot;&amp;gt;&amp;lt;/asp:textbox&amp;gt;

&lt;/pre&gt;
&lt;br /&gt;
Cuando el valor se asigna al control, éste no se puede ver y peor aun en el postback de la pagina, pierde el valor.&lt;br /&gt;
&lt;br /&gt;
La solución consiste en asignar el valor que queremos que teme el control como un atributo. Si además queremos que la clave se mantenga entre Postbacks, bastará con que asignemos el valor cada vez que recarga la página:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: white; font-family: &#39;courier new&#39;; font-size: 8pt; line-height: 19.5px;&quot;&gt;
&lt;pre&gt;&lt;span style=&quot;color: blue;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Page_Load(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt; e)&lt;/pre&gt;
&lt;pre&gt;{&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp; &amp;nbsp; txtClave.Attributes.Add(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;value&quot;&lt;/span&gt;, txtClave.Text);&lt;/pre&gt;
&lt;pre&gt;}&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/3683771740634392133/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2015/05/mantener-el-valor-de-un-textbox-en.html#comment-form' title='4 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/3683771740634392133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/3683771740634392133'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2015/05/mantener-el-valor-de-un-textbox-en.html' title='Mantener el valor de un TextBox en TextMode = Password c#, ASP.Net'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-7429396296451328407</id><published>2014-07-02T15:37:00.001-07:00</published><updated>2014-07-02T15:55:10.240-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".aspx"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="eventos"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="onblur"/><category scheme="http://www.blogger.com/atom/ns#" term="onchance"/><category scheme="http://www.blogger.com/atom/ns#" term="onfocus"/><category scheme="http://www.blogger.com/atom/ns#" term="textbox"/><title type='text'>Como usar los eventos onblur, onfocus, onchance, sobre un TextBox en ASP.Net</title><content type='html'>Hola como están, espero que bien, hoy quiero compartir un ejemplo muy sencillo de &lt;b&gt;como usar los eventos onblur, onfocus&lt;/b&gt;, entre otros sobre un control &lt;b&gt;Textbox &lt;/b&gt;en &lt;b&gt;ASP.Net&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
Primero creamos una pagina web con una caja de Texto:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: xml;&quot;&gt;&amp;lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;Example.aspx.cs&quot; Inherits=&quot;Example&quot; %&amp;gt;
&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;
&amp;lt;head runat=&quot;server&quot;&amp;gt;
    &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;
    &amp;lt;div&amp;gt;
        &amp;lt;asp:TextBox Id=&quot;txtTexto&quot; runat=&quot;server&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;    
    &amp;lt;/div&amp;gt;
    &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/pre&gt;
&lt;br /&gt;
Seguidamente creamos un botón asp.net dentro de un &amp;lt;div&amp;gt; oculto así:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: xml;&quot;&gt;&amp;lt;div style=&quot;display: none;&quot;&amp;gt;
        &amp;lt;asp:button id=&quot;btnTextBox&quot; runat=&quot;server&quot; onclick=&quot;btnTextBox_Click&quot;&amp;gt;
&amp;lt;/asp:button&amp;gt;&amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- RectanguloGrande336x280TD --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;7467619394&quot; style=&quot;display: inline-block; height: 280px; width: 336px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;br /&gt;
Quedando la pagina:
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: xml;&quot;&gt;&amp;lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;Example.aspx.cs&quot; Inherits=&quot;Example&quot; %&amp;gt;
&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;
&amp;lt;head runat=&quot;server&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:TextBox Id=&quot;txtTexto&quot; runat=&quot;server&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt; &amp;nbsp; 
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;lt;div style=&quot;display: none;&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:button id=&quot;btnTextBox&quot; runat=&quot;server&quot; onclick=&quot;btnTextBox_Click&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/asp:button&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
Ahora en el evento &lt;b&gt;Page_Load&lt;/b&gt; de la pagina agregar el atributo al cuadro de texto:
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;protected void Page_Load(object sender, EventArgs e)
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; txtTexto.Attributes.Add(&quot;onblur&quot;, this.Page.ClientScript.GetPostBackEventReference(this.btnTextBox, &quot;&quot;));
&amp;nbsp; &amp;nbsp; }
&lt;/pre&gt;
&lt;br /&gt;
Finalmente agregamos el código en el evento clic de nuestro botón oculto.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;protected void btnTextBox_Click(object sender, EventArgs e)
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Coloque aquí su código para evento onblur
&amp;nbsp; &amp;nbsp; }
&lt;/pre&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #134f5c;&quot;&gt;&quot;&quot; Si tienes dudas o quieras ampliar este &lt;b&gt;artículo&lt;/b&gt;, lo puedes hacer dejando tus comentarios. Además, si lo consideras interesante puedes &lt;b&gt;compartirlo con amigos y seguidores&lt;/b&gt; a través de los botones sociales que aparecen en esta página.&quot;&quot;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;2758218192&quot; style=&quot;display: inline-block; height: 15px; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/7429396296451328407/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2014/07/como-usar-en-textbox-evento-onblur.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/7429396296451328407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/7429396296451328407'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2014/07/como-usar-en-textbox-evento-onblur.html' title='Como usar los eventos onblur, onfocus, onchance, sobre un TextBox en ASP.Net'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-8539572992531215545</id><published>2014-05-23T10:36:00.000-07:00</published><updated>2014-05-23T12:12:39.659-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".aspx"/><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="Chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><category scheme="http://www.blogger.com/atom/ns#" term="Internet Explorer"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="X-UA-Compatible"/><title type='text'>Internet Explorer: Vista de Compatibilidad ASP.NET</title><content type='html'>Quiero compartir con ustedes un código que nos permite identificar mediante &lt;a href=&quot;http://devcate.blogspot.com/search/label/Javascript&quot;&gt;JavaScript&lt;/a&gt;&amp;nbsp;la vista de compatibilidad de nuestro navegador &lt;b&gt;Internet Explorer (IE)&lt;/b&gt; y ademas si estamos usando
un navegador diferente. Lo anterior porque muchas veces los estilos de nuestros sitios no son
compatibles y presentan alteraciones en la presentación de las paginas al usuario. Por lo tanto
el siguiente ejemplo permite identificar en que entorno de navegador estamos y poder llegar 
a tomar alguna decisión al respecto:
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: js&quot; false=&quot;&quot; gutter:=&quot;&quot; notranslate=&quot;&quot; title:=&quot;&quot; title=&quot;&quot;&gt;&amp;lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; &amp;nbsp;CodeFile=&quot;Default.aspx.cs&quot; Inherits=&quot;_Default&quot; %&amp;gt;
&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;
&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;
&amp;lt;head id=&quot;Head1&quot; runat=&quot;server&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt; &amp;nbsp; 
&amp;nbsp; &amp;nbsp; &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function ValidarNavegador() {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (document.documentMode) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (document.documentMode &amp;lt;= &amp;nbsp;7) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(&quot;Estas en Internet Explorer con vista de compatibilidad.&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;
&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; alert(&quot;Esta es una versión de Internet Explorer sin vista de compatibilidad.&quot;);


&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(&quot;Esto no es Internet Explorer.&quot;);
&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;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;table id=&quot;Navegador&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot; &amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td align=&quot;center&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Consultar Compatibilidad del Navegador&amp;amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Button ID=&quot;BtNavegador&quot; runat=&quot;server&quot; OnClientClick=&quot;return ValidarNavegador();&quot; Text=&quot;¿Qué Navegador?&quot; /&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/table&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
Al ejecutar nuestro ejemplo podemos ver la compatibilidad para cada explorador:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY48SiVQvFcM9ui-uTosl2qQzyHRh92-2aFl1ScC_qUt5bg4ddTJvNvELNTLMRYYT0jA5si20Kcj4WBMvNnSVtJcGhsS7pso6cuQw1Zu5J3vSqC7d_k9AvoUEZMuQNNm6b0SsNnZcHo6o/s1600/Compatibilidad.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY48SiVQvFcM9ui-uTosl2qQzyHRh92-2aFl1ScC_qUt5bg4ddTJvNvELNTLMRYYT0jA5si20Kcj4WBMvNnSVtJcGhsS7pso6cuQw1Zu5J3vSqC7d_k9AvoUEZMuQNNm6b0SsNnZcHo6o/s1600/Compatibilidad.png&quot; height=&quot;154&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
La siguiente imagen sin vista de compatibilidad:
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYJtXkBOR00Hs4iuogxDiLzpbShWwzvNZGcVE1gz_zdNiPmBmgU937Z8HFHxvJUMMe40u5FlWK16R4gWc-r1ljWwhndgS5ePKIP3AIvIuzrlxVEv51Yw6DhbIlFFXbxDfSTKSpNWFHV28/s1600/Con_Compatibilidad.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYJtXkBOR00Hs4iuogxDiLzpbShWwzvNZGcVE1gz_zdNiPmBmgU937Z8HFHxvJUMMe40u5FlWK16R4gWc-r1ljWwhndgS5ePKIP3AIvIuzrlxVEv51Yw6DhbIlFFXbxDfSTKSpNWFHV28/s1600/Con_Compatibilidad.png&quot; height=&quot;121&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- RectanguloGrande336x280TD --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;7467619394&quot; style=&quot;display: inline-block; height: 280px; width: 336px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;br /&gt;
Finalmente la visualización diferente a Internet Explorer: 
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-3f00qjJlwWqG88WjwT8sfB31xMiNJOJqNL5dNEi_ZUlkqMekpYT1q-5dOSeb6n-N-ycHMhehhhEpU9b5lEc2jMZfMIv9eeKiqKzHY4ZwmQC3RSqNs2R3SEO01COSdEN93gMTMwvtFL8/s1600/Chrome.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-3f00qjJlwWqG88WjwT8sfB31xMiNJOJqNL5dNEi_ZUlkqMekpYT1q-5dOSeb6n-N-ycHMhehhhEpU9b5lEc2jMZfMIv9eeKiqKzHY4ZwmQC3RSqNs2R3SEO01COSdEN93gMTMwvtFL8/s1600/Chrome.png&quot; height=&quot;203&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Este ejemplo nos permite conocer la vista compatibilidad de una pagina en &lt;b&gt;Internet Explorer, &lt;/b&gt;pero&amp;nbsp;también&amp;nbsp;es importante poder cambiarla, esto lo podemos realizar a&amp;nbsp;través&amp;nbsp;del &lt;i&gt;&lt;a href=&quot;http://devcate.blogspot.com/2014/03/solution-for-ie10-error.html&quot;&gt;META X-UA-Compatible&lt;/a&gt;&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
Si tienen alguna duda o ampliar la información me cuentan, hasta pronto.
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #134f5c;&quot;&gt;&quot;&quot; Si tienes dudas o quieras ampliar este &lt;b&gt;artículo&lt;/b&gt;, lo puedes hacer dejando tus comentarios. Además, si lo consideras interesante puedes &lt;b&gt;compartirlo con amigos y seguidores&lt;/b&gt; a través de los botones sociales que aparecen en esta página.&quot;&quot;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- EnlaceAnuncio468x15 --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;2758218192&quot; style=&quot;display: inline-block; height: 15px; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/8539572992531215545/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2014/05/internet-explorer-vista-de.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/8539572992531215545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/8539572992531215545'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2014/05/internet-explorer-vista-de.html' title='Internet Explorer: Vista de Compatibilidad ASP.NET'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiY48SiVQvFcM9ui-uTosl2qQzyHRh92-2aFl1ScC_qUt5bg4ddTJvNvELNTLMRYYT0jA5si20Kcj4WBMvNnSVtJcGhsS7pso6cuQw1Zu5J3vSqC7d_k9AvoUEZMuQNNm6b0SsNnZcHo6o/s72-c/Compatibilidad.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-4366940278563778915</id><published>2014-03-18T07:20:00.005-07:00</published><updated>2014-03-19T06:19:07.121-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".aspx"/><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="DataTable"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><title type='text'>Exportar DataTable a CSV en C#</title><content type='html'>Anexo&amp;nbsp;código&amp;nbsp;que nos permite exportar un &lt;b&gt;DataTable&lt;/b&gt; a un archivo plano con extensión CSV desde Visual studio &lt;b&gt;&lt;a href=&quot;http://devcate.blogspot.com/search/label/c%23&quot;&gt;C#&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Para este ejemplo creamos un DataTable:
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;private DataTable TablaEnvioSms()
{
   DataTable dtSms = new DataTable();

   dtSms.Columns.Add(&quot;Fila&quot;, typeof(string));
   dtSms.Columns.Add(&quot;Nombres&quot;, typeof(string));
   dtSms.Columns.Add(&quot;Apellidos&quot;, typeof(string));
   dtSms.Columns.Add(&quot;Direccion&quot;, typeof(string));
   dtSms.Columns.Add(&quot;Telefono&quot;, typeof(string));
   return dtSms;
}
&lt;/pre&gt;
&lt;br /&gt;
Este es el evento Click del boton (&lt;i&gt;btnExportar&lt;/i&gt;) en la pagina &lt;b&gt;aspx&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;protected void btnExportar_Click(object sender, EventArgs e)
    {
        DataTable dtSms = new DataTable();

        //Asignamos estructura del DataTable
        dtSms = TablaEnvioSms();
        DataRow newRow;

        //primera fila
        newRow = dtSms.NewRow();
        newRow[&quot;Fila&quot;] = &quot;1&quot;;
        newRow[&quot;Nombres&quot;] = &quot;Pedro Luis&quot;;
        newRow[&quot;Apellidos&quot;] = &quot;Ramirez Perez&quot;;
        newRow[&quot;Direccion&quot;] = &quot;Calle 1 No. 2 2&quot;;
        newRow[&quot;Telefono&quot;] = &quot;5555&quot;;
        dtSms.Rows.Add(newRow);

        //segunda fila
        newRow = dtSms.NewRow();
        newRow[&quot;Fila&quot;] = &quot;2&quot;;
        newRow[&quot;Nombres&quot;] = &quot;Maria tereza&quot;;
        newRow[&quot;Apellidos&quot;] = &quot;Ramirez Perez&quot;;
        newRow[&quot;Direccion&quot;] = &quot;Calle 1 No. 2 2&quot;;
        newRow[&quot;Telefono&quot;] = &quot;44444&quot;;
        dtSms.Rows.Add(newRow);
       

        //Realizamos el Llamado al metodo que exporta la estructura del DataTable.
        //Ademas recibe el nombre del archivo CSV y la ruta donde se almacenara.
        DataTableCSVFile(dtSms, &quot;ExportarDatos.csv&quot;, &quot;c://&quot;);

    }
&lt;/pre&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- RectanguloGrande336x280TD --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;7467619394&quot; style=&quot;display: inline-block; height: 280px; width: 336px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
Método que Exporta los datos y muestra el archivo para abrirlo.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;public void DataTableCSVFile(DataTable dt,string sfilename, string strFilePath)
    {     
        StreamWriter sw = new StreamWriter(strFilePath + sfilename, false);
        int iColCount = dt.Columns.Count;

        // Escribiendo las Columnas del DataTable.
        for (int i = 0; i &amp;lt; iColCount; i++)
        {
            sw.Write(dt.Columns[i]);
            if (i &amp;lt; iColCount - 1)
            {
                sw.Write(&quot;,&quot;);
            }
        }

        sw.Write(sw.NewLine);

        // Escribiendo todas las Filas del DataTable.
        foreach (DataRow dr in dt.Rows)
        {
            for (int i = 0; i &amp;lt; iColCount; i++)
            {
                if (!Convert.IsDBNull(dr[i]))
                {
                    sw.Write(dr[i].ToString());
                }

                if (i &amp;lt; iColCount - 1)
                {
                    sw.Write(&quot;,&quot;);
                }
            }
            sw.Write(sw.NewLine);
        }
        sw.Close();

        Response.Clear();
        Response.ContentType = &quot;application/csv&quot;;
        Response.AddHeader(&quot;Content-Disposition&quot;, &quot;attachment; filename=&quot; + sfilename);
        Response.WriteFile(strFilePath + sfilename);
        Response.Flush();
        Response.End();
    }
&lt;/pre&gt;
&lt;br /&gt;
&lt;a href=&quot;http://devcate.blogspot.com/2012/10/exportar-dataset-excel-desde-c.html&quot;&gt;Exportar un Dataset a Excel desde c#&lt;/a&gt; es una funcionalidad muy interesante, los invito a consultarla.
&lt;br /&gt;
&lt;br /&gt;
Si tienen alguna duda o ampliar la información me cuentan, hasta pronto.
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #134f5c;&quot;&gt;&quot;&quot; Si tienes dudas o quieras ampliar este &lt;b&gt;artículo&lt;/b&gt;, lo puedes hacer dejando tus comentarios. Además, si lo consideras interesante puedes &lt;b&gt;compartirlo con amigos y seguidores&lt;/b&gt; a través de los botones sociales que aparecen en esta página.&quot;&quot;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- EnlaceAnuncio468x15 --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;2758218192&quot; style=&quot;display: inline-block; height: 15px; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/4366940278563778915/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2014/03/exportar-datatable-csv-en-c.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/4366940278563778915'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/4366940278563778915'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2014/03/exportar-datatable-csv-en-c.html' title='Exportar DataTable a CSV en C#'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-8920959277919229207</id><published>2014-03-13T12:02:00.001-07:00</published><updated>2014-03-13T15:56:50.653-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AJAX"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Qué es AJAX?</title><content type='html'>&lt;b&gt;AJAX&lt;/b&gt;, anteriormente llamado &quot;Atlas&quot;, acrónimo de Asynchronous &lt;b&gt;&lt;a href=&quot;http://devcate.blogspot.com/search/label/Javascript&quot;&gt;JavaScript&lt;/a&gt;&lt;/b&gt; y XML, que simplemente, es una manera o técnica de transferir datos entre el servidor y el cliente sin necesidad de enviar toda la página, y creando así una devolución de datos completa. Esto permite obtener una mejor experiencia para el usuario, ya que carga el contenido dinámico se puede hacer en un segundo plano, sin refrescante y redibujar toda la página.&lt;br /&gt;
&lt;br /&gt;
Cuando se implementa AJAX en nuestros proyectos, obtenemos aplicaciones que funcionan mucho más rápido, ya que las interfaces de usuario se pueden actualizar por partes sin tener que 
actualizar toda la página. Por ejemplo, al diligenciar un formulario que se captura en un sitio web, con AJAX se puede actualizar solo la parte en la que se selecciona la ciudad de residencia
sin tener que actualizar toda la página web completa.
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #134f5c;&quot;&gt;&quot;&quot; Si tienes dudas o quieras ampliar este &lt;b&gt;artículo&lt;/b&gt;, lo puedes hacer dejando tus comentarios. Además, si lo consideras interesante puedes &lt;b&gt;compartirlo con amigos y seguidores&lt;/b&gt; a través de los botones sociales que aparecen en esta página.&quot;&quot;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div aling=&quot;left&quot;&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- EnlaceAnuncio468x15 --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;2758218192&quot; style=&quot;display: inline-block; height: 15px; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/8920959277919229207/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2014/03/que-es-ajax.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/8920959277919229207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/8920959277919229207'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2014/03/que-es-ajax.html' title='Qué es AJAX?'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-5014971348267151403</id><published>2014-03-07T08:31:00.002-08:00</published><updated>2014-05-23T10:57:24.151-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".aspx"/><category scheme="http://www.blogger.com/atom/ns#" term="AJAX"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="Chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="IE10"/><category scheme="http://www.blogger.com/atom/ns#" term="Internet Explorer"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><category scheme="http://www.blogger.com/atom/ns#" term="X-UA-Compatible"/><title type='text'>Solution for IE10 error: Sys.ArgumentOutOfRangeException: Value must be an integer asp.net</title><content type='html'>En un proyecto proyecto &lt;b&gt;&lt;a href=&quot;http://devcate.blogspot.com/search/label/ASP.Net&quot;&gt;Asp.Net&lt;/a&gt;&lt;/b&gt; con controles &lt;b&gt;&lt;a href=&quot;http://devcate.blogspot.com/2014/03/que-es-ajax.html&quot;&gt;AJAX &lt;/a&gt;&lt;/b&gt;(ModalPopup) en &lt;b&gt;Internet Explorer 10&lt;/b&gt; (IE10) se me presento la siguiente inconsistencia &lt;i&gt;&quot;Solution for IE10 error: Sys.ArgumentOutOfRangeException: Value must be an integer asp.net&quot;&lt;/i&gt;, la solución que se encontró es agregar la siguiente linea, ya sea en la &lt;b&gt;Master.page&lt;/b&gt; del proyecto o en el encabezado de mi pagina &lt;b&gt;.aspx.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;http-equiv&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;X-UA-Compatible&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;content&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;IE=9&quot; /&amp;gt;

&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
La etiqueta meta&lt;b&gt; X-UA-Compatible&lt;/b&gt; permite elegir qué versión de Internet Explorer la página se debe representar. Es utilizado por Internet Explorer 8 para especificar si una página se debe representar como IE 7 (vista de compatibilidad) o IE 8 (normas vista).
&lt;br /&gt;
&lt;br /&gt;
Las opciones que tiene para el contenido (&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;content&lt;/span&gt;&lt;/span&gt;) son:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&quot;IE=5&quot;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&quot;IE=EmulateIE7&quot;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&quot;IE=7&quot;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&quot;IE=EmulateIE8&quot;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&quot;IE=8&quot;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&quot;IE=EmulateIE9&quot;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&quot;IE=9&quot;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&quot;IE=edge&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- RectanguloGrande336x280 --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;4109674999&quot; style=&quot;display: inline-block; height: 280px; width: 336px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Se utiliza la etiqueta meta &lt;b&gt;X-UA-Compatible&lt;/b&gt; en las páginas web donde se sospecha que &lt;b&gt;Internet Explorer&lt;/b&gt; 10 intentará representar la página en una forma incorrecta. &amp;nbsp;Una forma de conocer bajo que modo de &lt;a href=&quot;http://devcate.blogspot.com/2014/05/internet-explorer-vista-de.html&quot;&gt;compatibilidad se ejecuta una pagina aspx en asp.net&lt;/a&gt; puede ayudarlos a solucionar muchos inconvenientes.&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #134f5c;&quot;&gt;&quot;&quot; Si tienes dudas o quieras ampliar este &lt;b&gt;artículo&lt;/b&gt;, lo puedes hacer dejando tus comentarios. Además, si lo consideras interesante puedes &lt;b&gt;compartirlo con amigos y seguidores&lt;/b&gt; a través de los botones sociales que aparecen en esta página.&quot;&quot;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- EnlaceAnuncio468x15 --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;2758218192&quot; style=&quot;display: inline-block; height: 15px; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/5014971348267151403/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2014/03/solution-for-ie10-error.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/5014971348267151403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/5014971348267151403'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2014/03/solution-for-ie10-error.html' title='Solution for IE10 error: Sys.ArgumentOutOfRangeException: Value must be an integer asp.net'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-3506489230453187201</id><published>2013-12-06T13:29:00.000-08:00</published><updated>2024-01-22T04:47:41.882-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apuntes y trucos"/><category scheme="http://www.blogger.com/atom/ns#" term="Procedimiento almacenado"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql"/><title type='text'>Como Calcular de forma facil, la edad en años meses y dias en Sql</title><content type='html'>Una manera fácil y sencilla de &lt;b&gt;obtener la edad de una persona en términos de Año, mes o día&lt;/b&gt; en &lt;a href=&quot;http://devcate.blogspot.com/search/label/Sql&quot;&gt;Sql Server&lt;/a&gt;, se puede realizar a partir del siguiente ejemplo:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: sql;&quot;&gt;Declare @FechaNacimiento datetime
Set @FechaNacimiento = &#39;05/16/2011&#39;
Select Convert(Integer, Datediff(Day, @FechaNacimiento, Getdate())/365.25)EdadAños,
 Convert(Integer, Datediff(Day, @FechaNacimiento, Getdate())/30)EdadMeses,
 Convert(Integer, Datediff(Day, @FechaNacimiento, Getdate()))EdadDias 
&lt;/pre&gt;
&lt;br /&gt;
El resultado de la ejecución anterior seria lo siguiente:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAlHnHTOmp_gj__kYs2Q9Vg-tFU2rt9t5sWWKpJCDGHw9BcZendduasCSZNwJTObgC3i6EOGIQ_6378uNTXLhIRpkwfOG9mj84LgibPdtVmLcoG43b_JURUzmp-UofJHRu8Us1hb_cLGk/s1600/AnomesdiaPNG.PNG&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAlHnHTOmp_gj__kYs2Q9Vg-tFU2rt9t5sWWKpJCDGHw9BcZendduasCSZNwJTObgC3i6EOGIQ_6378uNTXLhIRpkwfOG9mj84LgibPdtVmLcoG43b_JURUzmp-UofJHRu8Us1hb_cLGk/s1600/AnomesdiaPNG.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!--RectanguloGrande336x280TD--&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;7467619394&quot; style=&quot;display: inline-block; height: 280px; width: 336px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
Analizando un poco el ejemplo anterior, lo que se hace es declarar una variable que almacena la fecha de nacimiento, luego ésta es pasada a cada una de las instrucciones Sql que consulta la edad en años, Meses y días.
&lt;br /&gt;
&lt;br /&gt;
Leer Mas:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://devcate.blogspot.com.co/2012/09/solo-numeros-en-los-textbox-windows.html&quot; target=&quot;_blank&quot;&gt;Como hacer que un Textbox solo acepte Números C#&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://devcate.blogspot.com.co/2013/11/consumir-web-service-desde-c-net.html&quot; target=&quot;_blank&quot;&gt;Consumir Web Service en C#&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://devcate.blogspot.com.co/2012/06/generar-numeros-aleatorios.html&quot; target=&quot;_blank&quot;&gt;Como Generar Números aleatorios con Random&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://devcate.blogspot.com/2012/10/retornar-dia-mes-y-ano-en-sql.html&quot; target=&quot;_blank&quot;&gt;Obtener día, mes y año en Sql Server&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://devcate.blogspot.com/2024/01/descubre-el-secreto-de-la-edad-en-sql.html&quot; target=&quot;_blank&quot;&gt;Descubre como calcular la Edad de forma fácil&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Los invito ha consultar el código que nos permite &lt;a href=&quot;http://devcate.blogspot.com/2013/10/sql-obtener-el-tamano-de-todas-las.html&quot;&gt;obtener el tamaño de las tablas de una Base de datos Sql&lt;/a&gt;.&lt;div&gt;&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;2758218192&quot; style=&quot;display: inline-block; height: 15px; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/3506489230453187201/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2013/12/calcular-la-edad-en-anos-meses-y-dias.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/3506489230453187201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/3506489230453187201'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2013/12/calcular-la-edad-en-anos-meses-y-dias.html' title='Como Calcular de forma facil, la edad en años meses y dias en Sql'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAlHnHTOmp_gj__kYs2Q9Vg-tFU2rt9t5sWWKpJCDGHw9BcZendduasCSZNwJTObgC3i6EOGIQ_6378uNTXLhIRpkwfOG9mj84LgibPdtVmLcoG43b_JURUzmp-UofJHRu8Us1hb_cLGk/s72-c/AnomesdiaPNG.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-271127871982745089</id><published>2013-11-07T19:18:00.003-08:00</published><updated>2017-12-05T11:24:16.940-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><category scheme="http://www.blogger.com/atom/ns#" term="web service"/><category scheme="http://www.blogger.com/atom/ns#" term="Xml"/><title type='text'>Consumir Web Service desde C# .Net</title><content type='html'>Para &lt;b&gt;consumir un Web Service en Visual Studio&lt;/b&gt; debemos seguir los siguientes pasos, es muy importante para este ejemplo conocer como &lt;a href=&quot;http://devcate.blogspot.com/2013/11/crear-web-service-con-c-en-visual-studio.html&quot;&gt;Crear Web Service con C# en Visual Studio&lt;/a&gt;. Para iniciar a Consumir un Web Service en C#, debemos seguir los siguientes pasos:&lt;br /&gt;
&lt;br /&gt;
Abrimos &lt;a href=&quot;http://devcate.blogspot.com/search/label/Visual%20Studio&quot;&gt;Visual Studio&lt;/a&gt;, seleccionamos en menú &lt;i&gt;File &lt;/i&gt;- &lt;i&gt;New Web Site...&lt;/i&gt; como lo muestra la siguiente imagen:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOLobB6-qE-ypSOvSfLc7uxci2lL3HhZ3-D8shFRLZombTNXDrbwzHRUUiTpOQJ08biEC_kdxCXXfvhyphenhyphennpTo_v8chjMg-vXC3g1CM_oib9L0457pyyXxMt_YXTU6Omr4Hi30mvTWRiKAQ/s1600/NewWebsite.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOLobB6-qE-ypSOvSfLc7uxci2lL3HhZ3-D8shFRLZombTNXDrbwzHRUUiTpOQJ08biEC_kdxCXXfvhyphenhyphennpTo_v8chjMg-vXC3g1CM_oib9L0457pyyXxMt_YXTU6Omr4Hi30mvTWRiKAQ/s320/NewWebsite.PNG&quot; width=&quot;165&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
Luego nos aparece la siguiente imagen, seleccionamos la ubicación del proyecto desde el botón &lt;i&gt;Browser &lt;/i&gt;y damos clic sobre el boton OK:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOn6TsHFbBW1TcMOJ6Pm1c-csUDIGpKtbpfdtsZrS72YDHLsGpSGb46g9CcvPUIiwr0v9KOXJEzG9w6625AWBjVpo62uPTgJleNA5c1NKtfcA5gkHhV1KhxoqHCqHME0Jq6jC49QMxOxQ/s1600/NewWebsite1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOn6TsHFbBW1TcMOJ6Pm1c-csUDIGpKtbpfdtsZrS72YDHLsGpSGb46g9CcvPUIiwr0v9KOXJEzG9w6625AWBjVpo62uPTgJleNA5c1NKtfcA5gkHhV1KhxoqHCqHME0Jq6jC49QMxOxQ/s320/NewWebsite1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Seguidamente se crea el proyecto solución como se muestra en la siguiente imagen:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCvVFuW9XkKHD91Iqz2o9Ukc68rtOEZyfFtDhli5hj3o9iAeFEX83rGAJHxz9TQk-yM75VmxW6jp1V2Z7X6JN-ke6qWNqkxZ95p0oN4AlwU1tw4p0PBSgl8OKKUbVZdYAImQVR1I0LvgM/s1600/ConsumirWS.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCvVFuW9XkKHD91Iqz2o9Ukc68rtOEZyfFtDhli5hj3o9iAeFEX83rGAJHxz9TQk-yM75VmxW6jp1V2Z7X6JN-ke6qWNqkxZ95p0oN4AlwU1tw4p0PBSgl8OKKUbVZdYAImQVR1I0LvgM/s1600/ConsumirWS.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
Ahora, empezamos agregar la Referencia Web de nuestro Web Service que deseamos consumir. Primero damos clic derecho en nuestro proyecto y damos clic sobre &lt;i&gt;Add Web Reference&lt;/i&gt;...&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcQGoAbE4GpGp6unlUiqRT1G2ackx0FATrzNUNK5yK5U9oVtafYi9pGdssAZ_4rB0nz2cZkrq8pyfBRSDOtfbvCdm5WuveMDstwAurO1EC7c3Z5ISn-CVKE6B01_c2fW23HGMhNsBtchg/s1600/AddReference_SitioWeb.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcQGoAbE4GpGp6unlUiqRT1G2ackx0FATrzNUNK5yK5U9oVtafYi9pGdssAZ_4rB0nz2cZkrq8pyfBRSDOtfbvCdm5WuveMDstwAurO1EC7c3Z5ISn-CVKE6B01_c2fW23HGMhNsBtchg/s320/AddReference_SitioWeb.PNG&quot; width=&quot;208&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Luego nos aparece la siguiente ventana, aquí nos permite colocar la Url del Web Service que deseamos consumir, en la opción &lt;i&gt;URL &lt;/i&gt;y damos clic en el boton &lt;i&gt;Go&lt;/i&gt;, como se muestra en la siguiente imagen:&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhorheMbRNekWywFMuJOGjKYawM9JkBnYMRAVLYQrO-RrP5aEvCv2H_UxRtxvs-gw_9X7IZLOO7Qz2E3PRl6v8VyUOmjBZ1Irw85ZsrTcGxC-RR1jBHt0kZUEIOl2kQV1S2BSUSb60_4tk/s1600/AddReference_SitioWeb1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;221&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhorheMbRNekWywFMuJOGjKYawM9JkBnYMRAVLYQrO-RrP5aEvCv2H_UxRtxvs-gw_9X7IZLOO7Qz2E3PRl6v8VyUOmjBZ1Irw85ZsrTcGxC-RR1jBHt0kZUEIOl2kQV1S2BSUSb60_4tk/s320/AddReference_SitioWeb1.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Al dar clic en el botón &lt;i&gt;Go&lt;/i&gt;, nos aparece un nombre de Web Service por default si es necesario lo cambiamos, para nuestro ejemplo colocamos &lt;i&gt;WSSuma&lt;/i&gt;:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHON18Slj0Bw0uJHPtJFvLnFDAsDdW9ElR6kIkt2tkvACcnH5yb4m165MniJwVE-V3xauVhhc5PRPJw2JRs75CnJR-KLNUu8-_1ct3FpfES7TkK05lGuQNxYovqqWQcQiaW_NavGRn6_c/s1600/AddReference_SitioWeb2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;222&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHON18Slj0Bw0uJHPtJFvLnFDAsDdW9ElR6kIkt2tkvACcnH5yb4m165MniJwVE-V3xauVhhc5PRPJw2JRs75CnJR-KLNUu8-_1ct3FpfES7TkK05lGuQNxYovqqWQcQiaW_NavGRn6_c/s320/AddReference_SitioWeb2.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Hasta aquí tenemos agregado a nuestro proyecto web, el Web Service que creamos en una publicación anterior llamado &lt;a href=&quot;http://devcate.blogspot.com/2013/11/crear-web-service-con-c-en-visual-studio.html&quot;&gt;Crear Web Service con C# en Visual Studio&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Continuando con el ejemplo, el proyecto solución quedaría de la siguiente forma:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAWIcZEhyphenhyphenNbDKPKLFOLN-TWfLQTnwddWwl-vJIsbzf9LQ34FUXPhyphenhyphenMGLvztDptES9mJRXWYGtlaNZJQV2D27qj4HJN_PEacd_uZWA5WkxK6ndfkwn_WQT7zgPLCmns3HWobkzQxa7COeQ/s1600/AddReference_SitioWebExplorer.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAWIcZEhyphenhyphenNbDKPKLFOLN-TWfLQTnwddWwl-vJIsbzf9LQ34FUXPhyphenhyphenMGLvztDptES9mJRXWYGtlaNZJQV2D27qj4HJN_PEacd_uZWA5WkxK6ndfkwn_WQT7zgPLCmns3HWobkzQxa7COeQ/s1600/AddReference_SitioWebExplorer.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
A continuación se muestra el código Html de la pagina default.aspx:&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3Ud8-W90T8S148Ot01xQ9BM6nEP6WNl26m4IvIMq3IrXS-o3Me3YADXz_BTZXKmGTkgN_jZfRBW3hV3F-BXnYE6GeG6C-h2MsOTUiNxZP3gdRheQomMDhjcWmxSrMyo-5yGzbrMufEYU/s1600/HtmlConsumirWS.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3Ud8-W90T8S148Ot01xQ9BM6nEP6WNl26m4IvIMq3IrXS-o3Me3YADXz_BTZXKmGTkgN_jZfRBW3hV3F-BXnYE6GeG6C-h2MsOTUiNxZP3gdRheQomMDhjcWmxSrMyo-5yGzbrMufEYU/s320/HtmlConsumirWS.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Y el código &lt;a href=&quot;http://devcate.blogspot.com/search/label/c%23&quot;&gt;C#&lt;/a&gt; de la pagina default.aspx.cs&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page 
{
    //Se instancia en variable local, referencia al web services

    WSSuma.Service wsWeb = new WSSuma.Service();

    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSumar_Click(object sender, EventArgs e)
    {
        /****************************************************************************************************
         * Parametrizar en BD la Url del WebServices ademas proxy y credenciales si las llegas a necesitar
         * 2.   Para nuestro ejemplo solo le vamos a pasar el Url del web services apuntando al servidor web
         *      donde se enceuntra alojado
         * 3.   Anexo codigo para credenciales y proxy
         * 
         *      System.Net.WebProxy proxy = new System.Net.WebProxy(&quot;IpProxy&quot;);
         *      proxy.Credentials = new System.Net.NetworkCredential(&quot;userProxy&quot;,&quot;passProxy&quot;,&quot;dominioProxy&quot;);
         ****************************************************************************************************/
        try
        {
            wsWeb.Url = &quot;http://10.10.174.16/Appwebservices/service.asmx&quot;;
            //Se invoca metodo Suma, se pasan los valores A y B y el resultado se muestra
            lblSuma.Text = wsWeb.Suma(txtVA.Text.Trim(), txtVB.Text.Trim());
        }
        catch (Exception ex)
        {
            lblSuma.Text = ex.Message;
        }        
    }
}
&lt;/pre&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- RectanguloGrande336x280TD --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;7467619394&quot; style=&quot;display: inline-block; height: 280px; width: 336px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
En el código anterior la linea No. 11 (&lt;code class=&quot;csharp plain&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 14px; height: auto !important; left: auto !important; line-height: 15.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;&quot;&gt;WSSuma.Service wsWeb = &lt;/code&gt;&lt;code class=&quot;csharp keyword&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(0, 102, 153) !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 14px; font-weight: bold !important; height: auto !important; left: auto !important; line-height: 15.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;&quot;&gt;new&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #504d4d; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;bitstream vera sans mono&amp;quot; , &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 14px; line-height: 15.390625px; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;code class=&quot;csharp plain&quot; style=&quot;background-image: none !important; border-bottom-left-radius: 0px !important; border-bottom-right-radius: 0px !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 14px; height: auto !important; left: auto !important; line-height: 15.390625px; margin: 0px !important; min-height: inherit !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;&quot;&gt;WSSuma.Service();&lt;/code&gt;)donde se instancia el Web Service es muy importante ya que nos va ha permitir acceder a los métodos del Web Service.&lt;br /&gt;
&lt;br /&gt;
Finalmente nuestro ejemplo ya en ejecución quedaría de la siguiente forma:
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2zs_akEZRCXDRNdz1vj-dcTaY7QhHT2u6gBa-xNF4q9Fk61r-IYWg36IMBsotQSzfbg1bvBhVqJSfOvhv9Rc2-dM2aVrCRLDrKzJknT9g-Ql6jOjhFv7CBpBYbSdBxdmz8irio5c78Rw/s1600/ConsumirWeb+Service.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Consumir Web Service Visual Studio&quot; border=&quot;0&quot; height=&quot;52&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2zs_akEZRCXDRNdz1vj-dcTaY7QhHT2u6gBa-xNF4q9Fk61r-IYWg36IMBsotQSzfbg1bvBhVqJSfOvhv9Rc2-dM2aVrCRLDrKzJknT9g-Ql6jOjhFv7CBpBYbSdBxdmz8irio5c78Rw/s320/ConsumirWeb+Service.PNG&quot; title=&quot;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Los invito a consultar &lt;a href=&quot;http://devcate.blogspot.com/2013/11/crear-web-service-con-c-en-visual-studio.html&quot;&gt;como crear un Web Services con C# en Visual Studio&lt;/a&gt;.&lt;br /&gt;
&lt;div&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;2758218192&quot; style=&quot;display: inline-block; height: 15px; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/271127871982745089/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2013/11/consumir-web-service-desde-c-net.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/271127871982745089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/271127871982745089'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2013/11/consumir-web-service-desde-c-net.html' title='Consumir Web Service desde C# .Net'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOLobB6-qE-ypSOvSfLc7uxci2lL3HhZ3-D8shFRLZombTNXDrbwzHRUUiTpOQJ08biEC_kdxCXXfvhyphenhyphennpTo_v8chjMg-vXC3g1CM_oib9L0457pyyXxMt_YXTU6Omr4Hi30mvTWRiKAQ/s72-c/NewWebsite.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-620880001142849736</id><published>2013-11-01T14:46:00.000-07:00</published><updated>2014-03-19T06:29:17.287-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><category scheme="http://www.blogger.com/atom/ns#" term="web service"/><category scheme="http://www.blogger.com/atom/ns#" term="Xml"/><title type='text'>Crear Web Service con C# en Visual Studio</title><content type='html'>A continuación vamos a ver la &lt;b&gt;creación de un Web Services con C# en Visual Studio .Net&lt;/b&gt;, que tendrá un método llamado Suma. Para este ejemplo utilizamos Visual Studio .Net 2008 pero puede aplicar para .Net 2010. Primero creamos un nuevo proyecto en el menú &lt;i&gt;File - New - Web Site&lt;/i&gt;..., como nos muestra la siguiente imagen:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvAAx2A_Ei04MwrSbo0KpQ70zd9h6JK80Ev967D2e5UePAQ-7Y-NbFj-5LJ_anBC9qy2AZKDrkDEWt6bLCimKWqSzbkeRovf5uVKuW28XJ2hYjyxJ8cQPzmA4CMWhvqPyeC2IlBhGyIGk/s1600/NewWS.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvAAx2A_Ei04MwrSbo0KpQ70zd9h6JK80Ev967D2e5UePAQ-7Y-NbFj-5LJ_anBC9qy2AZKDrkDEWt6bLCimKWqSzbkeRovf5uVKuW28XJ2hYjyxJ8cQPzmA4CMWhvqPyeC2IlBhGyIGk/s320/NewWS.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Luego seleccionamos el tipo de proyecto que para nuestro ejemplo es &lt;i&gt;Asp.NET Web Service&lt;/i&gt;s, buscamos una ubicación para guárdalo con el botón &lt;i&gt;Browse&lt;/i&gt;... y damos clic en el botón Ok.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlqgDbcItBuIOdRxsWbREukMga-4IC3YoNy65OjfySc6aybF0FAzDaY1gU7tuxa3IJTyD_CC2gXcTnjkCasFLkonTBKj0VDBsLApTeVpMLL0Z57CTI8mDajBtLgsIPAR-0NyRnm8ZI6v4/s1600/NewWS1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;New Web Service Visual Studio&quot; border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlqgDbcItBuIOdRxsWbREukMga-4IC3YoNy65OjfySc6aybF0FAzDaY1gU7tuxa3IJTyD_CC2gXcTnjkCasFLkonTBKj0VDBsLApTeVpMLL0Z57CTI8mDajBtLgsIPAR-0NyRnm8ZI6v4/s320/NewWS1.PNG&quot; title=&quot;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Ya creado el proyecto, el explorador de soluciones nos muestra la siguiente estructura de archivos.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFMDHxZngFHWthwPd1sxoS3OB0hcR_AHsNuFbZCWnFe4NE3vbFs5JEKWF2VPEN3L0b9rmzufWOhS09nZmz6u2gr9jfyCZThn5WVWYtrvFbdP2IxE-xViDuVFsfL3mfqeCSZYz46PC522I/s1600/SolutionExplorer.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Solution Explorer&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFMDHxZngFHWthwPd1sxoS3OB0hcR_AHsNuFbZCWnFe4NE3vbFs5JEKWF2VPEN3L0b9rmzufWOhS09nZmz6u2gr9jfyCZThn5WVWYtrvFbdP2IxE-xViDuVFsfL3mfqeCSZYz46PC522I/s1600/SolutionExplorer.PNG&quot; title=&quot;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;Código fuente C#&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
En el código de .Net, se crea automáticamente una estructura básica que podemos modificar de acuerdo a nuestras necesidades. El atributo [WebMethod] nos indica si el método creado sera expuesto como Web Service, permitiendo que pueda ser consumido por otras aplicaciones,esto lo podemos ver claramente en la siguiente imagen.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyBkZFaygAI3NFvCCnbSPYrEVZcef30r4hPgfL-Kh1nLtT2uEOnIyfEftZkgY5_Oamm3x4z6gLCP6NgBAWHPwSp_v4fK-uB7r3lMCYx3fG-caq14X2JK3dCXepsLy3Xi8QBvo21sKNsIs/s1600/CodeWS.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyBkZFaygAI3NFvCCnbSPYrEVZcef30r4hPgfL-Kh1nLtT2uEOnIyfEftZkgY5_Oamm3x4z6gLCP6NgBAWHPwSp_v4fK-uB7r3lMCYx3fG-caq14X2JK3dCXepsLy3Xi8QBvo21sKNsIs/s320/CodeWS.PNG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Para crear nuestro método Suma reemplazamos el método &lt;i&gt;HelloWorld &lt;/i&gt;por el siguiente código:&lt;/div&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp;&quot;&gt;//Creacion de Metodo Suma que tiene el web Services
    //Los metodos se identifican con 
    [WebMethod]
    public string Suma(string Valor1, string Valor2) {
        int nSuma = 0;
        try
        {
            nSuma = Convert.ToInt32(Valor1) + Convert.ToInt32(Valor2);
        }
        catch
        {
            return &quot;Uno de los valores digitados es incorrecto, por favor verifique.&quot;;
        }
        return nSuma.ToString();
    }
&lt;/pre&gt;
&lt;br /&gt;
Explicando un poco el código anterior, el método Suma recibe dos parámetros (para este ejemplo son string pero podrían ser enteros - int) y la suma de ellos es retornado como un string, si ocurre una excepción ésta es controlada a través de try...catch.&lt;br /&gt;
&lt;div align =&quot;center&quot;&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- RectanguloGrande336x280 --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:336px;height:280px&quot;
     data-ad-client=&quot;ca-pub-2507618574004627&quot;
     data-ad-slot=&quot;4109674999&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
Cuando ejecutamos el código anterior la respuesta en el explorador de Internet aparece nuestro método Suma, luego al dar clic en él, nos solicita los dos parámetros que le declaramos.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikrQcSFs0kwcBO4Fd_xhQdlQRzk_K7-OhLStfviFa4utczQuuI06XKUvSLlKpfrfuGqBZm5Kv6lXyJqEjTtMdJ01kyIqfC3ILS9ODPPUYfQBBSJMmEMRDqO5oD8_7X_2N_5wVm93XrWVo/s1600/Metodo_Suma.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;275&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikrQcSFs0kwcBO4Fd_xhQdlQRzk_K7-OhLStfviFa4utczQuuI06XKUvSLlKpfrfuGqBZm5Kv6lXyJqEjTtMdJ01kyIqfC3ILS9ODPPUYfQBBSJMmEMRDqO5oD8_7X_2N_5wVm93XrWVo/s320/Metodo_Suma.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;Finalmente luego de digitar los valores y dar clic sobre el botón &lt;i&gt;Invocar&lt;/i&gt;, el método retorna la siguiente respuesta en formato Xml.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv8465nWzu64jW4qpUk_KDDw9GxIWwFOElj2X2Ag9IsgCekW8KIjLD3X1_UogLzxtSklSxomNjrkhmq4FNjSxqDm_ScVPsfbIX365h9vQg-BAM54s9sM-z8_cJHIp5Q8sUg1K8JgSmQL4/s1600/Metodo_Suma1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;60&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv8465nWzu64jW4qpUk_KDDw9GxIWwFOElj2X2Ag9IsgCekW8KIjLD3X1_UogLzxtSklSxomNjrkhmq4FNjSxqDm_ScVPsfbIX365h9vQg-BAM54s9sM-z8_cJHIp5Q8sUg1K8JgSmQL4/s320/Metodo_Suma1.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
Hasta aquí finalizamos la creación del nuestro Web Service. Los invito ha conocer como &lt;a href=&quot;http://devcate.blogspot.com/2013/11/consumir-web-service-desde-c-net.html&quot;&gt;Consumir Web Service desde C# .Net&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #134f5c;&quot;&gt;&quot;&quot; Si tienes dudas o quieras ampliar este &lt;b&gt;artículo&lt;/b&gt;, lo puedes hacer dejando tus comentarios. Además, si lo consideras interesante puedes &lt;b&gt;compartirlo con amigos y seguidores&lt;/b&gt; a través de los botones sociales que aparecen en esta página.&quot;&quot;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- EnlaceAnuncio468x15 --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;2758218192&quot; style=&quot;display: inline-block; height: 15px; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/620880001142849736/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2013/11/crear-web-service-con-c-en-visual-studio.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/620880001142849736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/620880001142849736'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2013/11/crear-web-service-con-c-en-visual-studio.html' title='Crear Web Service con C# en Visual Studio'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvAAx2A_Ei04MwrSbo0KpQ70zd9h6JK80Ev967D2e5UePAQ-7Y-NbFj-5LJ_anBC9qy2AZKDrkDEWt6bLCimKWqSzbkeRovf5uVKuW28XJ2hYjyxJ8cQPzmA4CMWhvqPyeC2IlBhGyIGk/s72-c/NewWS.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-8978921754480597695</id><published>2013-10-29T19:23:00.001-07:00</published><updated>2014-07-22T07:04:16.224-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apuntes y trucos"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql"/><category scheme="http://www.blogger.com/atom/ns#" term="tablas"/><title type='text'>Conocer el tamaño de las tablas de una Base de Datos Sql</title><content type='html'>En ocasiones nos vemos en la necesidad de &lt;b&gt;conocer el tamaño de las tablas de una base de datos &lt;a href=&quot;http://devcate.blogspot.com/search/label/Sql&quot;&gt;Sql&lt;/a&gt;&lt;/b&gt;&amp;nbsp;y saber cuales están ocupando mas espacio en ella, es de vital importancia para una buena administración de los datos y el servidor. Una opción&amp;nbsp;es consultar las propiedades tabla por tabla pero esto puede llegar a hacer ineficiente cuando tenemos muchas tablas. Lo mejor es ejecutar el siguiente script en nuestra base de datos devolviendo ordenadamente que tabla tiene mayor tamaño por el numero de registros e indices que tiene.&lt;br /&gt;
&lt;pre class=&quot;brush: sql;&quot;&gt;Use BaseDatos
Go
SET NOCOUNT ON 

/************OBTENER EL TAMAÑO DE LAS TABLAS DE UNA BASE DE DATOS********/

/**********************************************************
 Corrige las filas, las páginas utilizadas, las páginas 
 reservadas, las páginas hoja y las páginas de datos de 
 cuenta para cada partición en una tabla o índice.
***********************************************************/
DBCC UPDATEUSAGE(0) 


create TABLE #TablesBD 
(
    [name] NVARCHAR(128),
    [rows] CHAR(11),
    reserved VARCHAR(18),
    data VARCHAR(18),
    index_size VARCHAR(18),
    unused VARCHAR(18)
)

INSERT #TablesBD EXEC sp_msForEachTable &#39;EXEC sp_spaceused &#39;&#39;?&#39;&#39;&#39; 

--CONSULTA EL RESULTADO ORDENANDO POR LA TABLA MAS PESADA
SELECT *
FROM   #TablesBD
ORDER BY convert(int, substring(data, 1, len(data)-3)) desc
&lt;/pre&gt;
&lt;div align=&quot;left&quot;&gt;
&lt;script async src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- devcate_main_Blog1_728x90_as --&gt;
&lt;ins class=&quot;adsbygoogle&quot;
     style=&quot;display:inline-block;width:728px;height:90px&quot;
     data-ad-client=&quot;ca-pub-2507618574004627&quot;
     data-ad-slot=&quot;5257591391&quot;&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;br/&gt;
Los invito a consultar como se &lt;a href=&quot;http://devcate.blogspot.com/2013/12/calcular-la-edad-en-anos-meses-y-dias.html&quot;&gt;calcula la edad en años, meses y días en Sql&lt;/a&gt;.
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #134f5c;&quot;&gt;&quot;&quot; Si tienes dudas o quieras ampliar este &lt;b&gt;artículo&lt;/b&gt;, lo puedes hacer dejando tus comentarios. Además, si lo consideras interesante puedes &lt;b&gt;compartirlo con amigos y seguidores&lt;/b&gt; a través de los botones sociales que aparecen en esta página.&quot;&quot;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- EnlaceAnuncio468x15 --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;2758218192&quot; style=&quot;display: inline-block; height: 15px; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/8978921754480597695/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2013/10/sql-obtener-el-tamano-de-todas-las.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/8978921754480597695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/8978921754480597695'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2013/10/sql-obtener-el-tamano-de-todas-las.html' title='Conocer el tamaño de las tablas de una Base de Datos Sql'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-4745838996523448198</id><published>2013-10-24T19:50:00.001-07:00</published><updated>2013-10-25T20:10:28.659-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apuntes y trucos"/><category scheme="http://www.blogger.com/atom/ns#" term="Procedimiento almacenado"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql"/><title type='text'>Parámetros OUTPUT en procedimientos almacenados</title><content type='html'>A continuación podemos ver un pequeño ejemplo en &lt;a href=&quot;http://devcate.blogspot.com/search/label/Sql&quot;&gt;Sql Server&lt;/a&gt; de como crear un &lt;b&gt;procedimiento almacenado&lt;/b&gt; (SP) con la declaración de parámetros entre estos uno de salida (&lt;b&gt;Output&lt;/b&gt;), finalmente se muestra la ejecución del SP y retorna el resultado de la variable Output.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: sql;&quot;&gt;--Crear Procedimiento almacenado
create procedure spdeprueba
 @parametro1  int
 ,@parametro2 int
 ,@resultado  int output --variable de salida
As
begin
 set @respuesta = @parametro1 + @parametro2
end
go

--Ejecutar el procedimiento almacenado e imprimir la variable output
Declare @resultado int

Execute spdeprueba 1,2, @resultado output

Select @resultado
&lt;/pre&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #134f5c;&quot;&gt;&quot;&quot; Si tienes dudas o quieras ampliar este &lt;b&gt;artículo&lt;/b&gt;, lo puedes hacer dejando tus comentarios. Además, si lo consideras interesante puedes &lt;b&gt;compartirlo con amigos y seguidores&lt;/b&gt; a través de los botones sociales que aparecen en esta página.&quot;&quot;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/4745838996523448198/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2013/10/parametros-output-en-procedimientos.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/4745838996523448198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/4745838996523448198'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2013/10/parametros-output-en-procedimientos.html' title='Parámetros OUTPUT en procedimientos almacenados'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-4227844451018298606</id><published>2013-10-23T07:50:00.000-07:00</published><updated>2017-12-07T10:20:01.695-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apuntes y trucos"/><category scheme="http://www.blogger.com/atom/ns#" term="JOB"/><category scheme="http://www.blogger.com/atom/ns#" term="Procedimiento almacenado"/><category scheme="http://www.blogger.com/atom/ns#" term="Sql"/><title type='text'>Procedimiento almacenado programado en Job</title><content type='html'>Buscar en &lt;a href=&quot;http://devcate.blogspot.com/search/label/Sql&quot;&gt;Sql Server&lt;/a&gt; un &lt;b&gt;procedimiento almacenado&lt;/b&gt; que se encuentre programado en un JOB (dentro de sus pasos de ejecución) muchas veces puede llegar a ser necesario.&lt;br /&gt;
&lt;br /&gt;
En el siguiente código Sql pueden ver como se puede obtener a partir del nombre o las iniciales de procedimiento almacenado el nombre, fecha de creación y modificación, ultima fecha de creación, entre otros.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: sql;&quot;&gt;Select sj.name,sj.description,sj.date_created,sj.date_modified,sjs.command,sjs.last_run_duration,sjs.last_run_date,last_run_time,
  sjsc.next_run_date,next_run_time
From msdb.dbo.sysjobs sj
 Inner join msdb.dbo.sysjobsteps sjs 
On sj.job_id = sjs.job_id
 Inner join msdb.dbo.sysjobschedules sjsc 
On sjs.job_id = sjsc.job_id
where sjs.command Like&#39;%paDCProcesoDiario%&#39;
&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnOAP-e2n_0KxKEM_uFAbZdgIF3y-UKqPFnrJ0tGWSIHcz4vRmO6z_nAwXx5Vsp-VdIoj2g1frlKSSiW40ZwnM1eCqdxRUGeLow47ToQ2_BCytLcqbYv9mBcHsI8Ln0zuJdUGhOxBsGfg/s1600/Job.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;38&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnOAP-e2n_0KxKEM_uFAbZdgIF3y-UKqPFnrJ0tGWSIHcz4vRmO6z_nAwXx5Vsp-VdIoj2g1frlKSSiW40ZwnM1eCqdxRUGeLow47ToQ2_BCytLcqbYv9mBcHsI8Ln0zuJdUGhOxBsGfg/s640/Job.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinsxQq0l57SjvBaqQVlNob1NBqil1K5up2_aVWbbZrEA7aIfSF0XoBxno_LD3o2wYdUZL5N7r9BpraPmmcwhJeb_uv6YhNPOPY-hYDTVULttO4cb0MybLyUNJofxxvAJkPwxTYH2HOVyU/s1600/Job1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;46&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinsxQq0l57SjvBaqQVlNob1NBqil1K5up2_aVWbbZrEA7aIfSF0XoBxno_LD3o2wYdUZL5N7r9BpraPmmcwhJeb_uv6YhNPOPY-hYDTVULttO4cb0MybLyUNJofxxvAJkPwxTYH2HOVyU/s640/Job1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/4227844451018298606/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2013/10/procedimiento-almacenado-programado-en.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/4227844451018298606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/4227844451018298606'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2013/10/procedimiento-almacenado-programado-en.html' title='Procedimiento almacenado programado en Job'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnOAP-e2n_0KxKEM_uFAbZdgIF3y-UKqPFnrJ0tGWSIHcz4vRmO6z_nAwXx5Vsp-VdIoj2g1frlKSSiW40ZwnM1eCqdxRUGeLow47ToQ2_BCytLcqbYv9mBcHsI8Ln0zuJdUGhOxBsGfg/s72-c/Job.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-2551058429320941480</id><published>2013-07-12T06:53:00.001-07:00</published><updated>2017-11-02T15:12:24.976-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="ejemplo"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="web.config"/><category scheme="http://www.blogger.com/atom/ns#" term="windows application"/><title type='text'>Cómo agregar y leer cadena de conexión al archivo Web.config</title><content type='html'>En este artículo voy a mostrar cómo se agrega una cadena de conexión en el archivo &lt;b&gt;web.config&lt;/b&gt; y recuperar &lt;b&gt;la cadena de conexión en el código utilizando C#.
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Primero se declara la llave de conexión dentro del tag &lt;b&gt;AppSettings &lt;/b&gt;en el web.config, así:&lt;br /&gt;
&lt;div style=&quot;background: #CEECF5; border-bottom: silver 1px dashed; border-left: silver 1px dashed; border-right: silver 1px dashed; border-top: silver 1px dashed; margin: 10px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; padding-top: 2px;&quot;&gt;
&amp;lt;appSettings&amp;gt;&lt;br /&gt;
&amp;lt;add key=&quot;ConnectionStringKey&quot; value=&quot;Data Source=DB Server IP;Integrated Security=False;Initial Catalog=DataBaseName;User ID=userId;Password=password;&quot;&amp;gt;&lt;br /&gt;
&amp;lt;/appSettings&amp;gt;&lt;/div&gt;
Luego ya en el código (.cs) debemos agregar la referencia a System.Configuration, para tener los métodos necesarios para acceder a esta llave creada.&lt;br /&gt;
&lt;br /&gt;
Para leer el valor de la llave o key, se puede realizar de la siguiente forma:&lt;br /&gt;
&lt;div style=&quot;background: #CEECF5; border-bottom: silver 1px dashed; border-left: silver 1px dashed; border-right: silver 1px dashed; border-top: silver 1px dashed; margin: 10px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; padding-top: 2px;&quot;&gt;
SqlConnection _cnn = new SqlConnection(&lt;b&gt;System.Configuration.ConfigurationManager.AppSettings[&quot;ConnectionStringKey&quot;].ToString());
&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Ahora dentro del tag &lt;b&gt;connectionStrings&lt;/b&gt; que se encuentra en el archivo Web.config&lt;b&gt;:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #CEECF5; border-bottom: silver 1px dashed; border-left: silver 1px dashed; border-right: silver 1px dashed; border-top: silver 1px dashed; margin: 10px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; padding-top: 2px;&quot;&gt;
&amp;lt;connectionStrings&amp;gt;&amp;lt;add name=&quot;ConnectionStringKey&quot; connectionString=&quot;Data Source=DB ServerIP;Initial Catalog=DataBaseName;Integrated Security=True;User ID=userId;Password=password;&quot; providerName=&quot;System.Data.SqlClient&quot; /&amp;gt;&amp;lt;connectionStrings/&amp;gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Finalmente para acceder al valor de la llave:
&lt;br /&gt;
&lt;div style=&quot;background: #CEECF5; border-bottom: silver 1px dashed; border-left: silver 1px dashed; border-right: silver 1px dashed; border-top: silver 1px dashed; margin: 10px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; padding-top: 2px;&quot;&gt;
SqlConnection _cnn = new SqlConnection(&lt;b&gt;System.Configuration.ConfigurationManager.ConnectionStrings[&quot;ConnectionStringKey&quot;].ToString());&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- devcate_main_Blog1_728x90_as --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;5257591391&quot; style=&quot;display: inline-block; height: 90px; width: 728px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/2551058429320941480/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2013/07/agregar-cadena-de-conexion-en-webconfig.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/2551058429320941480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/2551058429320941480'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2013/07/agregar-cadena-de-conexion-en-webconfig.html' title='Cómo agregar y leer cadena de conexión al archivo Web.config'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-6511319142587289750</id><published>2013-07-11T08:33:00.000-07:00</published><updated>2014-03-21T07:45:05.613-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="Html"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Desactivar Cortar, Copiar y Pegar en Textbox Usando jQuery, JavaScript en Asp.Net</title><content type='html'>En este artículo voy a mostrar cómo se puede desactivar cortar, copiar y pegar en control cuadro de texto de asp.net con javascript o jQuery.
&lt;br /&gt;
&lt;br /&gt;
Aquí está el código por el cual podemos realizar esta funcionalidad.

&lt;br /&gt;
&lt;div style=&quot;background: #CEECF5; border-bottom: silver 1px dashed; border-left: silver 1px dashed; border-right: silver 1px dashed; border-top: silver 1px dashed; margin: 10px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; padding-top: 2px;&quot;&gt;
&amp;lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeBehind=&quot;WebForm1.aspx.cs&quot; Inherits=&quot;Stylingfrorm.WebForm1&quot; %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;&lt;br /&gt;
&amp;lt;head runat=&quot;server&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;title&amp;gt;&lt;b&gt;Desactivar Cortar, Copiar y Pegar en Textbox Usando jQuery, JavaScript en Asp.Net&lt;/b&gt;&amp;lt;/title&amp;gt; &amp;nbsp;&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body &amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;h3&amp;gt;Desactivar Cortar, Copiar y Pegar&amp;lt;/h3&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;asp:TextBox ID=&quot;TextBox1&quot; runat=&quot;server&quot; Width=&quot;300px&quot; &amp;nbsp;&lt;b&gt;oncopy=&quot;return false;&quot; onpaste=&quot;return false;&lt;/b&gt;&quot; oncut=&quot;return false;&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- RectanguloGrande336x280TD --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;7467619394&quot; style=&quot;display: inline-block; height: 280px; width: 336px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #134f5c;&quot;&gt;&quot;&quot; Si tienes dudas o quieras ampliar este &lt;b&gt;artículo&lt;/b&gt;, lo puedes hacer dejando tus comentarios. Además, si lo consideras interesante puedes &lt;b&gt;compartirlo con amigos y seguidores&lt;/b&gt; a través de los botones sociales que aparecen en esta página.&quot;&quot;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;script async=&quot;&quot; src=&quot;//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;
&lt;!-- EnlaceAnuncio468x15 --&gt;
&lt;br /&gt;
&lt;ins class=&quot;adsbygoogle&quot; data-ad-client=&quot;ca-pub-2507618574004627&quot; data-ad-slot=&quot;2758218192&quot; style=&quot;display: inline-block; height: 15px; width: 468px;&quot;&gt;&lt;/ins&gt;&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/6511319142587289750/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2013/07/desactivar-cortar-copiar-y-pegar-en.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/6511319142587289750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/6511319142587289750'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2013/07/desactivar-cortar-copiar-y-pegar-en.html' title='Desactivar Cortar, Copiar y Pegar en Textbox Usando jQuery, JavaScript en Asp.Net'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-6945214923737116378</id><published>2013-06-13T09:15:00.000-07:00</published><updated>2019-08-16T14:50:34.775-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".Net"/><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Validar sólo números y letras con Javascript</title><content type='html'>&lt;span style=&quot;text-align: justify;&quot;&gt;En un post anterior mostramos la forma de &lt;a href=&quot;http://devcate.blogspot.com/2012/10/validar-solo-numeros-o-texto-con.html&quot;&gt;Validar sólo números o letras&lt;/a&gt;&amp;nbsp;con Javascript, en éste podemos ver ambas validaciones es acción, es decir como &lt;b&gt;Validar solo números y letras&lt;/b&gt;&amp;nbsp;en el mismo campo.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Esto lo podemos lograr a través del siguiente código &lt;b&gt;&lt;a href=&quot;http://devcate.blogspot.com/search/label/Javascript&quot;&gt;JavaScript&lt;/a&gt;&lt;/b&gt;, mostrado a continuación:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Validar sólo números y letras&lt;/b&gt;&lt;br /&gt;
&lt;pre class=&quot;brush: js;&quot;&gt;//Función que permite solo Números
function SoloNumeroLetras() {
    if ((event.keyCode &amp;lt; 48) || (event.keyCode &amp;gt; 57) &amp;amp;&amp;amp; (event.keyCode &amp;lt; 65) || (event.keyCode &amp;gt; 90) &amp;amp;&amp;amp; (event.keyCode &amp;lt; 97) || (event.keyCode &amp;gt; 122))
        event.returnValue = false;
}&lt;/pre&gt;
&lt;br /&gt;
Luego, para llamar la función en nuestra pagina web, solo basta con invocarlo en el evento &lt;i&gt;onkeypress&lt;/i&gt; de la caja de texto así:
&lt;br /&gt;
&amp;lt;input id=&quot;txAlfanumerico&quot; name=&quot;txAlfanumerico&quot; onkeypress=&quot;SoloNumeroLetras()&quot; type=&quot;text&quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Si queremos que los códigos anteriores, no estén incluidos dentro de la pagina &lt;b&gt;web&lt;/b&gt;, podemos crear un archivo .js llamado &lt;i&gt;Validaciones.js&lt;/i&gt;, luego copiamos y pegamos el código anterior en este archivo, guardamos y finalmente agregamos la siguiente línea, arriba del tag &lt;i&gt;&amp;lt;/head&amp;gt;&lt;/i&gt; , de la pagina donde se desee llamar la función:&lt;br /&gt;
Ejemplo:&amp;nbsp;&quot;&amp;lt;script src=&quot;../Scripts/Validaciones.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&quot;&lt;br /&gt;
&lt;br /&gt;
También les puede interesar:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://devcate.blogspot.com/2012/09/solo-letras-en-los-textbox-windows-forms.html&quot; target=&quot;_blank&quot;&gt;Solo letras en Textbox en Visual Studio C#&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://devcate.blogspot.com/2012/10/validar-solo-numeros-o-texto-con.html&quot; target=&quot;_blank&quot;&gt;Validar Solo números con Javascript&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
Espero los pueda ayudar, cualquier duda me escriben por este post o a mi &amp;nbsp;correo, hasta pronto.&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/6945214923737116378/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2013/06/validar-solo-numeros-y-letras-con.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/6945214923737116378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/6945214923737116378'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2013/06/validar-solo-numeros-y-letras-con.html' title='Validar sólo números y letras con Javascript'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7733664808680981733.post-2525304252773188463</id><published>2013-06-11T13:28:00.002-07:00</published><updated>2013-06-11T13:28:41.390-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Internet"/><category scheme="http://www.blogger.com/atom/ns#" term="Noticias"/><title type='text'> Ranking Navegadores Web Mayo 2013</title><content type='html'>El &lt;b&gt;ranking de los principales navegadores web&lt;/b&gt; en mayo destaca entre otras razones porque el producto de Google es la única opción de entre los primeros cinco navegadores, que ha perdido peso en el mercado. Este hecho contrasta con el constante crecimiento que Chrome había experimentado en los cuatro años que siguieron a su lanzamiento inicial.&lt;br /&gt;
&lt;br /&gt;
Microsoft con Internet Explorer es junto a la Fundación Mozilla con Firefox, las opciones con mejor ratio de crecimiento en el último mes. Especialmente intenso parece el trabajo que desde el equipo de Firefox se está llevando a cabo con la intención de recuperar la posición perdida en los últimos tiempos. En este sentido destaca que el equipo de desarrollo de la Fundación Mozilla está trabajando gracias al proyecto Australis en el mayor rediseño de su navegador de los últimos tiempos que además sirva de base para futuros lanzamientos.&lt;br /&gt;
&lt;br /&gt;
Alternativas más discretas en el mercado de escritorio como Safari y Opera también mejoran sus números en mayo aunque todavía muy lejos de IE, Chrome y Firefox.&lt;br /&gt;
&lt;br /&gt;
No obstante lo anterior aunque entre los navegadores móviles, Safari continúa liderando por un amplio margen, &amp;nbsp;destaca que el navegador de Chrome crece más rápido que la segunda opción más importante de este mercado, el navegador de Android.&lt;br /&gt;
&lt;br /&gt;
Google ha estado “apretando” a la versión móvil de Chrome &amp;nbsp;para mejorar su posición en los dispositivos con Android pre-instalado. Eso ha dado lugar a un movimiento ascendente constante de la cuota de mercado, con un importante crecimiento en el último mes y que puede suponer a futuro la llegada de una nueva alternativa cpaz de competir con Safari.

&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ranking de Navegadores de Escritorio:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. &amp;nbsp; &amp;nbsp;Microsoft Internet Explorer: 55.99%&lt;br /&gt;
2. &amp;nbsp; &amp;nbsp;Firefox: 20.63%&lt;br /&gt;
3. &amp;nbsp; &amp;nbsp;Chrome: 15.74%&lt;br /&gt;
4. &amp;nbsp; &amp;nbsp;Safari: 5.46%&lt;br /&gt;
5. &amp;nbsp; &amp;nbsp;Opera: 1.77%&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ranking de Navegadores Móviles:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. &amp;nbsp; &amp;nbsp;Safari: 59.98%&lt;br /&gt;
2. &amp;nbsp; &amp;nbsp;Android: 20.73%&lt;br /&gt;
3. &amp;nbsp; &amp;nbsp;Opera Mini: 10.53%&lt;br /&gt;
4. &amp;nbsp; &amp;nbsp;Chrome: 3.2%&lt;br /&gt;
5. &amp;nbsp; &amp;nbsp;Internet Explorer: 1.97%&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Ranking por Versiones en Navegadores de Escritorio:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1. &amp;nbsp; &amp;nbsp;Internet Explorer 8: 22.99%&lt;br /&gt;
2. &amp;nbsp; &amp;nbsp;Internet Explorer 9: 15.39%&lt;br /&gt;
3. &amp;nbsp; &amp;nbsp;Firefox 20: 10.38%&lt;br /&gt;
4. &amp;nbsp; &amp;nbsp;Chrome 26: 9.85%&lt;br /&gt;
5. &amp;nbsp; &amp;nbsp;Internet Explorer 10: 9.262%&lt;br /&gt;
6. &amp;nbsp; &amp;nbsp;Internet Explorer 6: 9.26%&lt;br /&gt;
7. &amp;nbsp; &amp;nbsp;Firefox 21: 4.66%&lt;br /&gt;
8. &amp;nbsp; &amp;nbsp;Chrome 27: 3.66&lt;br /&gt;
9. &amp;nbsp; &amp;nbsp;Safari 6: 3.18%&lt;br /&gt;
10. &amp;nbsp; Internet Explorer 7: 1.78%&lt;div class=&quot;blogger-post-footer&quot;&gt;DevCate 2016&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://devcate.blogspot.com/feeds/2525304252773188463/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://devcate.blogspot.com/2013/06/ranking-navegadores-web-mayo-2013.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/2525304252773188463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7733664808680981733/posts/default/2525304252773188463'/><link rel='alternate' type='text/html' href='http://devcate.blogspot.com/2013/06/ranking-navegadores-web-mayo-2013.html' title=' Ranking Navegadores Web Mayo 2013'/><author><name>Catefralo</name><uri>http://www.blogger.com/profile/14579141938573602052</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>