<feed xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
    <title>Sean Rhone</title>
    <link rel="self" type="application/xml" href="http://geekswithblogs.net/Ramblings/Atom.aspx" />
    <subtitle type="html"> </subtitle>
    <id>http://geekswithblogs.net/Ramblings/Default.aspx</id>
    <author>
        <name>Ramblings</name>
        <uri>http://geekswithblogs.net/Ramblings/Default.aspx</uri>
    </author>
    <generator uri="http://subtextproject.com" version="Subtext Version 0.0.0.0">Subtext</generator>
    <updated>2009-10-07T09:28:31Z</updated>
    <entry>
        <title>DataAnnotations Namespace</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/Ramblings/archive/2009/10/07/dataannotations-namespace.aspx" />
        <id>http://geekswithblogs.net/Ramblings/archive/2009/10/07/dataannotations-namespace.aspx</id>
        <published>2009-10-07T09:28:31-05:00:00</published>
        <updated>2009-10-07T09:28:31Z</updated>
        <content type="html">Just posted a new article on CodeProject about the new &lt;span&gt;&lt;span class="selflink"&gt;System.ComponentModel.DataAnnotations dll added in SP 3.5.1. If you have not seen this yet it is a really cool set of attributes that allow you to add validation rules to properties as attributes. &lt;br /&gt;
&lt;br /&gt;
Check out the article and let me know what you think. Remember to vote!&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
http://www.codeproject.com/KB/validation/DataAnnotations.aspx&lt;img src="http://geekswithblogs.net/Ramblings/aggbug/135344.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/Ramblings/comments/135344.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/Ramblings/comments/commentRss/135344.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/Ramblings/services/trackbacks/135344.aspx</trackback:ping>
    </entry>
    <entry>
        <title>CSLA .NET VB 3.6.3 </title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/Ramblings/archive/2009/09/28/csla-.net-vb-3.6.3.aspx" />
        <id>http://geekswithblogs.net/Ramblings/archive/2009/09/28/csla-.net-vb-3.6.3.aspx</id>
        <published>2009-09-28T06:55:14-05:00:00</published>
        <updated>2009-09-28T06:55:14Z</updated>
        <content type="html">Finally wrapped up the changes and bug fixes over the weekend for the VB.NET 3.6.3 version and Rocky Lhotka will be posting on his site shortly!&lt;img src="http://geekswithblogs.net/Ramblings/aggbug/135133.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/Ramblings/comments/135133.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/Ramblings/comments/commentRss/135133.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/Ramblings/services/trackbacks/135133.aspx</trackback:ping>
    </entry>
    <entry>
        <title>&lt;asp:Griview got ya</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/Ramblings/archive/2009/08/12/aspgriview-got-ya.aspx" />
        <id>http://geekswithblogs.net/Ramblings/archive/2009/08/12/aspgriview-got-ya.aspx</id>
        <published>2009-08-12T19:15:09-05:00:00</published>
        <updated>2009-08-12T19:15:09Z</updated>
        <content type="html">Today I was assigned a a page to finish up for a internal ASP.NET 3.5 application and was working on editing records in the gridview. There are two LinkButtons named for edit and remove and when the user clicks edit button the record is suppose to populate in a form above the grid. Sounds easy enough except when I clicked the link and handled the event so I could populate the form the grid when into editmode as well. &lt;br /&gt;
&lt;br /&gt;
Ok, I've never done in-grid editing but know enough to look at the autocreate* settings to turn this off and was very surprised to see they were not enabled. So, it's time to dig around and the answer is explained in the link below but the short answer is the command name attribute auto enables functionality if you use "Edit", "Delete", or "Select".&lt;br /&gt;
&lt;br /&gt;
Now I'm all for making things easier but auto enabling functionality by a text value is silly. It took me a while to find this and bet I'm not the only person who hit this wall.&lt;br /&gt;
&lt;br /&gt;
So, next time your gridview it auto editing,selecting, or deleting and you don't know why check out the ButtonField or Templete field for command values.&lt;br /&gt;
&lt;br /&gt;
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx&lt;img src="http://geekswithblogs.net/Ramblings/aggbug/134061.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/Ramblings/comments/134061.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/Ramblings/comments/commentRss/134061.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/Ramblings/services/trackbacks/134061.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Progress Made</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/Ramblings/archive/2009/07/21/progress-made.aspx" />
        <id>http://geekswithblogs.net/Ramblings/archive/2009/07/21/progress-made.aspx</id>
        <published>2009-07-21T08:58:15-05:00:00</published>
        <updated>2009-07-21T08:58:15Z</updated>
        <content type="html">&lt;p&gt;I've only been at the new contract 6 weeks and I've already have them using NUnit, Lightweight Test Automation Framework, and today I got them to set up TeamCity!&lt;/p&gt;
