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

<channel>
	<title>nPath Ltd. &#187; Gridview</title>
	<atom:link href="http://www.npathweb.com/tag/gridview/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.npathweb.com</link>
	<description>Web Development Blog</description>
	<lastBuildDate>Mon, 22 Feb 2010 15:16:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>email a gridview</title>
		<link>http://www.npathweb.com/2009/02/05/email-a-gridview/</link>
		<comments>http://www.npathweb.com/2009/02/05/email-a-gridview/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 17:00:28 +0000</pubDate>
		<dc:creator>B.Harding</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[Gridview]]></category>

		<guid isPermaLink="false">http://www.npathweb.com/blog/?p=18</guid>
		<description><![CDATA[In this post I&#8217;ll discuss how I coerced a gridview control into straight text.  The reason I did this was to send the data from the gridview in an email. An invoice in this case.
At first I figured I could use a div and simply tap in to the inner html. No luck! It&#8217;s not available on the server [...]]]></description>
			<content:encoded><![CDATA[<p>In this post I&#8217;ll discuss how I coerced a gridview control into straight text.  The reason I did this was to send the data from the gridview in an email. An invoice in this case.</p>
<p>At first I figured I could use a div and simply tap in to the inner html. No luck! It&#8217;s not available on the server side. I&#8217;d like to avoid the help of Javascript so I kept looking.</p>
<p>I decided to make my own copy of text that is generated when the grid is databound. Every time a row is databound I append the info to my string. This turned out to be pretty flexible. I can pretty much turn the data into anything I want. csv, or a html table. At first I tried plain text with tabs in between. I decided to use an html table as it ended up looking the best.</p>
<p>In the grid&#8217;s row databound event I add &lt;table&gt; if the row is a header row. I close it with &lt;/table&gt; if the row is the footer. For everyting in between I create a &lt;tr&gt; then for each control with &lt;td&gt;</p>
<p>I saved this text in a hidden label that I can call later to be used in the body of an email.</p>
<p>Here is the source code. I use linq to poulate the gridview but you can bind the gridview to any datasource.</p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="font-size: x-small;">&lt;%</span><span style="color: #0000ff; font-size: x-small;">@</span><span style="font-size: x-small;"> </span><span style="color: #a31515; font-size: x-small;">Page</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">Language</span><span style="color: #0000ff; font-size: x-small;">=&#8221;VB&#8221;</span><span style="font-size: x-small;"> %&gt;<br />
</span><span style="color: #0000ff; font-size: x-small;">&lt;!</span><span style="color: #a31515; font-size: x-small;">DOCTYPE</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">html</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">PUBLIC</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">&#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221;</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">&#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
&lt;</span><span style="color: #a31515; font-size: x-small;">script</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">runat</span><span style="color: #0000ff; font-size: x-small;">=&#8221;server&#8221;&gt;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">Protected</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">Sub</span><span style="font-size: x-small;"> Page_Load(</span><span style="color: #0000ff; font-size: x-small;">ByVal</span><span style="font-size: x-small;"> sender </span><span style="color: #0000ff; font-size: x-small;">As</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">Object</span><span style="font-size: x-small;">, </span><span style="color: #0000ff; font-size: x-small;">ByVal</span><span style="font-size: x-small;"> e </span><span style="color: #0000ff; font-size: x-small;">As</span><span style="font-size: x-small;"> System.EventArgs)</span></p>
<p><span style="color: #0000ff; font-size: x-small;">If</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">Not</span><span style="font-size: x-small;"> Page.IsPostBack </span><span style="color: #0000ff; font-size: x-small;">Then</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #9acd32; font-size: x-small;">&#8216;make some data with Linq</span></p>
<p><span style="color: #0000ff; font-size: x-small;">Dim</span><span style="font-size: x-small;"> myList() = {</span><span style="color: #0000ff; font-size: x-small;">New</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">With</span><span style="font-size: x-small;"> {.Name = </span><span style="color: #a31515; font-size: x-small;">&#8220;Bill&#8221;</span><span style="font-size: x-small;">, .Title = </span><span style="color: #a31515; font-size: x-small;">&#8220;Developer&#8221;</span><span style="font-size: x-small;">, .Age = </span><span style="color: #a31515; font-size: x-small;">&#8220;21&#8243;</span><span style="font-size: x-small;">, .Birthday = </span><span style="color: #a31515; font-size: x-small;">&#8220;9/30&#8243;</span><span style="font-size: x-small;">}, _<br />
</span><span style="color: #0000ff; font-size: x-small;">New</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">With</span><span style="font-size: x-small;"> {.Name = </span><span style="color: #a31515; font-size: x-small;">&#8220;Joe&#8221;</span><span style="font-size: x-small;">, .Title = </span><span style="color: #a31515; font-size: x-small;">&#8220;Tester&#8221;</span><span style="font-size: x-small;">, .Age = </span><span style="color: #a31515; font-size: x-small;">&#8220;23&#8243;</span><span style="font-size: x-small;">, .Birthday = </span><span style="color: #a31515; font-size: x-small;">&#8220;1/3&#8243;</span><span style="font-size: x-small;">}, _<br />
</span><span style="color: #0000ff; font-size: x-small;">New</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">With</span><span style="font-size: x-small;"> {.Name = </span><span style="color: #a31515; font-size: x-small;">&#8220;Tom&#8221;</span><span style="font-size: x-small;">, .Title = </span><span style="color: #a31515; font-size: x-small;">&#8220;Senior Developer&#8221;</span><span style="font-size: x-small;">, .Age = </span><span style="color: #a31515; font-size: x-small;">&#8220;25&#8243;</span><span style="font-size: x-small;">, .Birthday = </span><span style="color: #a31515; font-size: x-small;">&#8220;3/20&#8243;</span><span style="font-size: x-small;">}, _<br />
</span><span style="color: #0000ff; font-size: x-small;">New</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">With</span><span style="font-size: x-small;"> {.Name = </span><span style="color: #a31515; font-size: x-small;">&#8220;Mark&#8221;</span><span style="font-size: x-small;">, .Title = </span><span style="color: #a31515; font-size: x-small;">&#8220;Technician&#8221;</span><span style="font-size: x-small;">, .Age = </span><span style="color: #a31515; font-size: x-small;">&#8220;41&#8243;</span><span style="font-size: x-small;">, .Birthday = </span><span style="color: #a31515; font-size: x-small;">&#8220;6/26&#8243;</span><span style="font-size: x-small;">} _</span></p>
<p><span style="font-size: x-small;">}</span></p>
<p><span style="color: #0000ff; font-size: x-small;">Me</span><span style="font-size: x-small;">.GridView1.DataSource = myList<br />
</span><span style="color: #0000ff; font-size: x-small;">Me</span><span style="font-size: x-small;">.GridView1.DataBind()</span></p>
<p><span style="color: #0000ff; font-size: x-small;">End</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">If</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">End</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">Sub</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">Protected</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">Sub</span><span style="font-size: x-small;"> GridView1_RowDataBound(</span><span style="color: #0000ff; font-size: x-small;">ByVal</span><span style="font-size: x-small;"> sender </span><span style="color: #0000ff; font-size: x-small;">As</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">Object</span><span style="font-size: x-small;">, </span><span style="color: #0000ff; font-size: x-small;">ByVal</span><span style="font-size: x-small;"> e </span><span style="color: #0000ff; font-size: x-small;">As</span><span style="font-size: x-small;"> System.Web.UI.WebControls.GridViewRowEventArgs)</span></p>
<p><span style="color: #0000ff; font-size: x-small;"> If</span><span style="font-size: x-small;"> e.Row.RowType = DataControlRowType.Header </span><span style="color: #0000ff; font-size: x-small;">Then<br />
</span><span style="font-size: x-small;"> Label1.Text &amp;= vbCrLf &amp; </span><span style="color: #a31515; font-size: x-small;">&#8220;&lt;table border=&#8217;0&#8242;cellpadding=&#8217;5&#8242; cellspacing=&#8217;5&#8242;&gt;&#8221;</span><span style="font-size: x-small;"> &amp; vbCrLf<br />
</span><span style="color: #0000ff; font-size: x-small;"> End</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">If</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;"> If</span><span style="font-size: x-small;"> e.Row.RowType &lt;&gt; DataControlRowType.Footer </span><span style="color: #0000ff; font-size: x-small;">Then<br />
</span><span style="font-size: x-small;">Label1.Text &amp;= vbTab &amp; </span><span style="color: #a31515; font-size: x-small;">&#8220;&lt;tr&gt;&#8221;</span><span style="font-size: x-small;"> &amp; vbCrLf</span></p>
<p><span style="color: #0000ff; font-size: x-small;"> For</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">Each</span><span style="font-size: x-small;"> item </span><span style="color: #0000ff; font-size: x-small;">In</span><span style="font-size: x-small;"> e.Row.Controls</span></p>
<p><span style="color: #0000ff; font-size: x-small;"> If</span><span style="font-size: x-small;"> item.visible = </span><span style="color: #0000ff; font-size: x-small;">True</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">Then</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="font-size: x-small;"> Label1.Text &amp;= vbTab &amp; vbTab &amp; </span><span style="color: #a31515; font-size: x-small;">&#8220;&lt;td&gt;&#8221;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="font-size: x-small;"> Label1.Text &amp;= item.text</span></p>
<p><span style="font-size: x-small;"> Label1.Text &amp;= </span><span style="color: #a31515; font-size: x-small;">&#8220;&lt;/td&gt;&#8221;</span><span style="font-size: x-small;"> &amp; vbCrLf</span></p>
<p><span style="color: #0000ff; font-size: x-small;"> End </span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">If</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;"> Next</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="font-size: x-small;">Label1.Text &amp;= vbTab &amp; </span><span style="color: #a31515; font-size: x-small;">&#8220;&lt;/tr&gt;&#8221;</span><span style="font-size: x-small;"> &amp; vbCrLf</span></p>
<p><span style="color: #0000ff; font-size: x-small;">End</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">If</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">If</span><span style="font-size: x-small;"> e.Row.RowType = DataControlRowType.Footer </span><span style="color: #0000ff; font-size: x-small;">Then<br />
</span><span style="font-size: x-small;">Label1.Text &amp;= </span><span style="color: #a31515; font-size: x-small;">&#8220;&lt;/table&gt;&#8221;</span><span style="font-size: x-small;"> &amp; vbCrLf<br />
</span><span style="color: #0000ff; font-size: x-small;">End</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">If</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">End</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">Sub</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">Protected</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">Sub</span><span style="font-size: x-small;"> Button1_Click(</span><span style="color: #0000ff; font-size: x-small;">ByVal</span><span style="font-size: x-small;"> sender </span><span style="color: #0000ff; font-size: x-small;">As</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">Object</span><span style="font-size: x-small;">, </span><span style="color: #0000ff; font-size: x-small;">ByVal</span><span style="font-size: x-small;"> e </span><span style="color: #0000ff; font-size: x-small;">As</span><span style="font-size: x-small;"> System.EventArgs)</span></p>
<p><span style="color: #0000ff; font-size: x-small;">Me</span><span style="font-size: x-small;">.Label2.Text = Server.HtmlEncode(Label1.Text)</span></p>
<p><span style="color: #0000ff; font-size: x-small;">Me</span><span style="font-size: x-small;">.Label1.Visible = </span><span style="color: #0000ff; font-size: x-small;">True</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #008000; font-size: x-small;">&#8216; Dim msg As New System.Net.Mail.MailMessage(<a href="mailto:TO@EMAIL.COM">TO@EMAIL.COM</a>, <a href="mailto:FROM@EMAIL.COM">FROM@EMAIL.COM</a>)</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #008000; font-size: x-small;">&#8216; msg.Subject = &#8220;Gridview email&#8221;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #008000; font-size: x-small;">&#8216; msg.IsBodyHtml = True</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #008000; font-size: x-small;">&#8216; msg.Body = Me.Label1.Text</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #008000; font-size: x-small;">&#8216;Dim smtp As New System.Net.Mail.SmtpClient</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #008000; font-size: x-small;">&#8216; smtp.Send(msg)</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">End</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">Sub</span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;/</span><span style="color: #a31515; font-size: x-small;">script</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">html</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">xmlns</span><span style="color: #0000ff; font-size: x-small;">=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;</span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">head</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">runat</span><span style="color: #0000ff; font-size: x-small;">=&#8221;server&#8221;&gt;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">title</span><span style="color: #0000ff; font-size: x-small;">&gt;</span><span style="font-size: x-small;">Untitled Page</span><span style="color: #0000ff; font-size: x-small;">&lt;/</span><span style="color: #a31515; font-size: x-small;">title</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;/</span><span style="color: #a31515; font-size: x-small;">head</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">body</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">form</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">id</span><span style="color: #0000ff; font-size: x-small;">=&#8221;form1&#8243;</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">runat</span><span style="color: #0000ff; font-size: x-small;">=&#8221;server&#8221;&gt;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">div</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">id</span><span style="color: #0000ff; font-size: x-small;">=&#8221;div1&#8243;</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">runat</span><span style="color: #0000ff; font-size: x-small;">=&#8221;server&#8221;&gt;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">asp</span><span style="color: #0000ff; font-size: x-small;">:</span><span style="color: #a31515; font-size: x-small;">GridView</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">ID</span><span style="color: #0000ff; font-size: x-small;">=&#8221;GridView1&#8243;</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">runat</span><span style="color: #0000ff; font-size: x-small;">=&#8221;server&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">onrowdatabound</span><span style="color: #0000ff; font-size: x-small;">=&#8221;GridView1_RowDataBound&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">AutoGenerateColumns</span><span style="color: #0000ff; font-size: x-small;">=&#8221;False&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">Columns</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;"> &lt;</span><span style="color: #a31515; font-size: x-small;">asp</span><span style="color: #0000ff; font-size: x-small;">:</span><span style="color: #a31515; font-size: x-small;">BoundField</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">DataField</span><span style="color: #0000ff; font-size: x-small;">=&#8221;name&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">HeaderText</span><span style="color: #0000ff; font-size: x-small;">=&#8221;Name&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">/&gt;<br />
</span><span style="color: #0000ff; font-size: x-small;"> &lt;</span><span style="color: #a31515; font-size: x-small;">asp</span><span style="color: #0000ff; font-size: x-small;">:</span><span style="color: #a31515; font-size: x-small;">BoundField</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">DataField</span><span style="color: #0000ff; font-size: x-small;">=&#8221;age&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">HeaderText</span><span style="color: #0000ff; font-size: x-small;">=&#8221;Age&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">/&gt;<br />
</span><span style="color: #0000ff; font-size: x-small;"> &lt;</span><span style="color: #a31515; font-size: x-small;">asp</span><span style="color: #0000ff; font-size: x-small;">:</span><span style="color: #a31515; font-size: x-small;">BoundField</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">DataField</span><span style="color: #0000ff; font-size: x-small;">=&#8221;title&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">HeaderText</span><span style="color: #0000ff; font-size: x-small;">=&#8221;Title&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">/&gt;<br />
</span><span style="color: #0000ff; font-size: x-small;"> &lt;</span><span style="color: #a31515; font-size: x-small;">asp</span><span style="color: #0000ff; font-size: x-small;">:</span><span style="color: #a31515; font-size: x-small;">BoundField</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">DataField</span><span style="color: #0000ff; font-size: x-small;">=&#8221;birthday&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">HeaderText</span><span style="color: #0000ff; font-size: x-small;">=&#8221;Birthday&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">/&gt;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;/</span><span style="color: #a31515; font-size: x-small;">Columns</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;/</span><span style="color: #a31515; font-size: x-small;">asp</span><span style="color: #0000ff; font-size: x-small;">:</span><span style="color: #a31515; font-size: x-small;">GridView</span><span style="color: #0000ff; font-size: x-small;">&gt;</span><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">asp</span><span style="color: #0000ff; font-size: x-small;">:</span><span style="color: #a31515; font-size: x-small;">Button</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">ID</span><span style="color: #0000ff; font-size: x-small;">=&#8221;Button1&#8243;</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">runat</span><span style="color: #0000ff; font-size: x-small;">=&#8221;server&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">Text</span><span style="color: #0000ff; font-size: x-small;">=&#8221;capture this ^&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">onclick</span><span style="color: #0000ff; font-size: x-small;">=&#8221;Button1_Click&#8221;</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">/&gt;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">br</span><span style="font-size: x-small;"> </span><span style="color: #0000ff; font-size: x-small;">/&gt;</span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">asp</span><span style="color: #0000ff; font-size: x-small;">:</span><span style="color: #a31515; font-size: x-small;">Label</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">ID</span><span style="color: #0000ff; font-size: x-small;">=&#8221;Label1&#8243;</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">runat</span><span style="color: #0000ff; font-size: x-small;">=&#8221;server&#8221;</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">Visible</span><span style="color: #0000ff; font-size: x-small;">=&#8221;False&#8221;&gt;&lt;/</span><span style="color: #a31515; font-size: x-small;">asp</span><span style="color: #0000ff; font-size: x-small;">:</span><span style="color: #a31515; font-size: x-small;">Label</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">pre</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;</span><span style="color: #a31515; font-size: x-small;">asp</span><span style="color: #0000ff; font-size: x-small;">:</span><span style="color: #a31515; font-size: x-small;">Label</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">ID</span><span style="color: #0000ff; font-size: x-small;">=&#8221;Label2&#8243;</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">runat</span><span style="color: #0000ff; font-size: x-small;">=&#8221;server&#8221;</span><span style="color: #000000; font-size: x-small;"> </span><span style="color: #ff0000; font-size: x-small;">Visible</span><span style="color: #0000ff; font-size: x-small;">=&#8221;true&#8221;&gt;&lt;/</span><span style="color: #a31515; font-size: x-small;">asp</span><span style="color: #0000ff; font-size: x-small;">:</span><span style="color: #a31515; font-size: x-small;">Label</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;/</span><span style="color: #a31515; font-size: x-small;">pre</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;/</span><span style="color: #a31515; font-size: x-small;">div</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="font-size: x-small;"> </span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;/</span><span style="color: #a31515; font-size: x-small;">form</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;/</span><span style="color: #a31515; font-size: x-small;">body</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
<p><span style="color: #0000ff; font-size: x-small;">&lt;/</span><span style="color: #a31515; font-size: x-small;">html</span><span style="color: #0000ff; font-size: x-small;">&gt;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.npathweb.com/2009/02/05/email-a-gridview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
