<?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-8246382</id><updated>2011-12-14T21:58:06.234-05:00</updated><title type='text'>dadiary</title><subtitle type='html'>This is Duray AKAR's diary...
I will share my day-to-day .net programming adventures here.
I mostly use c#, but also have ongoing projects in VB6 and VB.NET. I also deal with a variety of project types, from winforms, to ASP.NET, to sharepoint, to webservices, and to windows services. Visual Studio is my favorite tool for all.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8246382.post-114619671292932780</id><published>2006-04-27T22:53:00.000-05:00</published><updated>2006-05-03T17:07:42.830-05:00</updated><title type='text'>Sample site using the image library</title><content type='html'>I got my baby's site up... It uses the image library I posted :)&lt;br /&gt;So, even it looks quite simple, there is a high tech engine behind it. lol&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.adamelek.com"&gt;http://www.adamelek.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The site is in Turkish, but all you need to know is "&lt;a href="http://www.adamelek.com/album.aspx"&gt;Resimler&lt;/a&gt;" means "&lt;a href="http://www.adamelek.com/album.aspx"&gt;Images&lt;/a&gt;"... &lt;br /&gt;&lt;br /&gt;I got samples of grayscale images, applying borders, creating thumbnails, and creating a thumbnail from an album (inspired from Picasa)...&lt;br /&gt;&lt;br /&gt;So, all my wife has to do is upload the new month's images every month using PICASA (because it creates an XML index, which I merge to get my library file)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8246382-114619671292932780?l=dadiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/114619671292932780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8246382&amp;postID=114619671292932780&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/114619671292932780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/114619671292932780'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/2006/04/sample-site-using-image-library.html' title='Sample site using the image library'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8246382.post-114607001411108596</id><published>2006-04-26T11:41:00.000-05:00</published><updated>2006-04-26T11:46:54.110-05:00</updated><title type='text'>.net 2.0 Image Transformation Library</title><content type='html'>I have been using the most addvanced technology of all times, copy &amp; paste, for my bitmap transformations. &lt;br /&gt;&lt;br /&gt;Recently I have wrapped my functions in a Helper class, and posted it on XMLPitStop...&lt;br /&gt;&lt;br /&gt;you can download it &lt;a href="http://www.xmlpitstop.com/ArticleManagement/ResourceFileDownload.aspx?ID=69"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8246382-114607001411108596?l=dadiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.xmlpitstop.com/ArticleManagement/ResourceFileDownload.aspx?ID=69' title='.net 2.0 Image Transformation Library'/><link rel='replies' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/114607001411108596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8246382&amp;postID=114607001411108596&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/114607001411108596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/114607001411108596'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/2006/04/net-20-image-transformation-library.html' title='.net 2.0 Image Transformation Library'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8246382.post-114606966676342107</id><published>2006-04-26T11:30:00.000-05:00</published><updated>2006-04-26T11:41:06.836-05:00</updated><title type='text'>Keep up with MSDN events</title><content type='html'>The more I atend to those events, the more I want to attend the next one...&lt;br /&gt;&lt;br /&gt;Learned a lot again. &lt;br /&gt;&lt;br /&gt;There is a GREAT value in those events, if you think that you need to know what you are talking about, do not miss them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8246382-114606966676342107?l=dadiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.msdnevents.com/' title='Keep up with MSDN events'/><link rel='replies' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/114606966676342107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8246382&amp;postID=114606966676342107&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/114606966676342107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/114606966676342107'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/2006/04/keep-up-with-msdn-events.html' title='Keep up with MSDN events'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8246382.post-113259223723861974</id><published>2005-11-21T11:56:00.000-05:00</published><updated>2005-12-28T20:17:42.086-05:00</updated><title type='text'>How to bind one datagrid column multiple fields in asp.net 1.1</title><content type='html'>&lt;a href="http://www.xmlpitstop.com/ArticleManagement/DisplayArticle.aspx?ResourceID=109"&gt;Here&lt;/a&gt; is how :)&lt;br /&gt;&lt;br /&gt;Works for one or even more fields...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8246382-113259223723861974?l=dadiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/113259223723861974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8246382&amp;postID=113259223723861974&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/113259223723861974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/113259223723861974'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/2005/11/how-to-bind-one-datagrid-column.html' title='How to bind one datagrid column multiple fields in asp.net 1.1'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8246382.post-112231594743298316</id><published>2005-07-25T13:12:00.000-05:00</published><updated>2005-07-25T13:25:47.460-05:00</updated><title type='text'>How to resize images dynamically</title><content type='html'>How many times did you need to resize an image in an image editor to standardize the image sizes on your web site?&lt;br /&gt;&lt;br /&gt;How many times dod you need to create thumbnails of the images?&lt;br /&gt;&lt;br /&gt;How about adding a border ?&lt;br /&gt;&lt;br /&gt;If it is part of your daily work, smile :)&lt;br /&gt;&lt;br /&gt;Here is how you do it in ASP.NET : Copy the code below into the Load event handler in an aspx page, and set the src of your image to this aspx page with the relevant parameters...&lt;br /&gt;&lt;br /&gt;Don't forget to reference System.Drawing.Drawing2D and system.Drawing.Imaging in your code.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Copy below the line&lt;br /&gt;--------------&lt;br /&gt;public void Page_Load(object sender, System.EventArgs e){&lt;br /&gt;string myImg = Request["i"];  &lt;br /&gt;if(myImg == null  myImg == "")   {    myImg = "defaultimage.jpg";   }   &lt;br /&gt;string myBorder = Request["b"];  &lt;br /&gt;if(myBorder == null  myBorder == "")   {    myBorder = "border.gif";   }&lt;br /&gt;   Bitmap original = new Bitmap(Server.MapPath(@"~/images/" + myImg),true );  &lt;br /&gt;int mySize = original.Size.Width  ;  &lt;br /&gt;Bitmap border=new Bitmap(Server.MapPath(@"~/images/" + myBorder), true);  &lt;br /&gt;Bitmap outputbitmap = new Bitmap(mySize, mySize);&lt;br /&gt;   // using statement makes sure that the graphics object is properly disposed  &lt;br /&gt;using(Graphics g = Graphics.FromImage(outputbitmap)) &lt;br /&gt;{&lt;br /&gt;    //Make it high Quality;&lt;br /&gt;    g.CompositingQuality = CompositingQuality.HighQuality;&lt;br /&gt;    g.SmoothingMode= SmoothingMode.HighQuality;&lt;br /&gt;    g.InterpolationMode = InterpolationMode.HighQualityBicubic;&lt;br /&gt;    g.PixelOffsetMode = PixelOffsetMode.HighQuality;&lt;br /&gt;    g.DrawImage(original, new Rectangle(0,0,mySize, mySize ));&lt;br /&gt;    border.MakeTransparent(Color.Black );&lt;br /&gt;    g.DrawImage(border, new Rectangle(0,0,mySize, mySize));&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;   //' get the requested size,the example is a square&lt;br /&gt;   if(Request.QueryString["s"]!= null &amp;&amp;amp;  Request.QueryString["s"]!= "" )&lt;br /&gt;   {    mySize = int.Parse(Request.QueryString["s"]);   }&lt;br /&gt;   System.Drawing.Image outputimage =&lt;br /&gt;      outputbitmap.GetThumbnailImage( mySize, mySize, null, new IntPtr());&lt;br /&gt;   Response.Clear();&lt;br /&gt;   // set the mime type&lt;br /&gt;   Response.ContentType="image/Jpeg";&lt;br /&gt;   //' send the image to the viewer&lt;br /&gt;   outputimage.Save(Response.OutputStream, ImageFormat.Jpeg);&lt;br /&gt;}&lt;br /&gt;--------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8246382-112231594743298316?l=dadiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/112231594743298316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8246382&amp;postID=112231594743298316&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/112231594743298316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/112231594743298316'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/2005/07/how-to-resize-images-dynamically.html' title='How to resize images dynamically'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8246382.post-112229771356818944</id><published>2005-07-25T08:17:00.000-05:00</published><updated>2005-07-25T08:21:53.576-05:00</updated><title type='text'>How to create dynamic enumerations...</title><content type='html'>Don't ask WHY :)&lt;br /&gt;&lt;br /&gt;Sometimes you really want something like this...&lt;br /&gt;And sometimes people can say "you can't" on the discussion boards...&lt;br /&gt;(&lt;a href="http://www.dotnet247.com/247reference/__site/85/2004/7/7"&gt;http://www.dotnet247.com/247reference/__site/85/2004/7/7&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Keep trying until you find the "System.Reflection.Emit.EnumBuilder" class.&lt;br /&gt;&lt;br /&gt;(&lt;a href="http://msdn2.microsoft.com/library/zkb4f47s(en-us,vs.80).aspx"&gt;http://msdn2.microsoft.com/library/zkb4f47s(en-us,vs.80).aspx&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Do not get scared, it is supported from ground to top, starting with .net framework 1.0 .&lt;br /&gt;&lt;br /&gt;Cool isn't it ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8246382-112229771356818944?l=dadiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/112229771356818944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8246382&amp;postID=112229771356818944&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/112229771356818944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/112229771356818944'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/2005/07/how-to-create-dynamic-enumerations.html' title='How to create dynamic enumerations...'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8246382.post-112206938116558619</id><published>2005-07-22T09:43:00.000-05:00</published><updated>2005-07-22T16:56:21.193-05:00</updated><title type='text'>How to serialize an object to a datacolumn in a dataset</title><content type='html'>The image column is represented as byte[] in a dataset, so all you have to do is, assign and read the value of the column.&lt;br /&gt;&lt;br /&gt;I looked for an example around, but could not find exactly same thing.&lt;br /&gt;&lt;br /&gt;So I had to write it my own.&lt;br /&gt;&lt;br /&gt;If you have a similar challenge, here is the code to "leverage":&lt;br /&gt;&lt;br /&gt;public static byte[] SerializeObject(object obj)&lt;br /&gt;{&lt;br /&gt;System.Runtime.Serialization.Formatters.Binary.BinaryFormatter f = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();&lt;br /&gt;using (System.IO.MemoryStream ms = new System.IO.MemoryStream() )&lt;br /&gt;{&lt;br /&gt;f.Serialize(ms, obj);&lt;br /&gt;return ms.GetBuffer();&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;public static object DeSerializeObject(byte[] buffer)&lt;br /&gt;{&lt;br /&gt;System.Runtime.Serialization.Formatters.Binary.BinaryFormatter f = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();&lt;br /&gt;using (System.IO.MemoryStream ms = new System.IO.MemoryStream(buffer) )&lt;br /&gt;{&lt;br /&gt;return f.Deserialize(ms);&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8246382-112206938116558619?l=dadiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/112206938116558619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8246382&amp;postID=112206938116558619&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/112206938116558619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/112206938116558619'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/2005/07/how-to-serialize-object-to-datacolumn.html' title='How to serialize an object to a datacolumn in a dataset'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8246382.post-110841243676007599</id><published>2005-02-14T15:15:00.000-05:00</published><updated>2005-02-14T15:20:36.760-05:00</updated><title type='text'>How to Convert a Dataset in to a delimited text file ?</title><content type='html'>Why ?&lt;br /&gt;Because the contents of a single table, 1800 row dataset weights 2.5MB in XML format, while it weights 500KB in delimited text file...&lt;br /&gt;&lt;br /&gt;Again why ?&lt;br /&gt;Because you need to send it over an XML Web Service...&lt;br /&gt;&lt;br /&gt;Again why ?&lt;br /&gt;Bacause the SOAP proxy created with Visual Studio .NET 2003 does not support HTTP 1.1 compression...&lt;br /&gt;&lt;br /&gt;I will try to figure this out in a clean way...&lt;br /&gt;So far the best resource is &lt;a href="http://www.codebetter.com/blogs/brendan.tompkins/archive/2004/04/27/12229.aspx"&gt;brendan tompkins blog&lt;/a&gt; .&lt;br /&gt;&lt;br /&gt;But seems to be a problem with handling multiple tables.&lt;br /&gt;&lt;br /&gt;So long.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8246382-110841243676007599?l=dadiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/110841243676007599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8246382&amp;postID=110841243676007599&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/110841243676007599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/110841243676007599'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/2005/02/how-to-convert-dataset-in-to-delimited.html' title='How to Convert a Dataset in to a delimited text file ?'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8246382.post-109908294531941094</id><published>2004-10-29T15:46:00.000-05:00</published><updated>2004-10-29T15:49:05.320-05:00</updated><title type='text'>How to get a nullable DateTime Field or DataColumn?</title><content type='html'>Janusys has a Calendar Control that allows null values.&lt;br /&gt;&lt;br /&gt;But unfortunately I am using Typed Datasets and having a hell of a time to work with null DateTime Values...&lt;br /&gt;&lt;br /&gt;You can set the DateTime Field's MinOccurs Property to "", which allows you to store null values.. but then what ???&lt;br /&gt;Like how do you clear it after you assign a date to it ?&lt;br /&gt;&lt;br /&gt;Let's say you have two tables in the TypedDataset dsCustomer, Customers and Orders.&lt;br /&gt;The Built in method :&lt;br /&gt;dsCustomer.Customers.AddCustomersRow( .. , .. , .. , .. )&lt;br /&gt;is a great way to make sure you have everything in place,&lt;br /&gt;but what about the hell with the DateTime Fields ??? LastOrderDate ...&lt;br /&gt;&lt;br /&gt;By the way, one other issue for ppl that heve not faced it yet, DateTime.MinValue &lt;strong&gt;DOES NOT&lt;/strong&gt; get stored on a SQL Server. It is smaller then the allowed minimum date in SQL. So, if you try to do so, you get an exception right from the SQL server... :)&lt;br /&gt;&lt;br /&gt;So, lets say you tweaked it by giving a DateTime.MinDate during the initialization... Then how am I gonna make it null ?&lt;br /&gt;&lt;br /&gt;I will tell you when i find about it ...&lt;br /&gt;&lt;br /&gt;Duray AKAR&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8246382-109908294531941094?l=dadiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/109908294531941094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8246382&amp;postID=109908294531941094&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/109908294531941094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/109908294531941094'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/2004/10/how-to-get-nullable-datetime-field-or.html' title='How to get a nullable DateTime Field or DataColumn?'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8246382.post-109484582782254750</id><published>2004-09-10T15:46:00.000-05:00</published><updated>2004-09-10T14:50:27.823-05:00</updated><title type='text'>3 days, one zip archieve, 5 files</title><content type='html'>Spent almost 3 days on figuring out what is wrong with my fully, superficially, dynamically, amazingly in-memory created, fabulous zip archieve, which uses icsharpcode ...&lt;br /&gt;&lt;br /&gt;Review, test, change test, add , test, remove, test, duplicate, test, tweak, test, swirl, test...&lt;br /&gt;&lt;br /&gt;Result : nothing...&lt;br /&gt;&lt;br /&gt;winzip and winrar opens it... but windows compressed folder seems to hate it somehow.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8246382-109484582782254750?l=dadiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/109484582782254750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8246382&amp;postID=109484582782254750&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/109484582782254750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/109484582782254750'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/2004/09/3-days-one-zip-archieve-5-files.html' title='3 days, one zip archieve, 5 files'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8246382.post-109484551690089784</id><published>2004-09-10T15:43:00.000-05:00</published><updated>2004-09-10T14:45:16.900-05:00</updated><title type='text'>How strange is human mind</title><content type='html'>Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoatnt tihng is taht the frist and lsat ltteer be at the rghit pclae. The rset can be a total mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.&lt;br /&gt;&lt;br /&gt;Cool ins't it?&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8246382-109484551690089784?l=dadiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/109484551690089784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8246382&amp;postID=109484551690089784&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/109484551690089784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/109484551690089784'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/2004/09/how-strange-is-human-mind.html' title='How strange is human mind'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8246382.post-109464996280307391</id><published>2004-09-08T08:18:00.000-05:00</published><updated>2004-09-08T08:26:02.803-05:00</updated><title type='text'>The Diary</title><content type='html'>Time to start a blog...&lt;br /&gt;&lt;br /&gt;I did not decide weather I want to keep a tech blog, or a pleasure one yet.&lt;br /&gt;Maybe I will keep 2 blogs.&lt;br /&gt;&lt;br /&gt;Frances is still hot everywhere, and so is Ivan. That makes &lt;a href="http://www.nbc6.net"&gt;http://www.nbc6.net&lt;/a&gt; a popular site I guess. Luckily, we did not get the bad beat of Frances, just featherbands.&lt;br /&gt;&lt;br /&gt;The other day I was talking to my friends over in Turkey, and I said I am almost a natural disaster specialist now, just have a few type of disasters left... Earthquake, hurricane, and now what? I guess Armageddon is coming next.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8246382-109464996280307391?l=dadiary.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dadiary.blogspot.com/feeds/109464996280307391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8246382&amp;postID=109464996280307391&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/109464996280307391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8246382/posts/default/109464996280307391'/><link rel='alternate' type='text/html' href='http://dadiary.blogspot.com/2004/09/diary.html' title='The Diary'/><author><name>bl0gg32</name><uri>http://www.blogger.com/profile/17700012969702551321</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://4.bp.blogspot.com/_f8Xvkg-_Fjw/SuheWQNAKmI/AAAAAAAAAAM/TIbeIgXfwlo/S220/me.JPG'/></author><thr:total>0</thr:total></entry></feed>