&lt;p&gt;Before I started they were not using any automated unit testing suite and no they joined the dark side :)&lt;/p&gt;&lt;img src="http://geekswithblogs.net/Ramblings/aggbug/133619.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/Ramblings/comments/133619.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/Ramblings/comments/commentRss/133619.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/Ramblings/services/trackbacks/133619.aspx</trackback:ping>
    </entry>
    <entry>
        <title>http://www.setfocus.com/</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/Ramblings/archive/2009/07/16/httpwww.setfocus.com.aspx" />
        <id>http://geekswithblogs.net/Ramblings/archive/2009/07/16/httpwww.setfocus.com.aspx</id>
        <published>2009-07-16T10:23:20-05:00:00</published>
        <updated>2009-07-16T10:25:38Z</updated>
        <content type="html">After my 3 1/2 month vacation (spelled laid off) I finally landed a new position, although it is only a four month contract. What worries me is that it has never taken more than a week or two to find a new position in the Charlotte, NC area so I started thinking about adding to my skill set.&lt;br /&gt;
&lt;br /&gt;
I would like to get into SharePoint development but it seems impossible to get a position without experience in it (make sense) and it is very expensive to set it up at home so I started looking for training. I've attended one/two week training courses before (I won't mention the training facilities since I have nothing nice to say about them) but have always thought the training was superficial, not well thought out and usually focused on the educating the entry level developer. A person I'm working with mentioned Setfocus as something he had looked at before so I started checking them out and on the surface they look ok, although very expensive.&lt;br /&gt;
&lt;br /&gt;
So, here is the question. Has anyone reading this have a comment on the training, placement, cost, facilities, equipment, or even the mascot :) about this training?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;img src="http://geekswithblogs.net/Ramblings/aggbug/133534.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/Ramblings/comments/133534.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/Ramblings/comments/commentRss/133534.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/Ramblings/services/trackbacks/133534.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Extension Methods</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/Ramblings/archive/2009/05/04/extension-methods.aspx" />
        <id>http://geekswithblogs.net/Ramblings/archive/2009/05/04/extension-methods.aspx</id>
        <published>2009-05-04T13:44:58-05:00:00</published>
        <updated>2009-05-04T13:44:58Z</updated>
        <content type="html">&lt;p&gt;Trying to make some use out of the extra time I have being unemployed I started playing with creating Extension methods which became available with .NET 3.0. Cool functionality when you want to add functionality without altering the original code. I posted an article out on Code Project (&lt;a href="http://www.codeproject.com/KB/cs/CreatingExtensionMethods.aspx"&gt;http://www.codeproject.com/KB/cs/CreatingExtensionMethods.aspx&lt;/a&gt;) that shows how to create an extension for System.String and allows the user to encrypt/decrypt any string object without knowing anything about using RSACryptoServiceProvider.&lt;/p&gt;
&lt;p&gt;Go check it out and let me know what you think. I'm considering creating a Extension dll for Excel. When I was working at the banks they used Excel for everything and it might be useful. If you have any thoughts on the subject, let me know.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://geekswithblogs.net/Ramblings/aggbug/131727.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/Ramblings/comments/131727.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/Ramblings/comments/commentRss/131727.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/Ramblings/services/trackbacks/131727.aspx</trackback:ping>
    </entry>
    <entry>
        <title>You've got to be kidding</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/Ramblings/archive/2009/04/30/youve-got-to-be-kidding.aspx" />
        <id>http://geekswithblogs.net/Ramblings/archive/2009/04/30/youve-got-to-be-kidding.aspx</id>
        <published>2009-04-30T17:25:09-05:00:00</published>
        <updated>2009-04-30T17:45:15Z</updated>
        <content type="html">&lt;p&gt;I &lt;font face="Arial"&gt;unemployed&lt;/font&gt; right now so I'm stuck looking for a job and one of my weak points is I've never been good at interviewing. I always seem to flub some answer that I know but it never seems to come out right. &lt;/p&gt;
&lt;p&gt;So, I'm on this interview with a non-technical hiring manager (who somehow is development manager) and we are going over his list of questions and we hit on Interfaces. So I go over the standard Interface blurb and when I'm done he tells me I'm wrong on the fact that you can not use access modifiers (private and protected specificly) in Interfaces, more over he's seen access modifiers used to limit the scope of the "private set" on properties!&lt;/p&gt;
&lt;p&gt;Like I said, I've never been good at interviewing so I inform him that in the .NET world you can not use the access modifiers private and protected in Interfaces and that he might be confused with something he saw in an abstract class. Well, he had it written down on his little sheet and there was no way I was going to win this argument so I let it go. Wonder if I will get this job?&lt;/p&gt;&lt;img src="http://geekswithblogs.net/Ramblings/aggbug/131633.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/Ramblings/comments/131633.aspx</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/Ramblings/comments/commentRss/131633.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/Ramblings/services/trackbacks/131633.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Lightweight Test Automation Framework</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/Ramblings/archive/2009/02/16/lightweight-test-automation-framework.aspx" />
        <id>http://geekswithblogs.net/Ramblings/archive/2009/02/16/lightweight-test-automation-framework.aspx</id>
        <published>2009-02-16T20:53:12-06:00:00</published>
        <updated>2009-02-16T20:53:12Z</updated>
        <content type="html">&lt;p&gt;I just found this framework last Friday and really wanted to pass it along to anyone else using ASP.NET. I have been using NUnit for a while now and really do love the fact of being able to write test and know before pushing out a dll that I haven't broken anything during my latest addition, but with ASP.NET there hasn't been (at least as far as I've seen) a way to test the user interface and logic flow until recently. The ASP.NET team wrote a tool (&lt;font face="Arial"&gt;&lt;a href="http://www.codeplex.com/aspnet"&gt;http://www.codeplex.com/aspnet&lt;/a&gt;)&lt;/font&gt; for them at some point and a couple months ago they posted it for us to use.&lt;/p&gt;
&lt;p&gt;I've only been using this framework for a couple days now but I can not say enough good things about it. With very little work I've been able to write test cases for every login scenario I have to support, to include successful logins, missing user names/passwords, prompting user to contact tech support etc. This framework allows you to navigates to pages, wait for the post-back, capture elements on the page look at the values/properties of controls everything you need to test flow through a application.&lt;/p&gt;
&lt;p&gt;Starting this week I will begin showing code that I have come up with to test my own web site to demonstrate this framework, so check back.&lt;/p&gt;&lt;img src="http://geekswithblogs.net/Ramblings/aggbug/129448.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/Ramblings/comments/129448.aspx</wfw:comment>
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/Ramblings/comments/commentRss/129448.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/Ramblings/services/trackbacks/129448.aspx</trackback:ping>
    </entry>
    <entry>
        <title>Meta tag DownloadOptions</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/Ramblings/archive/2009/02/02/meta-namedownloadoptions-contentnoopen.aspx" />
        <id>http://geekswithblogs.net/Ramblings/archive/2009/02/02/meta-namedownloadoptions-contentnoopen.aspx</id>
        <published>2009-02-02T18:25:41-06:00:00</published>
        <updated>2009-02-09T11:21:44Z</updated>
        <content type="html">&lt;p&gt;I recently convert a ASP.NET 1.1 web app to 2.0 and included MasterPages to define a consistent look, menu etc but ran into a problem with the &lt;font face="Arial"&gt;&amp;lt;meta name="DownloadOptions" content="noopen"/&amp;gt; code. Our site allows users to export data to Excel and text files and also upload pictures and some other file types. Problem is you need to have the &lt;font face="Arial"&gt;&amp;lt;meta name="DownloadOptions" content="noopen"/&amp;gt; tag in the  html &amp;lt;header&amp;gt; which exist in the MasterPage and as you know content pages can not contain top level html content.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;For those of you who don't know what &lt;font face="Arial"&gt;&amp;lt;meta name="DownloadOptions" content="noopen"/&amp;gt; does, it modifes the ShowDialog popup and removes the "Open" button so the user only see's the "Save" and "Cancel;" button.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;So the problem is, how do I allow users to export to Excel and text files (without the option of "Open" and upload the other files. The way I decided to go is I created a custom attribute class called "ShowDialogNoOpen" and used this attribute on every class in my application that allows exporting files (I don't have an instance where I export and allow the used to upload in one class). Next I put code in the MasterPage file that is called during the Page_Load event that checks if the current "this.Page" has this attribute. If the class does have this attribute I wrote a method that emits a new meta tag. The code is pasted below that shows this.&lt;/p&gt;
&lt;p&gt;This is the custom attribute class&lt;br /&gt;
&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;class&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ShowDiaglogNoOpen&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;: &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Attribute&lt;br /&gt;
&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;{&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;bool&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ShowOpen()&lt;br /&gt;
{&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;In the MasterPage I created a method that looks like&lt;br /&gt;
private void CheckForAttribute()&lt;br /&gt;
{&lt;br /&gt;
     MemberInfo  info = this.Page.GetType();&lt;br /&gt;
     // Instead of gettting ALL attributes I only want to search for one&lt;br /&gt;
     object[] attr = info.GetCustomAttributes(typeof(ShowDialogNoOpen),true);&lt;br /&gt;
     // Check if anything was returned&lt;br /&gt;
     if(attr != null &amp;amp;&amp;amp; attr.GetLength(0) &amp;gt;0)&lt;br /&gt;
          EmitMetaTag();&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt; private void EnitMetaTag()&lt;br /&gt;
{&lt;br /&gt;
    // New class for creating meta tags&lt;br /&gt;
    HtmlMeta meta = new HtmlMeta():&lt;br /&gt;
    //Use the Name property to specify the meta tag we want to use&lt;br /&gt;
    meta.Name = "DownloadOptions";&lt;br /&gt;
    //Add the Content param&lt;br /&gt;
    meta.Content = "noopen";&lt;br /&gt;
    // add this new meta tag to the page&lt;br /&gt;
    this.Page.Header.Controls.Add(meta);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;So, now to stop allowing users the "open" button all I have to do is add [ShowDialogNoOpen] to the class that uses this masterpage and all is well.&lt;/p&gt;&lt;img src="http://geekswithblogs.net/Ramblings/aggbug/129154.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/Ramblings/comments/129154.aspx</wfw:comment>
        <slash:comments>2</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/Ramblings/comments/commentRss/129154.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/Ramblings/services/trackbacks/129154.aspx</trackback:ping>
    </entry>
    <entry>
        <title>ExtJs Ex not defined</title>
        <link rel="self" type="text/html" href="http://geekswithblogs.net/Ramblings/archive/2009/01/26/extjs-ex-not-defined.aspx" />
        <id>http://geekswithblogs.net/Ramblings/archive/2009/01/26/extjs-ex-not-defined.aspx</id>
        <published>2009-01-26T18:26:07-06:00:00</published>
        <updated>2009-01-26T18:26:07Z</updated>
        <content type="html">&lt;p&gt;&lt;font face="Arial"&gt;So, for the past 10 months I've been working in ASP.NET, which is a first for me I'm been a desk top / middle tier developer for 99% of my developer career and thing that I don't like about the current application I support is this calendar control we have. The developer before me created a small calendar control that the user click on a icon and the window pops up. Problem with this is the calendar control has no business logic in it, to use it you have to call back the to the server, compile the page and pop it, then user then selects a date and we use javascript to post the value back to the calling page.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Man, that is a lot of work to allow a user to select a date! So, since I'm trying to make things look slicker and run faster I'm working on implementing a ExtJs DatePicker control that hides/displays using the same icon. So I went out to the site and downloaded the Framework and set in to add the control. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;I kept getting errors like 'Ext..' is not defined in my main project and I goolged the living heck out of the issue with no luck. Tried different syntax, rearranged script tags all to no avail until I switched the ext-base.js I was using from the file in the ext-2.2\Source\Adapter to the ext-2.2\Adapter\Ext. Not sure what the difference is but there must be one.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://geekswithblogs.net/Ramblings/aggbug/128981.aspx" width="1" height="1" /&gt;</content>
        <wfw:comment>http://geekswithblogs.net/Ramblings/comments/128981.aspx</wfw:comment>
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://geekswithblogs.net/Ramblings/comments/commentRss/128981.aspx</wfw:commentRss>
        <trackback:ping>http://geekswithblogs.net/Ramblings/services/trackbacks/128981.aspx</trackback:ping>
    </entry>
</feed>
