<?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>TechnoBlogy &#187; .NET</title>
	<atom:link href="http://technoblogy.net/category/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://technoblogy.net</link>
	<description>Technology with a Big difference</description>
	<lastBuildDate>Mon, 05 Dec 2011 17:29:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ViewBag &#8211; ViewData &#8211; TempData objects</title>
		<link>http://technoblogy.net/viewbag-viewdata-tempdata-objects/</link>
		<comments>http://technoblogy.net/viewbag-viewdata-tempdata-objects/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 06:09:43 +0000</pubDate>
		<dc:creator>taxi</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[Model view Controller]]></category>
		<category><![CDATA[MVC 3]]></category>
		<category><![CDATA[TempData]]></category>
		<category><![CDATA[ViewBag]]></category>
		<category><![CDATA[ViewData]]></category>

		<guid isPermaLink="false">http://technoblogy.net/?p=1601</guid>
		<description><![CDATA[All of them are properties of Controllers and Views, and all of them are used to transport very sm]]></description>
			<content:encoded><![CDATA[<p>All of them are properties of Controllers and Views, and all of them are used to transport very small amount of data between pages.</p>
<p><strong>ViewData</strong>: It is of dictionary type, used to store key/value pairs and transmit them between controllers and views.</p>
<p><strong>ViewBag</strong>: It is a wrapper built above ViewData, but it is dynamic in nature as appose to ViewData.</p>
<p><strong>TempData</strong>: It is also a dictionary type property, but it is only used between subsequent request and is very short lived</p>
<p>&nbsp;</p>
<p>While redirecting from one controller, both ViewBag and ViewData properties cannot be used, but TempData property can be used to transport data, as it works for subsequent requests.</p>
]]></content:encoded>
			<wfw:commentRss>http://technoblogy.net/viewbag-viewdata-tempdata-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import Google Contacts &#8211;  ASP.NET</title>
		<link>http://technoblogy.net/import-google-contacts-asp-net/</link>
		<comments>http://technoblogy.net/import-google-contacts-asp-net/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 07:41:04 +0000</pubDate>
		<dc:creator>taxi</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[addressbook]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[ContactsRequest]]></category>
		<category><![CDATA[dll]]></category>
		<category><![CDATA[Google contacts]]></category>
		<category><![CDATA[google data api]]></category>
		<category><![CDATA[Google.GData.Client]]></category>
		<category><![CDATA[Google.GData.Contacts]]></category>
		<category><![CDATA[Google.GData.Extensions]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[RequestSettings]]></category>

		<guid isPermaLink="false">http://technoblogy.net/?p=886</guid>
		<description><![CDATA[How can we download our google address book to some local DB, file etc? One of the coolest things google has provided for developers is the Google Data API for integration of user and google applications. And for importing google contacts, firstly we need to download Google Data API and install them to get the [...]]]></description>
			<content:encoded><![CDATA[<p>How can we download our google address book to some local DB, file etc? One of the coolest things google has provided for developers is the Google Data API for integration of user and google applications.</p>
<p>And for importing google contacts, firstly we need to download Google Data API and install them to get the required dlls. Then create a web application in Visual Studio, and add those dlls in your bin folder, or add reference of these dlls in your application.</p>
<p>Following dlls are being used for importing address book:</p>
<ul>
<li><strong>Google.GData.Client</strong></li>
<li><strong>Google.GData.Contacts</strong></li>
<li><strong>Google.GData.Extensions</strong></li>
</ul>
<p>Now place the required textboxes and button to fetch address book (Two textboxes for username and password, one listbox for address book and one button to start fetching).</p>
<p>following is the code snippet for declaring dll classes in your code behind:</p>
<blockquote><p>using Google.Contacts;</p>
<p>using Google.GData.Contacts;</p>
<p>using Google.GData.Client;</p>
<p>using Google.GData.Extensions;</p></blockquote>
<p>following code snippet is to be written behind your button’s click event:</p>
<blockquote><p>protected void btnAddressBook_Click(object sender, EventArgs e)</p>
<p>{</p>
<p>//Login Information</p>
<p>RequestSettings requestLoginInfo = new RequestSettings(&#8220;&#8221;, txtEmail.Text, txtPassword.Text);</p>
<p>rsLoginInfo.AutoPaging = true;</p>
<p>// Fetch addressbook and dislay them in ListBox</p>
<p>ContactsRequest conRequest = new ContactsRequest(requestLoginInfo);</p>
<p>Feed &lt;contact&gt; feedContacts = conRequest.GetContacts();</p>
<p>foreach (Contact addressbook in feedContacts.Entries)</p>
<p>{<br />
// Adding contact</p>
<p>lstContacts.Items.Add(addressbook.Title);</p>
<p>foreach (EMail emailId in addressbook.Emails)</p>
<p>{<br />
// Adding Emails for specific contact</p>
<p>lstContacts.Items.Add(&#8221; &#8221; + emailId.Address);</p>
<p>}</p>
<p>}</p>
<p>}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://technoblogy.net/import-google-contacts-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cloud Computing &#8211; ASP.NET</title>
		<link>http://technoblogy.net/cloud-computing-asp-net/</link>
		<comments>http://technoblogy.net/cloud-computing-asp-net/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 05:23:09 +0000</pubDate>
		<dc:creator>Nauman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[.net 4.0]]></category>
		<category><![CDATA[advantages]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[cons]]></category>
		<category><![CDATA[disadvantages]]></category>
		<category><![CDATA[hardware independence]]></category>
		<category><![CDATA[pros]]></category>

		<guid isPermaLink="false">http://technoblogy.net/?p=883</guid>
		<description><![CDATA[Following are some of pros and cons for Cloud Computing Architecture for ASP.NET: Advantages: Cost cutting More storage for Data. Mobilitiy of Data Easy Disaster Recovery Disadvantages Implementation of session Implementation of authentication Migration of existing application]]></description>
			<content:encoded><![CDATA[<p>Following are some of pros and cons for Cloud Computing Architecture for ASP.NET:</p>
<p><strong>Advantages:</strong></p>
<ul>
<li>Cost cutting</li>
<li>More storage for Data.</li>
<li>Mobilitiy of Data</li>
<li>Easy Disaster Recovery</li>
</ul>
<p><strong>Disadvantages</strong></p>
<ul>
<li>Implementation of session</li>
<li>Implementation of authentication</li>
<li>Migration of existing application</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://technoblogy.net/cloud-computing-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple Web.Config in Visual Studio 2010</title>
		<link>http://technoblogy.net/multiple-web-config-in-visual-studio-2010/</link>
		<comments>http://technoblogy.net/multiple-web-config-in-visual-studio-2010/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 15:23:31 +0000</pubDate>
		<dc:creator>Nauman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[configuration management]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[vs 2010]]></category>
		<category><![CDATA[web applications]]></category>
		<category><![CDATA[web.config]]></category>

		<guid isPermaLink="false">http://technoblogy.net/multiple-web-config-in-visual-studio-2010/</guid>
		<description><![CDATA[Previously it was a very difficult job to have configuration files for different application environments, like having config files for devel]]></description>
			<content:encoded><![CDATA[<p>Previously it was a very difficult job to have configuration files for different application environments, like having config files for development and production environments. One had to manually change/copy/check config files for any deployment on any environment. This problem has been solved in a new feature that has been added to visual Studio 2010.</p>
<p>Mostly environment specific config files have different connection strings for development/production environments so when deploying you had to make sure you are applying the correct configuration file.</p>
<p>This problem is solved by visual studio 2010 that allows to build configuration specific config files. In VS 2010, whenever you create a new web application project now, you&#8217;ll see that your web.config in your solution explorer actually appears as an expandable node. When you expand it, you will see multiple configuration files for each of your build configurations, that can hold different values for each configuration.</p>
<p><a href="http://technoblogy.net/wp-content/uploads/2010/12/Config.jpg"><img style="background-image: none; padding-left: 0px; width: 295px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="Config" src="http://technoblogy.net/wp-content/uploads/2010/12/Config_thumb.jpg" border="0" alt="Config" width="295" height="258" /></a></p>
<p>Now when you build your application in a specific build configuration, the correct web.config settings get applied. Similarly when you publish, the correct web.config settings get published.</p>
]]></content:encoded>
			<wfw:commentRss>http://technoblogy.net/multiple-web-config-in-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrieving domain information through ASP.NET</title>
		<link>http://technoblogy.net/retrieving-domain-information-through-asp-net/</link>
		<comments>http://technoblogy.net/retrieving-domain-information-through-asp-net/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 12:01:45 +0000</pubDate>
		<dc:creator>Nauman</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[fetching]]></category>
		<category><![CDATA[information]]></category>

		<guid isPermaLink="false">http://technoblogy.net/retrieving-domain-information-through-asp-net/</guid>
		<description><![CDATA[There are many&#160; domain checking websites available that gives all the information regarding domains. WhoIs is one of them. Following is a sample asp.net code that connects to one of WhoIs servers and retrieve information of a specific website. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Net.Sockets; using System.IO; [...]]]></description>
			<content:encoded><![CDATA[<p>There are many&#160; domain checking websites available that gives all the information regarding domains. WhoIs is one of them. Following is a sample asp.net code that connects to one of WhoIs servers and retrieve information of a specific website.</p>
<blockquote><p>using System;      <br />using System.Collections.Generic;       <br />using System.Linq;       <br />using System.Web;       <br />using System.Web.UI;       <br />using System.Web.UI.WebControls;       <br />using System.Net.Sockets;       <br />using System.IO;       <br />using System.Text;       <br />using System.Text.RegularExpressions;       <br />public partial class _Default : System.Web.UI.Page       <br />{       <br />&#160;&#160;&#160; protected void Page_Load(object sender, EventArgs e)       <br />&#160;&#160;&#160; {       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; string domainname = Request.QueryString[&quot;domain&quot;].ToString();       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; TcpClient objTCPC = new TcpClient();       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; objTCPC.Connect(&quot;whois.enom.com&quot;, 43);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; string strDomain = domainname;// +&quot;\\r\\n&quot;;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; byte[] arrDomain = Encoding.ASCII.GetBytes(strDomain);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Stream objStream = objTCPC.GetStream();       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; objStream.Write(arrDomain, 0, strDomain.Length);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; StreamReader objSr = new StreamReader(objTCPC.GetStream(),Encoding.ASCII);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; string strServerResponse = objSr.ReadToEnd();       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; strServerResponse = Regex.Replace(strServerResponse, &quot;\n&quot;, &quot;&lt;br&gt;&quot;);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Response.Write(strServerResponse);       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; objTCPC.Close();       <br />&#160;&#160;&#160; }       <br />}</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://technoblogy.net/retrieving-domain-information-through-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add meta data dynamically</title>
		<link>http://technoblogy.net/add-meta-data-dynamically/</link>
		<comments>http://technoblogy.net/add-meta-data-dynamically/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 11:27:17 +0000</pubDate>
		<dc:creator>Nauman</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[dynamically]]></category>
		<category><![CDATA[meta data]]></category>

		<guid isPermaLink="false">http://technoblogy.net/?p=348</guid>
		<description><![CDATA[Add meta-data dynamically to your page by adding a HtmlMeta control to your Header. In this example I dynamically add a keyword string to the page. string keyWords = &#8220;metatags, html, dynamic, generate&#8221;; HtmlMeta keywords = new HtmlMeta(); keywords.Name = &#8220;keywords&#8221;; keywords.Content = keyWords; Page.Header.Controls.Add(keywords);]]></description>
			<content:encoded><![CDATA[<p>Add meta-data dynamically to your page by adding a HtmlMeta control to your Header. In this example I dynamically add a keyword string to the page.</p>
<blockquote><p>string keyWords = &#8220;metatags, html, dynamic, generate&#8221;;</p>
<p>HtmlMeta keywords = new HtmlMeta();</p>
<p>keywords.Name = &#8220;keywords&#8221;;</p>
<p>keywords.Content = keyWords;</p>
<p>Page.Header.Controls.Add(keywords);</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://technoblogy.net/add-meta-data-dynamically/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Date Time string formatting in ASP.NET</title>
		<link>http://technoblogy.net/date-time-string-formatting-in-asp-net/</link>
		<comments>http://technoblogy.net/date-time-string-formatting-in-asp-net/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 11:15:15 +0000</pubDate>
		<dc:creator>Nauman</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[DateTime]]></category>
		<category><![CDATA[patterns]]></category>
		<category><![CDATA[string formatting]]></category>

		<guid isPermaLink="false">http://technoblogy.net/date-time-string-formatting-in-asp-net/</guid>
		<description><![CDATA[With the following code you can format a DateTime within a Databind. &#60;%# DateTime.Parse(Eval(&#34;DateModified&#34;).ToString()).ToString(&#34;MM-dd-yyyy&#34;)%&#62; Some more format specifiers that can change format of datetime objects the way it is required. Format specifier Name d Short date pattern D Long date pattern t Short time pattern T Long time pattern f Full date/time pattern ( short [...]]]></description>
			<content:encoded><![CDATA[<p>With the following code you can format a DateTime within a Databind.</p>
<blockquote><p>&lt;%# DateTime.Parse(Eval(&quot;DateModified&quot;).ToString()).ToString(&quot;MM-dd-yyyy&quot;)%&gt; </p>
</blockquote>
<p>Some more format specifiers that can change format of datetime objects the way it is required.</p>
<table class="data" cellspacing="1" width="50%" align="left">
<colgroup>
<col width="20%" />
<col width="25%" /></colgroup>
<tbody>
<tr>
<th>Format specifier</th>
<th>Name</th>
</tr>
<tr>
<td>d</td>
<td>Short date pattern</td>
</tr>
<tr>
<td>D</td>
<td>Long date pattern</td>
</tr>
<tr>
<td>t</td>
<td>Short time pattern</td>
</tr>
<tr>
<td>T</td>
<td>Long time pattern</td>
</tr>
<tr>
<td>f</td>
<td>Full date/time pattern ( short time )</td>
</tr>
<tr>
<td>F</td>
<td>Full date/time pattern ( long time )</td>
</tr>
<tr>
<td>g</td>
<td>General date/time pattern ( short time )</td>
</tr>
<tr>
<td>G</td>
<td>General date/time pattern ( long time )</td>
</tr>
<tr>
<td>M or m</td>
<td>Month day pattern</td>
</tr>
<tr>
<td>R or r</td>
<td>RFC1123 pattern</td>
</tr>
<tr>
<td>s</td>
<td>Sortable date/time pattern; conforms to ISO 8601</td>
</tr>
<tr>
<td>u</td>
<td>Universal sortable date/time pattern</td>
</tr>
<tr>
<td>U</td>
<td>Universal sortable date/time pattern</td>
</tr>
<tr>
<td>Y or y</td>
<td>Year month pattern</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://technoblogy.net/date-time-string-formatting-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SqlBulkCopy &#8211; Bulk Insertion in SQL Server from .NET</title>
		<link>http://technoblogy.net/sqlbulkcopy-bulk-insertion-in-sql-server-from-net/</link>
		<comments>http://technoblogy.net/sqlbulkcopy-bulk-insertion-in-sql-server-from-net/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 13:27:06 +0000</pubDate>
		<dc:creator>Nauman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[bulk]]></category>
		<category><![CDATA[insertion]]></category>
		<category><![CDATA[sqlbulkcopy]]></category>

		<guid isPermaLink="false">http://technoblogy.net/sqlbulkcopy-bulk-insertion-in-sql-server-from-net/</guid>
		<description><![CDATA[Many a times there come a scenario when you have to insert large number of records in sql server. There are number of ways to implement this scenario: through looping techniques to call insert statements for one record at a time. Serialize the data in CSV or XML format and send them as a parameter [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://technoblogy.net/wp-content/uploads/2010/08/SQL-Server.png"></a><a href="http://technoblogy.net/wp-content/uploads/2010/08/VS2010Logo.png"></a>Many a times there come a scenario when you have to insert large number of records in sql server. There are number of ways to implement this scenario:</p>
<ul>
<li>through looping techniques to call insert statements for one record at a time.</li>
<li>Serialize the data in CSV or XML format and send them as a parameter to a stored procedure and then through parsing execute insertion statements.</li>
<li>generate a file and load them through a SSIS package.</li>
<li>Use SqlBulkCopy.</li>
</ul>
<p>SqlBulkCopy is way faster than multiple insert statements, serializing/ deserializing the data, or saving the data out to a file system and running an import.  Its also has no limit on the data you can send across and very efficient in the way it handles inserts.</p>
<p>This is how simple it is to use it. In the example we have a function that writes copies are DataTable into a MS SQL database table called “tblInsertion”.</p>
<blockquote><p>using System.Data.SqlClient;<br />
…</p>
<p>Function WriteToDB(DataTable dt)</p>
<p>{</p>
<blockquote><p>SqlBulkCopy sqlBC = new SqlBulkCopy(dbconnectionstring);</p>
<p>sqlBC.BatchSize = 25000;</p>
<p>sqlBC.BulkCopyTimeout = 60;</p>
<p>sqlBC.DestinationTableName = “dbo.tblFooBar” ;</p>
<p>sqlBC.WriteToServer(dt);</p></blockquote>
<p>}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://technoblogy.net/sqlbulkcopy-bulk-insertion-in-sql-server-from-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crystal report tutorial &#8211; VS 2005</title>
		<link>http://technoblogy.net/crystal-report-tutorial-vs-2005/</link>
		<comments>http://technoblogy.net/crystal-report-tutorial-vs-2005/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 09:20:48 +0000</pubDate>
		<dc:creator>Nauman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[vs 2005]]></category>

		<guid isPermaLink="false">http://technoblogy.net/?p=130</guid>
		<description><![CDATA[A very good book on using Crystal reports in Visual Studio 2005. many small and minute things are discussed in this book. VS2005 Walkthroughs Crystal Reports]]></description>
			<content:encoded><![CDATA[<p>A very good book on using Crystal reports in Visual Studio 2005. many small and minute things are discussed in this book.</p>
<p><a href="http://technoblogy.net/wp-content/uploads/2009/11/VS2005_Walkthroughs_CrystalReports.pdf">VS2005 Walkthroughs Crystal Reports</a></p>
]]></content:encoded>
			<wfw:commentRss>http://technoblogy.net/crystal-report-tutorial-vs-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy way to Export dataset in Excel</title>
		<link>http://technoblogy.net/easy-way-to-export-dataset-in-excel/</link>
		<comments>http://technoblogy.net/easy-way-to-export-dataset-in-excel/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 07:44:03 +0000</pubDate>
		<dc:creator>Nauman</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[dataset]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[exporting]]></category>
		<category><![CDATA[fast]]></category>
		<category><![CDATA[response]]></category>
		<category><![CDATA[write]]></category>

		<guid isPermaLink="false">http://technoblogy.net/easy-way-to-export-dataset-in-excel/</guid>
		<description><![CDATA[Fastest way to export dataset in excel format is: DataSet dsExport = new DataSet(); System.IO.StringWriter tw = new System.IO.StringWriter(); HTMLTextWriter hw = new HTMLTextWriter(tw); DataGrid dg = new DataGrid(); dg.DataSource = &#34;Dataset to be exported&#34; hw.WriteLine (&#34;&#60;b&#62;&#60;font size=&#8217;3&#8242;&#62;Exported report&#60;/font&#62;&#60;/b&#62;&#34;); dg.DataBind(); Response.ContentType = &#34;application/vnd.ms-excel&#34;; EnableViewState = false; Response.Write(tw.ToString()); Response.End();]]></description>
			<content:encoded><![CDATA[<p>Fastest way to export dataset in excel format is:</p>
<blockquote><blockquote>
<p>DataSet dsExport = new DataSet();</p>
<p>System.IO.StringWriter tw = new System.IO.StringWriter();</p>
<p>HTMLTextWriter hw = new HTMLTextWriter(tw);</p>
<p>DataGrid dg = new DataGrid();</p>
<p>dg.DataSource = &quot;Dataset to be exported&quot;</p>
<p>hw.WriteLine (&quot;&lt;b&gt;&lt;font size=&#8217;3&#8242;&gt;Exported report&lt;/font&gt;&lt;/b&gt;&quot;);</p>
<p>dg.DataBind();</p>
<p>Response.ContentType = &quot;application/vnd.ms-excel&quot;;</p>
<p>EnableViewState = false;</p>
<p>Response.Write(tw.ToString());</p>
<p>Response.End();</p>
</blockquote>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://technoblogy.net/easy-way-to-export-dataset-in-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

