<?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: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-6497039610803465179</id><updated>2011-11-27T15:57:03.988-08:00</updated><category term='sample program'/><category term='c#'/><category term='sample code'/><category term='.net'/><category term='.net sql'/><category term='SQL'/><category term='Crystal Reports Deployment'/><category term='c# .net'/><title type='text'>code Tweets</title><subtitle type='html'>Small pieces of code...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-2585113222763416860</id><published>2009-08-04T04:39:00.000-07:00</published><updated>2009-08-04T04:41:23.080-07:00</updated><title type='text'>Redirect webpage to another webpage/ website</title><content type='html'>meta HTTP-EQUIV="REFRESH" content="0; url=http://www.DesTinationURL.com"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-2585113222763416860?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/2585113222763416860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=2585113222763416860' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/2585113222763416860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/2585113222763416860'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/08/redirect-webpage-to-another-webpage.html' title='Redirect webpage to another webpage/ website'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-7429282203625196816</id><published>2009-07-06T02:38:00.000-07:00</published><updated>2009-07-06T02:55:22.279-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sample program'/><category scheme='http://www.blogger.com/atom/ns#' term='sample code'/><category scheme='http://www.blogger.com/atom/ns#' term='c# .net'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='.net sql'/><title type='text'>SQL Query returning duplicate records in a database</title><content type='html'>Use GroupBy, Having clause&lt;br /&gt;&lt;br /&gt;SELECT Emp_Name, Emp_ID FROM Emp_Db GROUP BY Emp_Name, Emp_ID HAVING COUNT (*) &gt; 1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-7429282203625196816?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/7429282203625196816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=7429282203625196816' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/7429282203625196816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/7429282203625196816'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/07/sql-query-returning-duplicate-records.html' title='SQL Query returning duplicate records in a database'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-8828593975367154320</id><published>2009-06-29T03:57:00.000-07:00</published><updated>2009-06-29T04:01:39.130-07:00</updated><title type='text'>C# Read text from .doc to c# application</title><content type='html'>Read text from word file (.doc)&lt;br /&gt;&lt;br /&gt;Add referance to MicroSoft Word 11.0 object library&lt;br /&gt;&lt;br /&gt;Word.ApplicationClass wordApp = new Word.ApplicationClass();&lt;br /&gt;string filePath = "c:\\tempfile.doc";&lt;br /&gt;object file = filePath;&lt;br /&gt;object nullobj = System.Reflection.Missing.Value;&lt;br /&gt;object nosave = Word.WdSaveOptions.wdDoNotSaveChanges;&lt;br /&gt;Word.Document doc = wordApp.Documents.Open(ref file, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj);&lt;br /&gt;string m_Content = doc.Content.Text;&lt;br /&gt;doc.Close(ref nosave, ref nullobj, ref nullobj);&lt;br /&gt;wordApp.Quit(ref nosave, ref nullobj, ref nullobj);&lt;br /&gt;&lt;br /&gt;richTextBox.Text = m_Content;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-8828593975367154320?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/8828593975367154320/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=8828593975367154320' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/8828593975367154320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/8828593975367154320'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/c-read-text-from-doc-to-c-application.html' title='C# Read text from .doc to c# application'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-3508124168088714257</id><published>2009-06-27T04:09:00.000-07:00</published><updated>2009-06-27T04:11:11.106-07:00</updated><title type='text'>Compare tables with same data</title><content type='html'>SQL Query Compare data in two tables having same data&lt;br /&gt;&lt;br /&gt;(SELECT * FROM @Table1 EXCEPT SELECT * FROM @Table2) UNION (SELECT * FROM @Table2 EXCEPT SELECT * FROM @Table1)&lt;br /&gt;&lt;br /&gt;Will return unque records, if the query returned no records, the data in both table are same.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-3508124168088714257?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/3508124168088714257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=3508124168088714257' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/3508124168088714257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/3508124168088714257'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/compare-tables-with-same-data.html' title='Compare tables with same data'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-4896376977213937704</id><published>2009-06-25T00:23:00.000-07:00</published><updated>2009-06-25T00:24:15.404-07:00</updated><title type='text'>c# .net  - Delete files from local drive</title><content type='html'>try &lt;br /&gt;{ &lt;br /&gt;Microsoft.VisualBasic.FileIO.FileSystem.DeleteFile("new2"); &lt;br /&gt;}&lt;br /&gt;catch &lt;br /&gt;{ &lt;br /&gt;// file does not exist&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-4896376977213937704?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/4896376977213937704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=4896376977213937704' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/4896376977213937704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/4896376977213937704'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/c-net-delete-files-from-local-drive.html' title='c# .net  - Delete files from local drive'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-1763480410205505071</id><published>2009-06-24T06:17:00.000-07:00</published><updated>2009-06-24T06:19:40.636-07:00</updated><title type='text'>C# .net – write text into a file</title><content type='html'>// create stream writer &lt;br /&gt;StreamWriter writer = new StreamWriter("new");&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;    writer1 = new StreamWriter("C:\\Program Files\\pdf995\\res\\PDF995.ini");&lt;br /&gt;}&lt;br /&gt;catch&lt;br /&gt;{&lt;br /&gt;    file does not exist write to another file&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-1763480410205505071?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/1763480410205505071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=1763480410205505071' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/1763480410205505071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/1763480410205505071'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/c-net-write-text-into-file.html' title='C# .net – write text into a file'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-7688878294153835431</id><published>2009-06-23T06:22:00.000-07:00</published><updated>2009-06-23T06:24:15.498-07:00</updated><title type='text'>c# Word automation - simplest way to create word doc in windows application</title><content type='html'>WordAuto word = new WordAuto();&lt;br /&gt;ArrayList array = new ArrayList();&lt;br /&gt;&lt;br /&gt;array.Insert(0,Name.Text);&lt;br /&gt;array.Insert(1,Age.Text);&lt;br /&gt;array.Insert(2,Designation.Text);&lt;br /&gt;&lt;br /&gt;word.CreateFile(array);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-7688878294153835431?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/7688878294153835431/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=7688878294153835431' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/7688878294153835431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/7688878294153835431'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/c-word-automation-simplest-way-to.html' title='c# Word automation - simplest way to create word doc in windows application'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-2230693571997759813</id><published>2009-06-22T06:26:00.000-07:00</published><updated>2009-06-22T06:29:34.425-07:00</updated><title type='text'>Read word document proprties</title><content type='html'>string filePath = "c:\\docprop.doc";&lt;br /&gt;object file = filePath;&lt;br /&gt;object nullobj = System.Reflection.Missing.Value;&lt;br /&gt;Word.Document oDoc = oWord.Documents.Open(ref file, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj);&lt;br /&gt;&lt;br /&gt;oDocBuiltInProps = oDoc.BuiltInDocumentProperties;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-2230693571997759813?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/2230693571997759813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=2230693571997759813' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/2230693571997759813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/2230693571997759813'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/read-word-document-proprties.html' title='Read word document proprties'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-521395571425902450</id><published>2009-06-22T06:05:00.000-07:00</published><updated>2009-06-22T06:06:14.409-07:00</updated><title type='text'>Optical Character Recongnition</title><content type='html'>Excellent article on OCR (optical character recongnition application using artificial neural networks)&lt;br /&gt;&lt;br /&gt;http://www.codeproject.com/KB/recipes/UnicodeOCR.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-521395571425902450?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/521395571425902450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=521395571425902450' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/521395571425902450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/521395571425902450'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/optical-character-recongnition.html' title='Optical Character Recongnition'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-6022643179988491074</id><published>2009-06-22T00:30:00.000-07:00</published><updated>2009-06-22T00:34:32.233-07:00</updated><title type='text'>C# Send mail - Windows application</title><content type='html'>Outlook.Application oApp = new Outlook.Application();&lt;br /&gt;&lt;br /&gt;//Create the new message by using the simplest approach.&lt;br /&gt;Outlook.MailItem oMsg= Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);&lt;br /&gt;&lt;br /&gt;//Add a recipient&lt;br /&gt;Outlook.Recipient oRecip;&lt;br /&gt;oRecip = (Outlook.Recipient)oMsg.Recipients.Add("xyz@xyz.com");&lt;br /&gt;&lt;br /&gt;//Set the basic properties.&lt;br /&gt;oMsg.Subject = "Payment received";&lt;br /&gt;oMsg.Body = "Dear Sir, We have received payment for your order";&lt;br /&gt;&lt;br /&gt;//Send the message.&lt;br /&gt;oMsg.Save();&lt;br /&gt;oMsg.Send();&lt;br /&gt;&lt;br /&gt;//Explicitly release objects.&lt;br /&gt;oRecip = null;&lt;br /&gt;//oAttach = null;&lt;br /&gt;oMsg = null;&lt;br /&gt;oApp = null;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-6022643179988491074?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/6022643179988491074/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=6022643179988491074' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/6022643179988491074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/6022643179988491074'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/c-send-mail-windows-application.html' title='C# Send mail - Windows application'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-417618091697862105</id><published>2009-06-19T05:35:00.001-07:00</published><updated>2009-06-19T05:35:34.804-07:00</updated><title type='text'>Converting a normal IP Address to IP Long/decimal Format</title><content type='html'>public long ip2long(string ip)&lt;br /&gt;    {&lt;br /&gt;        string[] parts = ip.Split('.');&lt;br /&gt;        string strhexip = string.Format("{0:X2}{1:X2}{2:X2}{3:X2}",&lt;br /&gt;        int.Parse(parts[0]), int.Parse(parts[1]),&lt;br /&gt;        int.Parse(parts[2]), int.Parse(parts[3]));&lt;br /&gt;        return Convert.ToInt64(strhexip, 16);&lt;br /&gt;    }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-417618091697862105?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/417618091697862105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=417618091697862105' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/417618091697862105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/417618091697862105'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/converting-normal-ip-address-to-ip.html' title='Converting a normal IP Address to IP Long/decimal Format'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-2185835001314804421</id><published>2009-06-19T05:32:00.001-07:00</published><updated>2009-06-19T05:32:39.043-07:00</updated><title type='text'>Read IP address of visitor</title><content type='html'>string ip = Request.ServerVariables["REMOTE_ADDR"];&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-2185835001314804421?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/2185835001314804421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=2185835001314804421' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/2185835001314804421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/2185835001314804421'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/read-ip-address-of-visitor.html' title='Read IP address of visitor'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-6267725857977396330</id><published>2009-06-19T05:05:00.001-07:00</published><updated>2009-06-19T05:05:58.755-07:00</updated><title type='text'>Turn off cookies for one page in your site</title><content type='html'>Cookie.Discard Property which Gets or sets the discard flag set by the server&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-6267725857977396330?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/6267725857977396330/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=6267725857977396330' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/6267725857977396330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/6267725857977396330'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/turn-off-cookies-for-one-page-in-your.html' title='Turn off cookies for one page in your site'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-1720735956637945551</id><published>2009-06-18T21:44:00.001-07:00</published><updated>2009-06-18T21:44:44.317-07:00</updated><title type='text'>C# Clone an object</title><content type='html'>public static void Main(Strings[] args) &lt;br /&gt;{ &lt;br /&gt;     Point pt1=new Point(150,160); &lt;br /&gt;     Point pt2=(Point)pt1.Clone(); //This will return new new object &lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-1720735956637945551?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/1720735956637945551/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=1720735956637945551' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/1720735956637945551'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/1720735956637945551'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/c-clone-object.html' title='C# Clone an object'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-1949079361619847883</id><published>2009-06-18T02:26:00.000-07:00</published><updated>2009-06-18T02:27:46.260-07:00</updated><title type='text'>Retrieve current user desktop path</title><content type='html'>c# .Net&lt;br /&gt;&lt;br /&gt;string path = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-1949079361619847883?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/1949079361619847883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=1949079361619847883' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/1949079361619847883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/1949079361619847883'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2009/06/retrieve-current-user-desktop-path.html' title='Retrieve current user desktop path'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6497039610803465179.post-2385257141677373309</id><published>2007-02-23T22:44:00.000-08:00</published><updated>2007-02-23T22:49:14.354-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Reports Deployment'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>Deploying Crystal Reports using C# .Net 2003</title><content type='html'>Got rid of Crystal Reports deployment problem&lt;br /&gt;This one was toughf, The crystal reports deployment problem was bugging me for last 3-4 days, finally solved the problem.&lt;br /&gt;&lt;br /&gt;Few things to be rememberd while deploying crystal reports&lt;br /&gt;&lt;br /&gt;1) Merge modules required are present in C:\Program files\commom files\merge moduledirectory&lt;br /&gt;2)Following things to be added while deploying the application.1. Reports i.e. .rpt files2. CR Merge modules3. Dependancies&lt;br /&gt;3)Merge modules to be added for VS2002 and bundeled CR are1. managed.msm2. Database_Access.msm3. Database_Access_enu.msm4. RegWiz.msmWhen RegWiz.msm is added it exposes licence key property which accepts key code&lt;br /&gt; I got key codeRegistration number is 8013366187&lt;br /&gt;Key Code: Your non-expiring code is AAP50-GS00008-1DW00JAProcedure for deploying with CRDeploying a Windows Application The following procedures assume that you already have a Windows application ready for deployment.To deploy a Windows application using the merge modules:&lt;br /&gt;&lt;br /&gt;1. In VS .NET, open your Windows application and go to the View menu and select Solution Explorer. Right-click your Windows application solution and from the pop up menu, select Add then click New Project.&lt;br /&gt;&lt;br /&gt;2. The Add New Project dialog box appears. Select Setup and Deployment Projects in the left pane and select Setup Project in the right pane. Click OK.&lt;br /&gt;&lt;br /&gt;3. In the Solution Explorer, right-click the Windows application and select Add then click Project Output…&lt;br /&gt;&lt;br /&gt;4. The Add Project Output Group dialog box appears. Select Primary Output to be added to your Setup project. When the Primary Output is added to the project, some detected dependencies will be added. • If you are using the bundled version of CR 9, add: managed.msm • If you are using the full version of CR 9, exclude: dotnetfxredist_x86_enu.msm and dotnetcrystalreports.msm In both cases, the dotnetfxredist_x86_enu.msm and dotnetfxredist_x86_enu.msm dependencies should be excluded if it is not already. NOTE If you are using the full version of CR 9: The dotnetcrystalreports.msm and dotnetfxredist_x86_enu.msm should be excluded because it will conflict with components in the other merge modules. Right-click on this item in the Solution Explorer and select Exclude.&lt;br /&gt;&lt;br /&gt;5. In the Solution Explorer, right-click the WebSetup project and select Add then click Merge Module…&lt;br /&gt;&lt;br /&gt;6. The Add Modules dialog box appears. Select the appropriate merge modules (see section above titled Crystal Reports Merge Modules) and add them to your project. Click OK.NOTE If you deploy a Windows application that uses an ADO.NET Dataset, you also need to include the two additional merge modules listed in the Runtime section above.&lt;br /&gt;&lt;br /&gt;7. From your Setup project, select the licensing merge module to display the properties.&lt;br /&gt;&lt;br /&gt;8. Expand the MergeModuleProperties and enter a valid license key the in License Key Properties box. The license key is the 19-digit alphanumeric string you receive when registering Crystal Reports. Please note that this is not the 10-digit registration number. This is mandatory whenever you deploy a Crystal Reports for Visual Studio .NET application. NOTE A license key will be given to you once you have registered Crystal Reports for Visual Studio .NET. You can also find the license key by opening VS .NET and going to the Help menu and selecting About…. Under the 'Installed application list' is the license key for Crystal Reports for Visual Studio .NET.&lt;br /&gt;&lt;br /&gt;9. To build your Setup project, highlight and right-click your deployment package (setup1) in the Solution Explorer, and select Build. You are now ready to deploy your Windows application.&lt;br /&gt;&lt;br /&gt;That's all foks.......Crystal Reports provide gr8 functionality but some times thay give vary complex problems...&lt;br /&gt;You can post ur problem I will try to solve them&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6497039610803465179-2385257141677373309?l=codetweets.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://codetweets.blogspot.com/feeds/2385257141677373309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6497039610803465179&amp;postID=2385257141677373309' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/2385257141677373309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6497039610803465179/posts/default/2385257141677373309'/><link rel='alternate' type='text/html' href='http://codetweets.blogspot.com/2007/02/deploying-crystal-reports-using-c-net.html' title='Deploying Crystal Reports using C# .Net 2003'/><author><name>Amit</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/-paWXnwVFI9s/TrycgOB_kwI/AAAAAAAABp4/amDhK8H9pXY/s220/185289_2289270312039_1257392089_32760239_1879711_n.jpg'/></author><thr:total>0</thr:total></entry></feed>
