<?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-4913927133266758263</id><updated>2012-01-26T17:42:21.411-08:00</updated><category term='membership'/><category term='css'/><title type='text'>Ordina Stage 07</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-631526938253665478</id><published>2007-07-17T01:04:00.001-07:00</published><updated>2007-10-20T02:04:41.269-07:00</updated><title type='text'>Internship over!</title><content type='html'>Since our internship is all over (16/20 :-)), it's time to set sail for new things. Please visit my new blog here!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dominiek.eu/blog"&gt;http://www.dominiek.eu/blog&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;njoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-631526938253665478?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/631526938253665478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=631526938253665478&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/631526938253665478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/631526938253665478'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/07/internship-over.html' title='Internship over!'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-1197222986843850491</id><published>2007-05-02T06:12:00.000-07:00</published><updated>2007-05-03T00:46:23.846-07:00</updated><title type='text'>ASP.Net Membership ReturnUrl Problem</title><content type='html'>If you click the Login link on the main page, ASP.Net will auto create a ReturnUrl Querystring. After you logged in succesfully you will be redirected to the page you came from. The problem is that the DestinationPageUrl property won't work anymore if you have a ReturnUrl Querystring. This causes a problem for us because the user will be redirected to the login page instead of the DestinationPageUrl.&lt;br /&gt;&lt;br /&gt;We've searched for solutions but there isn't a clean solution. Here's a way to solve the problem (redirect to the Default page if a ReturnUrl querystring is present).&lt;br /&gt;&lt;br /&gt;    protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        string strRedirect;&lt;br /&gt;        strRedirect = Request["ReturnUrl"];&lt;br /&gt;        if (strRedirect != null)&lt;br /&gt;            Response.Redirect("~/Default.aspx", true);&lt;br /&gt;    }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-1197222986843850491?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/1197222986843850491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=1197222986843850491&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/1197222986843850491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/1197222986843850491'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/05/aspnet-membership-returnurl-problem.html' title='ASP.Net Membership ReturnUrl Problem'/><author><name>Jonas Van der Biest</name><uri>http://www.blogger.com/profile/03030757832942406468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-8297748303493735884</id><published>2007-04-19T05:32:00.000-07:00</published><updated>2008-12-09T02:05:48.893-08:00</updated><title type='text'>Trick for adding a default image to a Windows Media Player video</title><content type='html'>&lt;div align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_M4oRAHGlJaE/Rido2J4EunI/AAAAAAAAAAM/m5bXNCAzIcw/s1600-h/default.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://2.bp.blogspot.com/_M4oRAHGlJaE/Rido2J4EunI/AAAAAAAAAAM/m5bXNCAzIcw/s320/default.png" alt="" id="BLOGGER_PHOTO_ID_5055124386320005746" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;When you're surfing the net you see a lot of videos with a default image before it's playing. An embedded HTML video that uses Windows Media Player doesn't have that option. We found a little trick to make it look like there is a default image before it's playing and after it's finished. You can easily implement these function in a javascript in the head of your page.&lt;br /&gt;&lt;br /&gt;Steps:&lt;br /&gt;1. When loading the video, you hide the video and you show a default image. Hiding the video is possible by setting the default property document.video.uiMode = 'invisible'&lt;br /&gt;2. Set the uiMode property to 'none' when the video starts playing (check on playing with the property: currentPosition (!= 0)).&lt;br /&gt;3. The image will pop up again after playing because the currentPosition will be zero again.&lt;br /&gt;&lt;br /&gt;that's it, add a cool background image like ours :p&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-8297748303493735884?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/8297748303493735884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=8297748303493735884&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/8297748303493735884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/8297748303493735884'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/04/trick-for-adding-default-image-to.html' title='Trick for adding a default image to a Windows Media Player video'/><author><name>Jonas Van der Biest</name><uri>http://www.blogger.com/profile/03030757832942406468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_M4oRAHGlJaE/Rido2J4EunI/AAAAAAAAAAM/m5bXNCAzIcw/s72-c/default.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-1053166703472737279</id><published>2007-04-02T06:56:00.000-07:00</published><updated>2007-04-02T07:04:38.935-07:00</updated><title type='text'>Sorting once, sorting twice...</title><content type='html'>We came across a situation in which we had to sort a table (limited by a WHERE clause) and order this again by another column. We thought this was easy to do using a subselect but SQL Server refuses to sort views. After some experimenting we came up with the following query:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;SELECT * FROM &lt;br /&gt; (&lt;br /&gt; SELECT TOP 5 topicKnowledgeID, topicID, rating, tblTopicKnowledge.date, username &lt;br /&gt; FROM dbo.tblTopicKnowledge &lt;br /&gt; WHERE (topicID = @topicID AND username = @username)&lt;br /&gt;    ORDER BY topicKnowledgeID DESC&lt;br /&gt;    ) AS sortedTopicKnowledgeTable &lt;br /&gt;ORDER BY topicKnowledgeID ASC&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Great succes!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-1053166703472737279?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/1053166703472737279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=1053166703472737279&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/1053166703472737279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/1053166703472737279'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/04/sorting-once-sorting-twice.html' title='Sorting once, sorting twice...'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-3856130771110044841</id><published>2007-04-01T01:27:00.000-07:00</published><updated>2008-12-09T02:05:48.982-08:00</updated><title type='text'>Using System.Reflection</title><content type='html'>Ever since I read a great article about using the builtin reflection API in C#, I wanted to use it in a real life situation. The idea is that at runtime, you can list classes, get info about their methods, attributes, super class, ... and even make instances of them using the Activator class.&lt;br /&gt;&lt;br /&gt;For our import application, which will load data from an Excel spreasheet to an SQL Server 2005 database, we wanted to give the user a scala of ways in which the console application could notify the user. We came up with the following diagram...&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_XoKpStC2fWU/Rg9wViBJ7hI/AAAAAAAAABg/jaVB8pcCwxo/s1600-h/formatting.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_XoKpStC2fWU/Rg9wViBJ7hI/AAAAAAAAABg/jaVB8pcCwxo/s400/formatting.JPG" alt="" id="BLOGGER_PHOTO_ID_5048377222516829714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Open methods will be fired first, in the console output class they won't do much but they could be responsible for initializing a stream, connecting to the mailserver...&lt;br /&gt;The Format method is passed an OutputItem object, which contains message data and a category (error/success/default)...&lt;br /&gt;The Close method would close streams, send a mail with all the notifications, contact a webservice...&lt;br /&gt;&lt;br /&gt;Now at runtime, we will use reflection to detect all classes which implement the IOutputFormatter abstract class and they will be instantiated by our FormatterReflectionManager class. By default this class will enable all formatters and stack them up in a generic list, but the user can choose which Formatters should be used. The idea is similar to the Enterprise Library, we didn't use the EntLib because it's a really big library and we didn't want to bring in extra dependencies. Another reason why we didn't use EntLib is because we already use it in another project and because we wanted to experiment with System.Reflection...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        public void ReflectOutputFormatters()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            foreach (Type type in Assembly.GetCallingAssembly().GetTypes())&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;                if (type.IsSubclassOf(typeof(IOutputFormatter)))&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;                    _formatters.Add((IOutputFormatter)Activator.CreateInstance(type));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;            }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;This chunck of code will look for all classes the extend the superclass and add them to a Generic List.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-3856130771110044841?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/3856130771110044841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=3856130771110044841&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/3856130771110044841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/3856130771110044841'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/04/using-systemreflection.html' title='Using System.Reflection'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_XoKpStC2fWU/Rg9wViBJ7hI/AAAAAAAAABg/jaVB8pcCwxo/s72-c/formatting.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-4021379319808267324</id><published>2007-03-29T08:04:00.000-07:00</published><updated>2007-03-29T08:47:59.069-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='membership'/><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title type='text'>ASP.Net Membership: IsLockedOut property</title><content type='html'>Hello bloggers!&lt;br /&gt;&lt;br /&gt;Today we looked up some info about the ' IsLockedOut ' property of the ASP.Net Membership Control. If a user enters a wrong password more than three times in a row, IsLockedOut will be true. The problem is that a user can't login anymore until an administrator unlock his account.&lt;br /&gt;&lt;br /&gt;Password crackers can brute force user accounts. So it can happen you can't login because someone else tried to crack your account with several invalid passwords. To solve this problem, we can just raise the number of maximum invalid attempts.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Well, for those who agree with our statement here are 2 ways to disable it.&lt;br /&gt;&lt;br /&gt;Simple Way (and still effective):&lt;br /&gt;Just add the &lt;span style="font-weight: bold;"&gt;maxInvalidPasswordAttempts&lt;/span&gt; property to your web.config file:&lt;br /&gt;example:&lt;br /&gt;&lt;textarea rows="6" name="html" cols="50"&gt;&lt;system.web&gt;&lt;membership defaultProvider="yourProvider"&gt;&lt;providers&gt;&lt;add connectionStringName="yourConnectionString" name="yourProvider" maxInvalidPasswordAttempts="10"/&gt;&lt;/providers&gt;&lt;/membership&gt;&lt;/system.web&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;Remember, the counter resets when a successful attempt is logged.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Advanced Way (it auto-unlocks your account if you reached the maximum invalid attempts):&lt;br /&gt;&lt;a href="http://www.codeguru.com/csharp/sample_chapter/article.php/c12747/" target="_blank"&gt;Click Here to go to the CodeGuru Tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Changing CSS Styles at runtime&lt;/span&gt;&lt;br /&gt;Oh yeah, another quick tip, if you change the css style of a webpage in Visual Studio, you need to Clear your cache before reloading the page. You can do this using &lt;span style="font-weight: bold;"&gt;CTRL-F5&lt;/span&gt; instead of the normal refresh (F5)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-4021379319808267324?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/4021379319808267324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=4021379319808267324&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/4021379319808267324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/4021379319808267324'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/03/aspnet-membership-islockedout-property.html' title='ASP.Net Membership: IsLockedOut property'/><author><name>Jonas Van der Biest</name><uri>http://www.blogger.com/profile/03030757832942406468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-5474502852409707502</id><published>2007-03-23T12:33:00.000-07:00</published><updated>2007-03-23T12:48:14.931-07:00</updated><title type='text'>MSSQL Handling NULL Values</title><content type='html'>One of the most horrific problems in database-access are fields which allow Null-values, I remember all the IF statements it took in COBOL to handle this problem (with a CSV file) and I was afraid I had to go through the same hell as back then. By making use of the ISNULL method  we were able to remove the evil at it's root, the database...&lt;br /&gt;&lt;br /&gt;An example : &lt;br /&gt;&lt;br /&gt;SELECT username, ISNULL(email,"") FROM tblUser&lt;br /&gt;&lt;br /&gt;This query will set the emailadres to an empty string instead of a null value if no value is entered.&lt;br /&gt;Since the abilities to handle Null values with Typed Datasets are rather limited, this was a fine solution..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-5474502852409707502?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/5474502852409707502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=5474502852409707502&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/5474502852409707502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/5474502852409707502'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/03/mssql-handling-null-values.html' title='MSSQL Handling NULL Values'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-6103164296146448357</id><published>2007-03-22T07:00:00.000-07:00</published><updated>2008-12-09T02:05:49.264-08:00</updated><title type='text'>Visual Studio makes your properties!</title><content type='html'>This is something I already know for a while but it's a very handy features which the Visual Studio developers have made quite hard to find. When your declaring your business logic / domain classes, this feature will surely be handy. When you want to encapsulate a private/protected field (the good OO way...), you'll probably make accessors for it. Writing all of these getters &amp; setters is a lot of work if you've got around 10 attributes you want to cover.&lt;br /&gt;&lt;br /&gt;Here's the trick, just right click the field you want to encapsulate&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_XoKpStC2fWU/RgKNmKJnpwI/AAAAAAAAABQ/XEo9CxdZ_Hg/s1600-h/encapsulate.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_XoKpStC2fWU/RgKNmKJnpwI/AAAAAAAAABQ/XEo9CxdZ_Hg/s400/encapsulate.JPG" alt="" id="BLOGGER_PHOTO_ID_5044750219307624194" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;And Visual Studio will create the property methods:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_XoKpStC2fWU/RgKNzqJnpxI/AAAAAAAAABY/zXh-F5viiwY/s1600-h/encapsulate_done.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_XoKpStC2fWU/RgKNzqJnpxI/AAAAAAAAABY/zXh-F5viiwY/s400/encapsulate_done.JPG" alt="" id="BLOGGER_PHOTO_ID_5044750451235858194" border="0" /&gt;&lt;/a&gt;Everybody who has coded with Visual Studio before is probably aware of this tip but for new coders, this is a real timesaver!&lt;br /&gt;&lt;br /&gt;The other refactoring options are also extremely handy for code optimization. The Extract Method options is also one of the features I use quite frequent...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-6103164296146448357?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/6103164296146448357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=6103164296146448357&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/6103164296146448357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/6103164296146448357'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/03/visual-studio-makes-your-properties.html' title='Visual Studio makes your properties!'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_XoKpStC2fWU/RgKNmKJnpwI/AAAAAAAAABQ/XEo9CxdZ_Hg/s72-c/encapsulate.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-2954903280986196106</id><published>2007-03-21T07:53:00.000-07:00</published><updated>2008-12-09T02:05:49.436-08:00</updated><title type='text'>Using XML Serialization</title><content type='html'>While finishing our Interactive Course project, we decided we had to do something about the rather oldschool way we parsed our XML files. The code to parse an XML file was divided into two classes, a parser and a schema validator, totalling for some 150 lines of code. Luckily Kurt (who is guiding our internship) let us in on the whole &lt;span style="font-weight: bold;"&gt;XmlSerialization &lt;/span&gt;thingie...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_XoKpStC2fWU/RgFMbKJnpvI/AAAAAAAAABI/0EEszejioJE/s1600-h/xsdtool.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 505px; height: 54px;" src="http://3.bp.blogspot.com/_XoKpStC2fWU/RgFMbKJnpvI/AAAAAAAAABI/0EEszejioJE/s400/xsdtool.JPG" alt="" id="BLOGGER_PHOTO_ID_5044397087096547058" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Click for a larger view...&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;Using the &lt;span style="font-weight: bold;"&gt;xsd.exe&lt;/span&gt; program, which can be easily found in the Visual Studio directory, we made an XSD scheme for our xml file. After the XSD was created by the program, we fed the program the XSD and a serializable class is created for our XML file. After we had imported this class file into our solution, the code to load the course from an  XML file looked like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;XmlSerializer xs = new XmlSerializer(typeof(Course));&lt;/span&gt; &lt;span style="font-style: italic;"&gt;FileStream fstrm = new FileInfo(fileName).OpenRead();&lt;/span&gt; &lt;span style="font-style: italic;"&gt;return (Course)xs.Deserialize(fstrm);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;These 3 lines replace the 150+ lines we coded to parse and validate the XML file, if only we would have known ;-) Luckily, now you do! So don't go using the good old (even deprecated) XmlReader class, serialization is the next best thing!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-2954903280986196106?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/2954903280986196106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=2954903280986196106&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/2954903280986196106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/2954903280986196106'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/03/using-xml-serialization.html' title='Using XML Serialization'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_XoKpStC2fWU/RgFMbKJnpvI/AAAAAAAAABI/0EEszejioJE/s72-c/xsdtool.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-1877509450941048472</id><published>2007-03-19T05:29:00.000-07:00</published><updated>2007-03-19T05:34:43.325-07:00</updated><title type='text'>ASP.NET Roles &amp; Membership</title><content type='html'>We spent the morning trying to figure out how we could migrate the ASP.NET membership database (which is a SQLExpress DB) to SQL Server 2005. &lt;a href="http://aspnet.4guysfromrolla.com/articles/040506-1.aspx" target="_blank"&gt;This great article&lt;/a&gt; gave us more than enough info to do this, although we ran into some problems along the way. Nevertheless we got things up and running again...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-1877509450941048472?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/1877509450941048472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=1877509450941048472&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/1877509450941048472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/1877509450941048472'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/03/aspnet-roles-membership.html' title='ASP.NET Roles &amp; Membership'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-6106452752439393734</id><published>2007-03-16T04:58:00.000-07:00</published><updated>2008-12-09T02:05:49.734-08:00</updated><title type='text'>Interactive Course player!</title><content type='html'>Good news today, we've finished developing a small additional project. It's an ASP.NET Ajax powered website that will enable the competence leaders to post online video courses on the net for the consultants, here's a list of features:&lt;br /&gt;&lt;br /&gt;- Completely XML customizable&lt;br /&gt;- Customizable themes&lt;br /&gt;- Animated Text while the video is playing (like subtitles...)&lt;br /&gt;- Nice &amp; simple Ajax GUI!&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_XoKpStC2fWU/RfqhKOLWfOI/AAAAAAAAAAU/0HGk8OtUS18/s1600-h/InteractiveCourse.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_XoKpStC2fWU/RfqhKOLWfOI/AAAAAAAAAAU/0HGk8OtUS18/s320/InteractiveCourse.jpg" alt="" id="BLOGGER_PHOTO_ID_5042519929771162850" border="1" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I have to say I'm pretty exicted about the result, I like it alot :D&lt;br /&gt;&lt;br /&gt;I have to say we've had a bit of trouble updating the playtime of the video with the text, the final solution is a mixture of iframe,ajax,javascript and a good old Session variable. The text also fades out and in when it changes, cool :) For anyone who's interested, we based our mediaplayer code on &lt;a href="http://steveorr.net/articles/StreamingMedia.aspx"&gt;this article&lt;/a&gt;, we had to recompile the DLL and make some code modifications first to optimize things. There was also an error in the code so that the height of the videoplayer wasn't set, luckily we managed to fix this to!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-6106452752439393734?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/6106452752439393734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=6106452752439393734&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/6106452752439393734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/6106452752439393734'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/03/interactive-course-player-almost-done.html' title='Interactive Course player!'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_XoKpStC2fWU/RfqhKOLWfOI/AAAAAAAAAAU/0HGk8OtUS18/s72-c/InteractiveCourse.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-5249712738446193056</id><published>2007-03-16T03:50:00.000-07:00</published><updated>2007-03-16T03:55:27.072-07:00</updated><title type='text'>ASP.NET Panel Control problem</title><content type='html'>Took us just a few Google lookups, but we've had some problems with the Panel control in the standard ASP.NET toolbox. The panels were drawn over the other content of our site. The solution: simply remove the height attribute of the panel... Guess solutions don't have to be that hard al of the time...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-5249712738446193056?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/5249712738446193056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=5249712738446193056&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/5249712738446193056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/5249712738446193056'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/03/aspnet-panel-control-problem.html' title='ASP.NET Panel Control problem'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-6929221624386740112</id><published>2007-03-16T01:06:00.000-07:00</published><updated>2007-03-16T04:54:38.546-07:00</updated><title type='text'>Some technical info on our project</title><content type='html'>The project will be built using a service-oriented architecture. The methods we'll be using are:&lt;br /&gt;&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;ASP.NET&lt;/span&gt;&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;C#&lt;/span&gt;&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;The new MS Ajax 1.0 framework (+the control toolkit)&lt;/span&gt;&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;SQL Server 2005&lt;/span&gt;&lt;br /&gt;- &lt;span style="font-weight: bold;"&gt;The EntLib library (for logging purposes)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Througout this blog we'll be posting some of the things we've learned...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-6929221624386740112?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/6929221624386740112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=6929221624386740112&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/6929221624386740112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/6929221624386740112'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/03/some-technical-info-on-our-project.html' title='Some technical info on our project'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-2411215799729105590</id><published>2007-03-16T00:57:00.000-07:00</published><updated>2007-03-16T01:04:31.426-07:00</updated><title type='text'>Some info on our project...</title><content type='html'>Our internship project is all about knowledge management. We were assigned to build a knowledge management application which will track individual knowledge for all of Ordina's consultants. Another purpose of this application is to supply resources (webcast, trainings, books) to the employees. No question about it, an application like this could be a great asset for a consulting company like Ordina, so we'll give it all we've got ;-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-2411215799729105590?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/2411215799729105590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=2411215799729105590&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/2411215799729105590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/2411215799729105590'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/03/some-info-on-our-project.html' title='Some info on our project...'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4913927133266758263.post-1669920501238745040</id><published>2007-03-16T00:41:00.000-07:00</published><updated>2007-03-16T00:51:20.509-07:00</updated><title type='text'>Introduction</title><content type='html'>We are 2 Belgian students in informatics at Hogeschool Gent, currently we are working on our internship with Ordina, an IT-consulting company. Purpose of this blog is to summarize some of the things we've learned during the internship and to keep people posted about the stuff we are doing. Hope you like it...&lt;br /&gt;&lt;br /&gt;Jonas Van de Biest&lt;br /&gt;Dierickx Dominique&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4913927133266758263-1669920501238745040?l=ordinastage.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ordinastage.blogspot.com/feeds/1669920501238745040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4913927133266758263&amp;postID=1669920501238745040&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/1669920501238745040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4913927133266758263/posts/default/1669920501238745040'/><link rel='alternate' type='text/html' href='http://ordinastage.blogspot.com/2007/03/testje.html' title='Introduction'/><author><name>&lt;b&gt;Dominiek&lt;/b&gt;</name><uri>http://www.blogger.com/profile/00125417140648080983</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
