Comments for .NET Answers http://blog.dmbcllc.com ASP.NET, HTML, CSS, Visual Studio, CSharp, VB.NET and other programming items of interest. Mon, 22 Feb 2010 19:16:01 +0000 http://wordpress.org/?v=2.9.1 hourly 1 Comment on Top Ten ASP.NET Books by dave http://blog.dmbcllc.com/2010/02/18/top-ten-asp-net-books/comment-page-1/#comment-5395 dave Mon, 22 Feb 2010 19:16:01 +0000 http://blog.dmbcllc.com/2010/02/18/top-ten-asp-net-books/#comment-5395 MCTS Self-Paced Training Kit is a personal favorite MCTS Self-Paced Training Kit is a personal favorite

]]>
Comment on The Project Location is not Trusted by Dew Drop – January 14, 2010 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2010/01/13/the-project-location-is-not-trusted/comment-page-1/#comment-5136 Dew Drop – January 14, 2010 | Alvin Ashcraft's Morning Dew Thu, 14 Jan 2010 13:10:59 +0000 http://blog.dmbcllc.com/2010/01/13/the-project-location-is-not-trusted/#comment-5136 [...] The Project Location is not Trusted (Dave M. Bush) [...] [...] The Project Location is not Trusted (Dave M. Bush) [...]

]]>
Comment on jQuery and ASP.NET UpdatePanel by Dew Drop – January 6, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2010/01/06/jquery-and-asp-net-updatepanel/comment-page-1/#comment-5070 Dew Drop – January 6, 2009 | Alvin Ashcraft's Morning Dew Thu, 07 Jan 2010 02:20:47 +0000 http://blog.dmbcllc.com/2010/01/06/jquery-and-asp-net-updatepanel/#comment-5070 [...] jQuery and ASP.NET UpdatePanel (Dave M. Bush) [...] [...] jQuery and ASP.NET UpdatePanel (Dave M. Bush) [...]

]]>
Comment on Learn To Program – Online College or Self Taught? by Sorpigal http://blog.dmbcllc.com/2009/11/19/learn-to-program-online-college-or-self-taught/comment-page-1/#comment-4803 Sorpigal Wed, 09 Dec 2009 18:22:08 +0000 http://blog.dmbcllc.com/2009/11/19/learn-to-program-online-college-or-self-taught/#comment-4803 I found this to be true, personally. I taught myself to program because I was interested and I found that I loved it. I loved it so much that I learned a lot of it. Then I tried to get a job... and found that no one would call me back if I sent in a resume without any formal experience. So I went to a 2-year college and took programming courses. It was blindingly easy, so I used the class time to read ahead and keep teaching myself. Example: In the C++ intro course I spent 3 weeks learning what we were going to cover that semester, then started reading ahead and learning as much as time would permit. (Side note: this can be dangerous. Handing in a simple count to 10 for loop exercise done with classes and iterators will tend to make the professor ask you where you copied it from.) After two years I had learned that college was a joke and I got a piece of paper saying I knew what I knew already. Armed with my paper I got a job as a programmer in short order. I found this to be true, personally.

I taught myself to program because I was interested and I found that I loved it. I loved it so much that I learned a lot of it. Then I tried to get a job… and found that no one would call me back if I sent in a resume without any formal experience.

So I went to a 2-year college and took programming courses. It was blindingly easy, so I used the class time to read ahead and keep teaching myself. Example: In the C++ intro course I spent 3 weeks learning what we were going to cover that semester, then started reading ahead and learning as much as time would permit. (Side note: this can be dangerous. Handing in a simple count to 10 for loop exercise done with classes and iterators will tend to make the professor ask you where you copied it from.)

After two years I had learned that college was a joke and I got a piece of paper saying I knew what I knew already.

Armed with my paper I got a job as a programmer in short order.

]]>
Comment on Flash to jQuery by Greg http://blog.dmbcllc.com/2009/11/30/flash-to-jquery/comment-page-1/#comment-4651 Greg Tue, 01 Dec 2009 18:06:12 +0000 http://blog.dmbcllc.com/2009/11/30/flash-to-jquery/#comment-4651 Not mine, but a tool I use. The selection is limited and I only use them for H tags and navigation depending on what the site calls for. The big problem with embedded fonts is you need to limit the number otherwise you are pushing a lot of files to the user, so I max out at two when working on a site. I deal with translation of websites and accessibility a lot, so using non-Flash/image methods saves me time in the long run. The embedding process now is standardized. The problem is the formats. "Modern" browser (cough, cough...not Microsoft) all use TTF or OTF, but because of IE's EOT support you are only supporting two formats...and well we do that anyway with all our IE fixes, so what is one more CSS call? Not mine, but a tool I use. The selection is limited and I only use them for H tags and navigation depending on what the site calls for. The big problem with embedded fonts is you need to limit the number otherwise you are pushing a lot of files to the user, so I max out at two when working on a site.

I deal with translation of websites and accessibility a lot, so using non-Flash/image methods saves me time in the long run.

The embedding process now is standardized. The problem is the formats. “Modern” browser (cough, cough…not Microsoft) all use TTF or OTF, but because of IE’s EOT support you are only supporting two formats…and well we do that anyway with all our IE fixes, so what is one more CSS call?

]]>
Comment on Flash to jQuery by Dave http://blog.dmbcllc.com/2009/11/30/flash-to-jquery/comment-page-1/#comment-4650 Dave Tue, 01 Dec 2009 17:57:23 +0000 http://blog.dmbcllc.com/2009/11/30/flash-to-jquery/#comment-4650 Is that your product? I don't know, from my casual look it seemed like everyone had their own way of doing font embedding which was an equal hassle. At least this way I only have to learn one technology and it works with a greater number of browsers. Personally, I'd stick with standard fonts. Special fonts don't sell products and are (therefore) a waste of time and money when designing a site. But, the client wanted special fonts, so he gets special fonts. Is that your product?

I don’t know, from my casual look it seemed like everyone had their own way of doing font embedding which was an equal hassle. At least this way I only have to learn one technology and it works with a greater number of browsers.

Personally, I’d stick with standard fonts. Special fonts don’t sell products and are (therefore) a waste of time and money when designing a site. But, the client wanted special fonts, so he gets special fonts.

]]>
Comment on Flash to jQuery by Greg http://blog.dmbcllc.com/2009/11/30/flash-to-jquery/comment-page-1/#comment-4649 Greg Tue, 01 Dec 2009 17:50:33 +0000 http://blog.dmbcllc.com/2009/11/30/flash-to-jquery/#comment-4649 I have always found using Flash (or Cufon) to embed fonts as particularly cumbersome. Since IE has always supported embedded fonts using the proprietary EOT font format, the only browsers that don't support embedding now are Opera 9.5, Chrome (not sure why with all its CSS3 and HTML5 goodness) and Firefox 2. The biggest problem with using CSS for font embedding is licensing and converting to EOT files.fontsquirrel.com offers bulletproof kits for embedding fonts that handles both these problems. I have always found using Flash (or Cufon) to embed fonts as particularly cumbersome. Since IE has always supported embedded fonts using the proprietary EOT font format, the only browsers that don’t support embedding now are Opera 9.5, Chrome (not sure why with all its CSS3 and HTML5 goodness) and Firefox 2.

The biggest problem with using CSS for font embedding is licensing and converting to EOT files.fontsquirrel.com offers bulletproof kits for embedding fonts that handles both these problems.

]]>
Comment on JQuery, Cufon, and Dynamic Content by Dew Drop – December 1, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/12/01/jquery-cufon-and-dynamic-content/comment-page-1/#comment-4645 Dew Drop – December 1, 2009 | Alvin Ashcraft's Morning Dew Tue, 01 Dec 2009 13:06:07 +0000 http://blog.dmbcllc.com/2009/12/01/jquery-cufon-and-dynamic-content/#comment-4645 [...] to jQuery and JQuery, CuFon, and Dynamic Content (Dave M. [...] [...] to jQuery and JQuery, CuFon, and Dynamic Content (Dave M. [...]

]]>
Comment on Flash to jQuery by Dew Drop – December 1, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/11/30/flash-to-jquery/comment-page-1/#comment-4644 Dew Drop – December 1, 2009 | Alvin Ashcraft's Morning Dew Tue, 01 Dec 2009 13:05:04 +0000 http://blog.dmbcllc.com/2009/11/30/flash-to-jquery/#comment-4644 [...] Flash to jQuery and JQuery, CuFon, and Dynamic Content (Dave M. Bush) [...] [...] Flash to jQuery and JQuery, CuFon, and Dynamic Content (Dave M. Bush) [...]

]]>
Comment on ASP.NET MVC in Action by Dew Drop – November 13, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/11/13/asp-net-mvc-in-action/comment-page-1/#comment-4253 Dew Drop – November 13, 2009 | Alvin Ashcraft's Morning Dew Fri, 13 Nov 2009 13:47:31 +0000 http://blog.dmbcllc.com/2009/11/13/asp-net-mvc-in-action/#comment-4253 [...] ASP.NET MVC in Action (Dave M. Bush) [...] [...] ASP.NET MVC in Action (Dave M. Bush) [...]

]]>
Comment on ASP.NET Cross Domain Form Submission by Dave http://blog.dmbcllc.com/2009/11/11/asp-net-cross-domain-form-submission/comment-page-1/#comment-4251 Dave Fri, 13 Nov 2009 11:22:32 +0000 http://blog.dmbcllc.com/2009/11/11/asp-net-cross-domain-form-submission/#comment-4251 John, Sometimes you have some interesting, even potentially better, ways of doing things. But in this case...? Even if you resubmit, you'll need to do something similar to one of the two ways I suggest here, or you'll have to go to a whole lot more work to do it. John,

Sometimes you have some interesting, even potentially better, ways of doing things. But in this case…?

Even if you resubmit, you’ll need to do something similar to one of the two ways I suggest here, or you’ll have to go to a whole lot more work to do it.

]]>
Comment on ASP.NET Cross Domain Form Submission by John Bubriski http://blog.dmbcllc.com/2009/11/11/asp-net-cross-domain-form-submission/comment-page-1/#comment-4232 John Bubriski Thu, 12 Nov 2009 16:46:07 +0000 http://blog.dmbcllc.com/2009/11/11/asp-net-cross-domain-form-submission/#comment-4232 Something about that feels really wrong... but I'm sure that it works great. However, I would probably just resubmit the form data in the code behind. I'm pretty sure it's easy to do that. Something about that feels really wrong… but I’m sure that it works great. However, I would probably just resubmit the form data in the code behind. I’m pretty sure it’s easy to do that.

]]>
Comment on ASP.NET Interview Questions For New College Graduates by Dew Drop – November 12, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/11/12/asp-net-interview-questions-for-new-college-graduates/comment-page-1/#comment-4229 Dew Drop – November 12, 2009 | Alvin Ashcraft's Morning Dew Thu, 12 Nov 2009 13:22:34 +0000 http://blog.dmbcllc.com/2009/11/12/asp-net-interview-questions-for-new-college-graduates/#comment-4229 [...] ASP.NET Interview Questions For New College Graduates (Dave M. Bush) [...] [...] ASP.NET Interview Questions For New College Graduates (Dave M. Bush) [...]

]]>
Comment on ASP.NET Cross Domain Form Submission by Dew Drop – November 12, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/11/11/asp-net-cross-domain-form-submission/comment-page-1/#comment-4228 Dew Drop – November 12, 2009 | Alvin Ashcraft's Morning Dew Thu, 12 Nov 2009 13:21:27 +0000 http://blog.dmbcllc.com/2009/11/11/asp-net-cross-domain-form-submission/#comment-4228 [...] ASP.NET Cross Domain Form Submission (Dave M. Bush) [...] [...] ASP.NET Cross Domain Form Submission (Dave M. Bush) [...]

]]>
Comment on Upload a File via WebRequest Using CSharp by Dew Drop – November 11, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/11/10/upload-a-file-via-webrequest-using-csharp/comment-page-1/#comment-4214 Dew Drop – November 11, 2009 | Alvin Ashcraft's Morning Dew Wed, 11 Nov 2009 13:55:58 +0000 http://blog.dmbcllc.com/2009/11/10/upload-a-file-via-webrequest-using-csharp/#comment-4214 [...] Upload a File via WebRequest Using CSharp (Dave M. Bush) [...] [...] Upload a File via WebRequest Using CSharp (Dave M. Bush) [...]

]]>
Comment on ASP.NET Authentication – Multiple Domains w/ Same Application by Dave http://blog.dmbcllc.com/2009/11/09/asp-net-authentication-multiple-domains-w-same-application/comment-page-1/#comment-4196 Dave Tue, 10 Nov 2009 19:21:10 +0000 http://blog.dmbcllc.com/2009/11/09/asp-net-authentication-multiple-domains-w-same-application/#comment-4196 It is at least worth considering. It is at least worth considering.

]]>
Comment on ASP.NET Authentication – Multiple Domains w/ Same Application by John Bubriski http://blog.dmbcllc.com/2009/11/09/asp-net-authentication-multiple-domains-w-same-application/comment-page-1/#comment-4195 John Bubriski Tue, 10 Nov 2009 18:40:06 +0000 http://blog.dmbcllc.com/2009/11/09/asp-net-authentication-multiple-domains-w-same-application/#comment-4195 Wouldn't it be easier to override the membership provider base class? Override each method with your custom handling for usernames, and you will never have to worry about it again. If you do it this way, you will have to modify the code in every single place you use the username. Wouldn’t it be easier to override the membership provider base class? Override each method with your custom handling for usernames, and you will never have to worry about it again. If you do it this way, you will have to modify the code in every single place you use the username.

]]>
Comment on ASP.NET Authentication – Multiple Domains w/ Same Application by Dew Drop – November 10, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/11/09/asp-net-authentication-multiple-domains-w-same-application/comment-page-1/#comment-4190 Dew Drop – November 10, 2009 | Alvin Ashcraft's Morning Dew Tue, 10 Nov 2009 12:57:39 +0000 http://blog.dmbcllc.com/2009/11/09/asp-net-authentication-multiple-domains-w-same-application/#comment-4190 [...] ASP.NET Authentication – Multiple Domains w/ Same Application (Dave M. Bush) [...] [...] ASP.NET Authentication – Multiple Domains w/ Same Application (Dave M. Bush) [...]

]]>
Comment on Embedding Google Search Appliance Results in ASP.NET by Michael Cizmar http://blog.dmbcllc.com/2009/11/05/embedding-google-search-appliance-results-in-asp-net/comment-page-1/#comment-4140 Michael Cizmar Sat, 07 Nov 2009 16:38:15 +0000 http://blog.dmbcllc.com/2009/11/05/embedding-google-search-appliance-results-in-asp-net/#comment-4140 Nice article. There are a bunch of things to consider if you begin to perform secured searchs. Also, we wrote a C# wrapper. You can find it here: http://www.codeplex.com/GSALib/ here's another on utilizing suggest: http://www.mcplusa.com/blog/2009/07/adding-google-search-appliance-suggest-search-to-your-existing-page/ and another for using asp.net to call the GSA with SAML is enabled: http://www.mcplusa.com/blog/2009/06/remotely-calling-the-google-search-appliance-restful-web-services-when-saml-is-enabled/ Cheers, Michael Nice article. There are a bunch of things to consider if you begin to perform secured searchs. Also, we wrote a C# wrapper. You can find it here:

http://www.codeplex.com/GSALib/

here’s another on utilizing suggest:

http://www.mcplusa.com/blog/2009/07/adding-google-search-appliance-suggest-search-to-your-existing-page/

and another for using asp.net to call the GSA with SAML is enabled:

http://www.mcplusa.com/blog/2009/06/remotely-calling-the-google-search-appliance-restful-web-services-when-saml-is-enabled/

Cheers,

Michael

]]>
Comment on The Pragmatic Programmer: From Journeyman to Master by Dew Drop – November 6, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/11/06/the-pragmatic-programmer-from-journeyman-to-master/comment-page-1/#comment-4122 Dew Drop – November 6, 2009 | Alvin Ashcraft's Morning Dew Fri, 06 Nov 2009 13:30:25 +0000 http://blog.dmbcllc.com/2009/11/06/the-pragmatic-programmer-from-journeyman-to-master/#comment-4122 [...] The Pragmatic Programmer: From Journeyman to Master (Dave M. Bush) [...] [...] The Pragmatic Programmer: From Journeyman to Master (Dave M. Bush) [...]

]]>
Comment on Embedding Google Search Appliance Results in ASP.NET by Dew Drop – November 6, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/11/05/embedding-google-search-appliance-results-in-asp-net/comment-page-1/#comment-4121 Dew Drop – November 6, 2009 | Alvin Ashcraft's Morning Dew Fri, 06 Nov 2009 13:30:05 +0000 http://blog.dmbcllc.com/2009/11/05/embedding-google-search-appliance-results-in-asp-net/#comment-4121 [...] Embedding Google Search Appliance Results in ASP.NET (Dave M. Bush) [...] [...] Embedding Google Search Appliance Results in ASP.NET (Dave M. Bush) [...]

]]>
Comment on GridView and Updating A Row Manually by Dew Drop – November 4, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/11/04/gridview-and-updating-a-row-manually/comment-page-1/#comment-4097 Dew Drop – November 4, 2009 | Alvin Ashcraft's Morning Dew Wed, 04 Nov 2009 13:23:50 +0000 http://blog.dmbcllc.com/2009/11/04/gridview-and-updating-a-row-manually/#comment-4097 [...] GridView and Updating a Row Manually (Dave M. Bush) [...] [...] GridView and Updating a Row Manually (Dave M. Bush) [...]

]]>
Comment on Agile/Scrum Task Board for “Real Life” by Dave http://blog.dmbcllc.com/2009/10/28/agilescrum-task-board-for-real-life/comment-page-1/#comment-4086 Dave Wed, 04 Nov 2009 01:56:55 +0000 http://blog.dmbcllc.com/2009/10/28/agilescrum-task-board-for-real-life/#comment-4086 Looks like it is worth keeping an eye on anyhow Looks like it is worth keeping an eye on anyhow

]]>
Comment on Agile/Scrum Task Board for “Real Life” by Tomek Dabrowski http://blog.dmbcllc.com/2009/10/28/agilescrum-task-board-for-real-life/comment-page-1/#comment-4083 Tomek Dabrowski Tue, 03 Nov 2009 22:59:13 +0000 http://blog.dmbcllc.com/2009/10/28/agilescrum-task-board-for-real-life/#comment-4083 I encourage you to check http://taskboard.cognifide.com - simple and flexible implementation of Taskboard. We have been implementing it for our company need and we benefit lots of introducing this into our process. Project is open source. I encourage you to check http://taskboard.cognifide.com – simple and flexible implementation of Taskboard. We have been implementing it for our company need and we benefit lots of introducing this into our process. Project is open source.

]]>
Comment on Where Does Live Writer Store Themes by Dave http://blog.dmbcllc.com/2009/11/03/where-does-live-writer-store-themes/comment-page-1/#comment-4078 Dave Tue, 03 Nov 2009 13:35:44 +0000 http://blog.dmbcllc.com/2009/11/03/where-does-live-writer-store-themes/#comment-4078 Try using a theme with body{background: black;} and the content area white with black text. I've had several themes that don't work. For example the theme I'm using on this blog now. And yes, I'm using the most recent version of LW Try using a theme with body{background: black;} and the content area white with black text. I’ve had several themes that don’t work. For example the theme I’m using on this blog now. And yes, I’m using the most recent version of LW

]]>
Comment on Where Does Live Writer Store Themes by José Pablo http://blog.dmbcllc.com/2009/11/03/where-does-live-writer-store-themes/comment-page-1/#comment-4077 José Pablo Tue, 03 Nov 2009 13:07:12 +0000 http://blog.dmbcllc.com/2009/11/03/where-does-live-writer-store-themes/#comment-4077 If I can remember rigth, you can let Live Writer to update automacticly your new theme? Check for it on the configuration for your blog, last time i change my blog's theme, live writer could get it rigth If I can remember rigth, you can let Live Writer to update automacticly your new theme? Check for it on the configuration for your blog, last time i change my blog’s theme, live writer could get it rigth

]]>
Comment on Essential Silverlight 3 by Dew Drop – November 1, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/10/30/essential-silverlight-3/comment-page-1/#comment-4054 Dew Drop – November 1, 2009 | Alvin Ashcraft's Morning Dew Sun, 01 Nov 2009 14:56:46 +0000 http://blog.dmbcllc.com/2009/10/30/essential-silverlight-3/#comment-4054 [...] Essential Silverlight 3 (Dave M. Bush) – Dave’s review of the Apress title. [...] [...] Essential Silverlight 3 (Dave M. Bush) – Dave’s review of the Apress title. [...]

]]>
Comment on Essential Silverlight 3 by Dew Drop – October 30, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/10/30/essential-silverlight-3/comment-page-1/#comment-4033 Dew Drop – October 30, 2009 | Alvin Ashcraft's Morning Dew Fri, 30 Oct 2009 13:15:36 +0000 http://blog.dmbcllc.com/2009/10/30/essential-silverlight-3/#comment-4033 [...] Essential Silverlight 3 (Dave M. Bush) [...] [...] Essential Silverlight 3 (Dave M. Bush) [...]

]]>
Comment on Authentication – Assigning Permissions to Roles by John Bubriski http://blog.dmbcllc.com/2009/10/26/authentication-assigning-permissions-to-roles/comment-page-1/#comment-3983 John Bubriski Tue, 27 Oct 2009 19:52:46 +0000 http://blog.dmbcllc.com/2009/10/26/authentication-assigning-permissions-to-roles/#comment-3983 Another option would to create base pages that handle the security for each section, in the case that your directory structure does not mirror your permissions hierarchy. Another option would to create base pages that handle the security for each section, in the case that your directory structure does not mirror your permissions hierarchy.

]]>
Comment on DotNetNuke – Collecting Profile at Registration by Frank Lynch http://blog.dmbcllc.com/2009/10/21/dotnetnuke-collecting-profile-at-registration/comment-page-1/#comment-3904 Frank Lynch Wed, 21 Oct 2009 12:23:55 +0000 http://blog.dmbcllc.com/2009/10/21/dotnetnuke-collecting-profile-at-registration/#comment-3904 wow, this will be great to track the user info that are visiting my blog, but where do these information are stored in a temporary LOG (.INI) file or direct to database ? wow, this will be great to track the user info that are visiting my blog, but where do these information are stored in a temporary LOG (.INI) file or direct to database ?

]]>
Comment on SQL SELECT CASE Instead of IIF by Mitch http://blog.dmbcllc.com/2009/10/20/sql-select-case-instead-of-iif/comment-page-1/#comment-3903 Mitch Wed, 21 Oct 2009 10:14:17 +0000 http://blog.dmbcllc.com/2009/10/20/sql-select-case-instead-of-iif/#comment-3903 Yeah. IIF doesn't perform at all. You HAVE TO use SELECT CASE if you want to do this as part of a SELECT statement in TSQL. Yeah. IIF doesn’t perform at all. You HAVE TO use SELECT CASE if you want to do this as part of a SELECT statement in TSQL.

]]>
Comment on SQL SELECT CASE Instead of IIF by Steve http://blog.dmbcllc.com/2009/10/20/sql-select-case-instead-of-iif/comment-page-1/#comment-3895 Steve Wed, 21 Oct 2009 02:49:24 +0000 http://blog.dmbcllc.com/2009/10/20/sql-select-case-instead-of-iif/#comment-3895 Is there a performance difference? Is there a performance difference?

]]>
Comment on HttpContext.Items[] vs Session[] by Mitch http://blog.dmbcllc.com/2009/10/12/httpcontext-items-vs-session/comment-page-1/#comment-3851 Mitch Sat, 17 Oct 2009 19:38:35 +0000 http://blog.dmbcllc.com/2009/10/12/httpcontext-items-vs-session/#comment-3851 @Mahmoud Did you even read the article? Tell me how using ViewState will allow me to pass variables around during the request. @Mahmoud

Did you even read the article?

Tell me how using ViewState will allow me to pass variables around during the request.

]]>
Comment on HttpContext.Items[] vs Session[] by Mahmoud http://blog.dmbcllc.com/2009/10/12/httpcontext-items-vs-session/comment-page-1/#comment-3850 Mahmoud Sat, 17 Oct 2009 18:44:38 +0000 http://blog.dmbcllc.com/2009/10/12/httpcontext-items-vs-session/#comment-3850 I think it will be better if you use the ViewState object,in case you want to work in the page level. The advantages of it, the value of the object exists while Post Backs. I think it will be better if you use the ViewState object,in case you want to work in the page level.
The advantages of it, the value of the object exists while Post Backs.

]]>
Comment on DotNetNuke SecurityException AspnetHostingPermission by Dave http://blog.dmbcllc.com/2009/10/14/dotnetnuke-securityexception-aspnethostingpermission/comment-page-1/#comment-3813 Dave Wed, 14 Oct 2009 13:56:30 +0000 http://blog.dmbcllc.com/2009/10/14/dotnetnuke-securityexception-aspnethostingpermission/#comment-3813 While it "works", I wouldn't do that on a production server. Sounds like a security risk to me. While it “works”, I wouldn’t do that on a production server. Sounds like a security risk to me.

]]>
Comment on DotNetNuke SecurityException AspnetHostingPermission by Scott Allender http://blog.dmbcllc.com/2009/10/14/dotnetnuke-securityexception-aspnethostingpermission/comment-page-1/#comment-3812 Scott Allender Wed, 14 Oct 2009 13:53:02 +0000 http://blog.dmbcllc.com/2009/10/14/dotnetnuke-securityexception-aspnethostingpermission/#comment-3812 I have ran into this issue a LOT with windows 7 and windows 2008. My fixes for it are basically to ensure that the App Pool user account belongs to IIS_IUSRS group and and to grant the IIS_IUSRS group RWX privileges on the site directory. For DNN, I grant Full privileges. I have ran into this issue a LOT with windows 7 and windows 2008. My fixes for it are basically to ensure that the App Pool user account belongs to IIS_IUSRS group and and to grant the IIS_IUSRS group RWX privileges on the site directory. For DNN, I grant Full privileges.

]]>
Comment on Type Safe Session Variables by Donny V http://blog.dmbcllc.com/2009/10/07/type-safe-session-variables/comment-page-1/#comment-3758 Donny V Fri, 09 Oct 2009 18:32:35 +0000 http://blog.dmbcllc.com/2009/10/07/type-safe-session-variables/#comment-3758 I'v been doing this for a while now. One thing I learned in doing this is that in large projects you want to use a GUID as the session variable. I usually don't have 1 large session data class. I use it in any class. So you may accidentally use the same session variable. Using the GUID prevents that from happening. Also you might want to think about some type of rehydration code inside the property. So that when IIS decides to dump the session state in the middle of your code executing it can rehydrate that session from nothing. Here is an example string UserAccountSessionID = "88766165-b250-4d65-af10-5f2b6c9eca0d"; public static UserAccount GetUserAccount { get { System.Web.SessionState.HttpSessionState SessionState = System.Web.HttpContext.Current.Session; UserAccount UA = null; UA = SessionState[UserAccountSessionID] as UserAccount; if (UA == null) { UA = GetUserAccount(CurrentUserID); SessionState[UserAccountSessionID] = UA; } return UA; } } I’v been doing this for a while now.
One thing I learned in doing this is that in large projects you want
to use a GUID as the session variable. I usually don’t have 1 large session data class. I use it in any class. So you may accidentally use the same session variable. Using the GUID prevents that from happening.

Also you might want to think about some type of rehydration code inside the property. So that when IIS decides to dump the session state in the middle of your code executing it can rehydrate that session from nothing.

Here is an example

string UserAccountSessionID = “88766165-b250-4d65-af10-5f2b6c9eca0d”;
public static UserAccount GetUserAccount
{
get
{
System.Web.SessionState.HttpSessionState SessionState = System.Web.HttpContext.Current.Session;
UserAccount UA = null;
UA = SessionState[UserAccountSessionID] as UserAccount;
if (UA == null)
{
UA = GetUserAccount(CurrentUserID);
SessionState[UserAccountSessionID] = UA;
}

return UA;
}
}

]]>
Comment on CmdAgent.exe utilizing 100% CPU by joao carmo http://blog.dmbcllc.com/2009/10/08/cmdagent-exe-utilizing-100-cpu/comment-page-1/#comment-3753 joao carmo Fri, 09 Oct 2009 08:49:13 +0000 http://blog.dmbcllc.com/2009/10/08/cmdagent-exe-utilizing-100-cpu/#comment-3753 thank you very much great tip i was having the same problem !!! thank you very much great tip i was having the same problem !!!

]]>
Comment on CmdAgent.exe utilizing 100% CPU by Jason http://blog.dmbcllc.com/2009/10/08/cmdagent-exe-utilizing-100-cpu/comment-page-1/#comment-3746 Jason Thu, 08 Oct 2009 22:44:04 +0000 http://blog.dmbcllc.com/2009/10/08/cmdagent-exe-utilizing-100-cpu/#comment-3746 Same thing happened to me today. I guess something must have been wrong with an update they pushed out recently. My computer was literally unusable, and so I removed comodo firewall and av from my computer and installed avast and outpost firewall. Much better now! Same thing happened to me today. I guess something must have been wrong with an update they pushed out recently. My computer was literally unusable, and so I removed comodo firewall and av from my computer and installed avast and outpost firewall. Much better now!

]]>
Comment on CmdAgent.exe utilizing 100% CPU by Luis http://blog.dmbcllc.com/2009/10/08/cmdagent-exe-utilizing-100-cpu/comment-page-1/#comment-3745 Luis Thu, 08 Oct 2009 21:31:24 +0000 http://blog.dmbcllc.com/2009/10/08/cmdagent-exe-utilizing-100-cpu/#comment-3745 Thanks dude, I was having this problem so do a couple of my friends, atm comodo is behaving but not all the time Thanks dude, I was having this problem so do a couple of my friends, atm comodo is behaving but not all the time

]]>
Comment on Forms Authentication – Manual Authentication by Salman Butt http://blog.dmbcllc.com/2009/10/05/forms-authentication-manual-authentication/comment-page-1/#comment-3721 Salman Butt Thu, 08 Oct 2009 03:42:50 +0000 http://blog.dmbcllc.com/2009/10/05/forms-authentication-manual-authentication/#comment-3721 Why cant you just show us the code for authenticating against the service as well? It doesnt matter if our implementations are different - we can at least the get the feel of what exactly the entry is about. Please post some sample authentication code as well as how to tap into login control events? Why cant you just show us the code for authenticating against the service as well? It doesnt matter if our implementations are different – we can at least the get the feel of what exactly the entry is about. Please post some sample authentication code as well as how to tap into login control events?

]]>
Comment on Type Safe Session Variables by Dave http://blog.dmbcllc.com/2009/10/07/type-safe-session-variables/comment-page-1/#comment-3708 Dave Wed, 07 Oct 2009 19:26:14 +0000 http://blog.dmbcllc.com/2009/10/07/type-safe-session-variables/#comment-3708 Personally, I'd rather get the error and find out quickly that the session was misused. Personally, I’d rather get the error and find out quickly that the session was misused.

]]>
Comment on Type Safe Session Variables by Scott Holodak http://blog.dmbcllc.com/2009/10/07/type-safe-session-variables/comment-page-1/#comment-3707 Scott Holodak Wed, 07 Oct 2009 19:22:40 +0000 http://blog.dmbcllc.com/2009/10/07/type-safe-session-variables/#comment-3707 Rather than casing the object, consider using the 'as' keyword in your get blocks. 'as' will return null if the object can't be cast to the desired type instead of throwing an InvalidCastException. Even though you are providing a class to interface with the Session object in a strongly-typed way, it's still possible for other developers to short circuit your system and manipulate the Session object directly, so it is possible to get some object type of the Session object that your code doesn't expect. I think you'd rather get a null value back in that case than an unhandled exception. Rather than casing the object, consider using the ‘as’ keyword in your get blocks. ‘as’ will return null if the object can’t be cast to the desired type instead of throwing an InvalidCastException. Even though you are providing a class to interface with the Session object in a strongly-typed way, it’s still possible for other developers to short circuit your system and manipulate the Session object directly, so it is possible to get some object type of the Session object that your code doesn’t expect. I think you’d rather get a null value back in that case than an unhandled exception.

]]>
Comment on Type Safe Session Variables by Jef Claes http://blog.dmbcllc.com/2009/10/07/type-safe-session-variables/comment-page-1/#comment-3706 Jef Claes Wed, 07 Oct 2009 17:45:40 +0000 http://blog.dmbcllc.com/2009/10/07/type-safe-session-variables/#comment-3706 I have been doing this for some time now. Good thing you blogged about it! I have been doing this for some time now.

Good thing you blogged about it!

]]>
Comment on Type Safe Session Variables by Ira http://blog.dmbcllc.com/2009/10/07/type-safe-session-variables/comment-page-1/#comment-3702 Ira Wed, 07 Oct 2009 15:02:46 +0000 http://blog.dmbcllc.com/2009/10/07/type-safe-session-variables/#comment-3702 I have always found it a little easier to type things going in and coming out of the session using a session helper class: /// /// Helper object for strongly typed access to the session. /// public class SessionHelper { #region Methods (2)  // Public Methods (2)  /// /// Gets the session value. /// /// /// The key. /// Returns a public static T GetSessionValue(string key) { T result = default(T); if (HttpContext.Current.Session[key] != null) result = (T)HttpContext.Current.Session[key]; return result; } /// /// Sets the session value. /// /// /// The key. /// The value. public static void SetSessionValue(string key, T value) { if (HttpContext.Current.Session[key] == null) HttpContext.Current.Session.Add(key, value); else HttpContext.Current.Session[key] = value; } #endregion Methods  } I have always found it a little easier to type things going in and coming out of the session using a session helper class:

///
/// Helper object for strongly typed access to the session.
///
public class SessionHelper
{

#region Methods (2) 

// Public Methods (2) 

///
/// Gets the session value.
///
///
/// The key.
/// Returns a
public static T GetSessionValue(string key)
{
T result = default(T);
if (HttpContext.Current.Session[key] != null)
result = (T)HttpContext.Current.Session[key];
return result;
}

///
/// Sets the session value.
///
///
/// The key.
/// The value.
public static void SetSessionValue(string key, T value)
{
if (HttpContext.Current.Session[key] == null)
HttpContext.Current.Session.Add(key, value);
else
HttpContext.Current.Session[key] = value;
}

#endregion Methods 

}

]]>
Comment on Dynamically Change class Attribute From ASP.NET by Dave http://blog.dmbcllc.com/2009/09/29/dynamically-change-class-attribute-from-asp-net/comment-page-1/#comment-3636 Dave Thu, 01 Oct 2009 13:22:28 +0000 http://blog.dmbcllc.com/2009/09/29/dynamically-change-class-attribute-from-asp-net/#comment-3636 Can you point me to any resource that talks about this? I'm not familiar with anything that could be what you reference in your question. Can you point me to any resource that talks about this? I’m not familiar with anything that could be what you reference in your question.

]]>
Comment on Dynamically Change class Attribute From ASP.NET by Balaji_Getfriday http://blog.dmbcllc.com/2009/09/29/dynamically-change-class-attribute-from-asp-net/comment-page-1/#comment-3630 Balaji_Getfriday Wed, 30 Sep 2009 21:12:12 +0000 http://blog.dmbcllc.com/2009/09/29/dynamically-change-class-attribute-from-asp-net/#comment-3630 Have you given any thoughts to Use Categories to Add Functionality to Classes? I've been hard pressed to find good resources, and judging from this article I'm guessing you may have something valuable to say. Thanks in advance! Have you given any thoughts to Use Categories to Add Functionality to Classes? I’ve been hard pressed to find good resources, and judging from this article I’m guessing you may have something valuable to say. Thanks in advance!

]]>
Comment on The case against i, j, and k by Dave http://blog.dmbcllc.com/2009/09/16/the-case-against-i-j-and-k/comment-page-1/#comment-3598 Dave Mon, 28 Sep 2009 12:14:26 +0000 http://blog.dmbcllc.com/2009/09/16/the-case-against-i-j-and-k/#comment-3598 You can do a lot of things, that doesn't make them right. First, you can't use that feature in all languages. Second, even the languages where you are suppose to be able to use the feature have been know to be buggy in this regard. Third, your suggested method is a much harder standard to enforce than a naming convention. And finally, and most importantly. i, j, and k tell you nothing about what the code is suppose to do. You can do a lot of things, that doesn’t make them right.

First, you can’t use that feature in all languages.
Second, even the languages where you are suppose to be able to use the feature have been know to be buggy in this regard.
Third, your suggested method is a much harder standard to enforce than a naming convention.
And finally, and most importantly. i, j, and k tell you nothing about what the code is suppose to do.

]]>
Comment on The case against i, j, and k by Mark http://blog.dmbcllc.com/2009/09/16/the-case-against-i-j-and-k/comment-page-1/#comment-3591 Mark Sun, 27 Sep 2009 22:25:24 +0000 http://blog.dmbcllc.com/2009/09/16/the-case-against-i-j-and-k/#comment-3591 Alternately if you declare your i's , j's, k's inside the for statement the compiler would catch the inner re-definition of i as an error. for (int i=0;i<someVar;i++) ... Alternately if you declare your i’s , j’s, k’s inside the for statement the compiler would catch the inner re-definition of i as an error. for (int i=0;i<someVar;i++) …

]]>
Comment on The Case Against Location: File System by Manhattan http://blog.dmbcllc.com/2009/09/24/the-case-against-location-file-system/comment-page-1/#comment-3554 Manhattan Thu, 24 Sep 2009 16:48:43 +0000 http://blog.dmbcllc.com/2009/09/24/the-case-against-location-file-system/#comment-3554 So.... because I'm a bad programmer, you're going to come wreck my van. That's mean! :'( So…. because I’m a bad programmer, you’re going to come wreck my van. That’s mean! :’(

]]>
Comment on Coding Priorities by Ryan Kohn http://blog.dmbcllc.com/2009/09/23/coding-priorities/comment-page-1/#comment-3544 Ryan Kohn Wed, 23 Sep 2009 17:22:01 +0000 http://blog.dmbcllc.com/2009/09/23/coding-priorities/#comment-3544 One more reason to not add in that extra supporting code is that irrelevant code can confuse or aggravate a future maintenance programmer, leading to a lengthier enhancement time, which is precisely what the original programmer had intended to avoid. One more reason to not add in that extra supporting code is that irrelevant code can confuse or aggravate a future maintenance programmer, leading to a lengthier enhancement time, which is precisely what the original programmer had intended to avoid.

]]>
Comment on Why You Should Click on the Ad If It Interests You by Arveno http://blog.dmbcllc.com/2009/08/27/why-you-should-click-on-the-ad-if-it-interest-you/comment-page-1/#comment-3507 Arveno Sun, 20 Sep 2009 15:53:32 +0000 http://blog.dmbcllc.com/2009/08/27/why-you-should-click-on-the-ad-if-it-interest-you/#comment-3507 Very good and detailed look to internet marketing. I agree with the first point that clicking on ads will help advertisers to target their campaigns. Very good and detailed look to internet marketing. I agree with the first point that clicking on ads will help advertisers to target their campaigns.

]]>
Comment on Copy And Paste And Bugs by Dave http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/comment-page-1/#comment-3467 Dave Tue, 15 Sep 2009 16:16:15 +0000 http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/#comment-3467 Right, that's why I end with "Sometimes copy and paste can't be avoided..." It's a call to be intentional about NOT creating the method or function rather than not creating it by default. Right, that’s why I end with “Sometimes copy and paste can’t be avoided…”

It’s a call to be intentional about NOT creating the method or function rather than not creating it by default.

]]>
Comment on Copy And Paste And Bugs by Karl Agius http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/comment-page-1/#comment-3466 Karl Agius Tue, 15 Sep 2009 16:04:12 +0000 http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/#comment-3466 I get what you mean about troubleshooting and cleaning up. I'm just a bit wary of advocating the 'avoid duplication at all costs' approach because it can lead to a mess just as much as inconsiderate duplication - say, methods with names that have nothing to do with the context they're being used in, weird hacks to existing methods that break more stuff, and so on. Something's always got to give; if someone doesn't take enough pride in their work to do things properly, forcing one side will break the other. I take it that your post is more aimed towards sloppy coding in general, lack of testing, not enough expression of intent in code, and all those things which make a maintainer/troubleshooter's life so interesting; I definitely have to agree with you completely there. I get what you mean about troubleshooting and cleaning up. I’m just a bit wary of advocating the ‘avoid duplication at all costs’ approach because it can lead to a mess just as much as inconsiderate duplication – say, methods with names that have nothing to do with the context they’re being used in, weird hacks to existing methods that break more stuff, and so on. Something’s always got to give; if someone doesn’t take enough pride in their work to do things properly, forcing one side will break the other.

I take it that your post is more aimed towards sloppy coding in general, lack of testing, not enough expression of intent in code, and all those things which make a maintainer/troubleshooter’s life so interesting; I definitely have to agree with you completely there.

]]>
Comment on Copy And Paste And Bugs by Dave http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/comment-page-1/#comment-3465 Dave Tue, 15 Sep 2009 15:41:41 +0000 http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/#comment-3465 Unfortunately, step three never happens for most of us. While simply spending a bit more time AS YOU WRITE would solve the main problem in the first place. Not using duplication analysis tool right now. But that's more a factor of either having NO control over the code base I'm working with/on. I'm a trouble shooter. Rarely is finding duplicate code the solution to the problem, even though duplicating code IS often the cause. That is, I get called in to find the problem and fix it, not to clean up the entire code base.. although that may be a recommendation that I make along the way. Unfortunately, step three never happens for most of us. While simply spending a bit more time AS YOU WRITE would solve the main problem in the first place.

Not using duplication analysis tool right now. But that’s more a factor of either having NO control over the code base I’m working with/on.

I’m a trouble shooter. Rarely is finding duplicate code the solution to the problem, even though duplicating code IS often the cause. That is, I get called in to find the problem and fix it, not to clean up the entire code base.. although that may be a recommendation that I make along the way.

]]>
Comment on Copy And Paste And Bugs by Karl Agius http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/comment-page-1/#comment-3464 Karl Agius Tue, 15 Sep 2009 15:21:06 +0000 http://blog.dmbcllc.com/2009/09/15/copy-and-paste-and-bugs/#comment-3464 I feel your pain, as I'm sure most coders out here do. As much as I hate copy/pasting though, I do feel that Fowler's rule of three (the first time you write, the second time you duplicate, the third time you refactor) makes a lot more sense than always creating a method, class, or component to avoid duplication. That way lies a massively bloated code base. On another note, do you use any code duplication analysis tools, and if so, which? Thanks for the post :) I feel your pain, as I’m sure most coders out here do.

As much as I hate copy/pasting though, I do feel that Fowler’s rule of three (the first time you write, the second time you duplicate, the third time you refactor) makes a lot more sense than always creating a method, class, or component to avoid duplication. That way lies a massively bloated code base.

On another note, do you use any code duplication analysis tools, and if so, which?

Thanks for the post :)

]]>
Comment on Automated Web Testing with the WebBrowserControl by Daily tech links for .net and related technologies - September 13-15, 2009 - Sanjeev Agarwal http://blog.dmbcllc.com/2009/09/11/automated-web-testing-with-the-webbrowsercontrol/comment-page-1/#comment-3447 Daily tech links for .net and related technologies - September 13-15, 2009 - Sanjeev Agarwal Mon, 14 Sep 2009 06:04:00 +0000 http://blog.dmbcllc.com/2009/09/11/automated-web-testing-with-the-webbrowsercontrol/#comment-3447 [...] Testing Unit Testing – Do Repeat Yourself Automated Web Testing with the WebBrowserControl [...] [...] Testing Unit Testing – Do Repeat Yourself Automated Web Testing with the WebBrowserControl [...]

]]>
Comment on Storing An Image To a Database in .NET by Derek Dorian http://blog.dmbcllc.com/2009/09/08/storing-an-image-to-a-database-in-net/comment-page-1/#comment-3433 Derek Dorian Thu, 10 Sep 2009 10:57:47 +0000 http://blog.dmbcllc.com/2009/09/08/storing-an-image-to-a-database-in-net/#comment-3433 TBH i tried to put some binary into DB but i was satisfied with the results so i am not going to put any binary TBH i tried to put some binary into DB
but i was satisfied with the results
so i am not going to put any binary

]]>
Comment on CSharp VAR Misconceptions by Mitch http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/comment-page-1/#comment-3431 Mitch Wed, 09 Sep 2009 15:59:57 +0000 http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/#comment-3431 @Dennis var index = 1; should be avoided only WHEN index is a constant. @Dennis

var index = 1;

should be avoided only WHEN index is a constant.

]]>
Comment on CSharp VAR Misconceptions by Dennis http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/comment-page-1/#comment-3430 Dennis Wed, 09 Sep 2009 15:52:34 +0000 http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/#comment-3430 I use "var" a lot, except some foreach iterators to "xxxCollection" which "var" cannot works very well. In case I cannot use "var", or it does not look very well; I should consider to break the method into smaller pieces and renaming stuffs. "var" really save a lot heartbeat from long type name (e.g. generic) "var" save some time when we extract a new interface from an object. (especially with a factory method) "var index = 1;" should be prevented, because "1" should be a constant. const int FOO=1; // I mean it var bar= FOO; I use “var” a lot, except some foreach iterators to “xxxCollection” which “var” cannot works very well.

In case I cannot use “var”, or it does not look very well; I should consider to break the method into smaller pieces and renaming stuffs.

“var” really save a lot heartbeat from long type name (e.g. generic)
“var” save some time when we extract a new interface from an object. (especially with a factory method)

“var index = 1;”
should be prevented, because “1″ should be a constant.
const int FOO=1; // I mean it
var bar= FOO;

]]>
Comment on Upgrading Vista 32 bit to Windows 7 64bit by Dave http://blog.dmbcllc.com/2009/08/11/upgrading-vista-32-bit-to-windows-7-64bit/comment-page-1/#comment-3429 Dave Wed, 09 Sep 2009 14:34:39 +0000 http://blog.dmbcllc.com/2009/08/11/upgrading-vista-32-bit-to-windows-7-64bit/#comment-3429 I used the full version (MSDN ISO image) upgrade wasn't an option. In fact, I'm pretty sure the only difference between the two is that the upgrade looks for a previous version of the OS. Can't speak to what's on the disk. I used the full version (MSDN ISO image) upgrade wasn’t an option.

In fact, I’m pretty sure the only difference between the two is that the upgrade looks for a previous version of the OS.

Can’t speak to what’s on the disk.

]]>
Comment on Upgrading Vista 32 bit to Windows 7 64bit by Kevin http://blog.dmbcllc.com/2009/08/11/upgrading-vista-32-bit-to-windows-7-64bit/comment-page-1/#comment-3428 Kevin Wed, 09 Sep 2009 14:25:09 +0000 http://blog.dmbcllc.com/2009/08/11/upgrading-vista-32-bit-to-windows-7-64bit/#comment-3428 So did you use Windows 7 upgrade to do this, or was it the full version of Windows 7? Also, do you know if the upgrade version comes with both 32 & 64 bit versions on the same disk, or are they separate disks altogether? So did you use Windows 7 upgrade to do this, or was it the full version of Windows 7? Also, do you know if the upgrade version comes with both 32 & 64 bit versions on the same disk, or are they separate disks altogether?

]]>
Comment on CSharp VAR Misconceptions by gunteman http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/comment-page-1/#comment-3425 gunteman Wed, 09 Sep 2009 08:58:40 +0000 http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/#comment-3425 @Mitch Yes, just making sure... :) CodeRush Express (free) features a "Make Explicit" function which can resolve "vars" when you feel like having the type explicitly declared. @Mitch

Yes, just making sure… :)

CodeRush Express (free) features a “Make Explicit” function which can resolve “vars” when you feel like having the type explicitly declared.

]]>
Comment on CSharp VAR Misconceptions by Eric Smith http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/comment-page-1/#comment-3424 Eric Smith Wed, 09 Sep 2009 08:47:27 +0000 http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/#comment-3424 The initial requirement for var was to make things like Linq possible. These days it's just a nice way of applying the DRY principle - why repeat yourself when you don't have to? On the other hand though, if it is not pretty clear what type we're dealing with (other than when using anonymous types of course), then it probably makes sense to be explicit about the type. The initial requirement for var was to make things like Linq possible. These days it’s just a nice way of applying the DRY principle – why repeat yourself when you don’t have to? On the other hand though, if it is not pretty clear what type we’re dealing with (other than when using anonymous types of course), then it probably makes sense to be explicit about the type.

]]>
Comment on CSharp VAR Misconceptions by Mitch http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/comment-page-1/#comment-3422 Mitch Tue, 08 Sep 2009 21:19:12 +0000 http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/#comment-3422 @gunteman I think we all know what he meant. @gunteman

I think we all know what he meant.

]]>
Comment on CSharp VAR Misconceptions by gunteman http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/comment-page-1/#comment-3421 gunteman Tue, 08 Sep 2009 21:12:26 +0000 http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/#comment-3421 No, it doesn't save you from casting, it saves you from explicitly declaring. No, it doesn’t save you from casting, it saves you from explicitly declaring.

]]>
Comment on CSharp VAR Misconceptions by Jaspio http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/comment-page-1/#comment-3416 Jaspio Mon, 07 Sep 2009 13:10:54 +0000 http://blog.dmbcllc.com/2009/09/07/csharp-var-misconceptions/#comment-3416 I don't use var that much either. Except in foreach iterators: foreach (var item in collection) {} It saves a lot of trouble casting to the right type there. Good point on the right-side assignment though! I don’t use var that much either. Except in foreach iterators:

foreach (var item in collection) {}

It saves a lot of trouble casting to the right type there.
Good point on the right-side assignment though!

]]>
Comment on Why You Should Click on the Ad If It Interests You by replica http://blog.dmbcllc.com/2009/08/27/why-you-should-click-on-the-ad-if-it-interest-you/comment-page-1/#comment-3402 replica Sat, 05 Sep 2009 08:47:13 +0000 http://blog.dmbcllc.com/2009/08/27/why-you-should-click-on-the-ad-if-it-interest-you/#comment-3402 I rare click on AD However when I am very interested I will click! I rare click on AD
However when I am very interested
I will click!

]]>
Comment on Why You Should Click on the Ad If It Interests You by Maneesh Bhati http://blog.dmbcllc.com/2009/08/27/why-you-should-click-on-the-ad-if-it-interest-you/comment-page-1/#comment-3393 Maneesh Bhati Fri, 04 Sep 2009 11:52:48 +0000 http://blog.dmbcllc.com/2009/08/27/why-you-should-click-on-the-ad-if-it-interest-you/#comment-3393 It's an interesting stuff. I an add interests you it means that it has some thing to know. It might be helpful to you in some respect or it will give u some information, or might be the design or the product u like. So keep on clicking the ads to know about them. It’s an interesting stuff. I an add interests you it means that it has some thing to know. It might be helpful to you in some respect or it will give u some information, or might be the design or the product u like. So keep on clicking the ads to know about them.

]]>
Comment on iTextSharp – HTML to PDF – Finishing Up by Dave http://blog.dmbcllc.com/2009/08/12/itextsharp-html-to-pdf-finishing-up/comment-page-1/#comment-3361 Dave Mon, 31 Aug 2009 11:06:12 +0000 http://blog.dmbcllc.com/2009/08/12/itextsharp-html-to-pdf-finishing-up/#comment-3361 Did you read the whole series and you still have this question? Did you read the whole series and you still have this question?

]]>
Comment on iTextSharp – HTML to PDF – Finishing Up by Ankit http://blog.dmbcllc.com/2009/08/12/itextsharp-html-to-pdf-finishing-up/comment-page-1/#comment-3359 Ankit Mon, 31 Aug 2009 06:49:03 +0000 http://blog.dmbcllc.com/2009/08/12/itextsharp-html-to-pdf-finishing-up/#comment-3359 hi i want to view or display pdf file in browser using itextsharp is it possible if yes then how and if no then you have alternate solution for that? thanks hi i want to view or display pdf file in browser using itextsharp is it possible if yes then how and if no then you have alternate solution for that? thanks

]]>
Comment on Why You Should Click on the Ad If It Interests You by Jonathan http://blog.dmbcllc.com/2009/08/27/why-you-should-click-on-the-ad-if-it-interest-you/comment-page-1/#comment-3356 Jonathan Mon, 31 Aug 2009 01:12:37 +0000 http://blog.dmbcllc.com/2009/08/27/why-you-should-click-on-the-ad-if-it-interest-you/#comment-3356 Very interesting perspective about clicking on ads< I guess most of us have never looked at it this way. Very interesting perspective about clicking on ads< I guess most of us have never looked at it this way.

]]>
Comment on Templated E-Mail using .NET by Alek Davis http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/comment-page-1/#comment-3309 Alek Davis Wed, 26 Aug 2009 23:36:00 +0000 http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/#comment-3309 Okay, here is my approach for more complex templates: http://alekdavis.blogspot.com/2009/08/sending-html-based-email-from-net.html Okay, here is my approach for more complex templates: http://alekdavis.blogspot.com/2009/08/sending-html-based-email-from-net.html

]]>
Comment on Templated E-Mail using .NET by jon http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/comment-page-1/#comment-3301 jon Wed, 26 Aug 2009 05:40:09 +0000 http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/#comment-3301 That’s an interesting mix of solutions That’s an interesting mix of solutions

]]>
Comment on Templated E-Mail using .NET by Dave http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/comment-page-1/#comment-3296 Dave Tue, 25 Aug 2009 14:40:41 +0000 http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/#comment-3296 That's an interesting mix of solutions. The stringwriter with the ascx control looks the most promising to me. That’s an interesting mix of solutions.

The stringwriter with the ascx control looks the most promising to me.

]]>
Comment on Templated E-Mail using .NET by John Bubriski http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/comment-page-1/#comment-3295 John Bubriski Tue, 25 Aug 2009 14:21:26 +0000 http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/#comment-3295 I asked a question about this on StackOverflow: http://stackoverflow.com/questions/620265/can-i-set-up-html-email-templates-in-c-on-asp-net Check it out, and feel free to contribute your information there too! I asked a question about this on StackOverflow: http://stackoverflow.com/questions/620265/can-i-set-up-html-email-templates-in-c-on-asp-net

Check it out, and feel free to contribute your information there too!

]]>
Comment on Templated E-Mail using .NET by Dew Drop – August 25, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/comment-page-1/#comment-3294 Dew Drop – August 25, 2009 | Alvin Ashcraft's Morning Dew Tue, 25 Aug 2009 12:51:39 +0000 http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/#comment-3294 [...] Templated E-Mail using .NET (Dave M. Bush) [...] [...] Templated E-Mail using .NET (Dave M. Bush) [...]

]]>
Comment on Templated E-Mail using .NET by Tonci http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/comment-page-1/#comment-3292 Tonci Tue, 25 Aug 2009 08:00:45 +0000 http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/#comment-3292 Ader TemplateEngine if you need a little more power and flexibility in your email templates (http://www.1000ad.net/index.cfm?page=templateEngine2) Ader TemplateEngine if you need a little more power and flexibility in your email templates (http://www.1000ad.net/index.cfm?page=templateEngine2)

]]>
Comment on Templated E-Mail using .NET by Alek Davis http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/comment-page-1/#comment-3290 Alek Davis Mon, 24 Aug 2009 17:53:58 +0000 http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/#comment-3290 I assumed that using XSLT for email templates is a common knowledge, but after a quick Google search I did not find any good examples, so I may follow your suggestion and write up a quick post on this. In the nutshell, the idea is to create an XML document (in code) with info that would be put in the XSL template, load the template and substitute placeholders in XSLT with data from XML (substitution is done automatically). This method is especially handy when you have to adjust text of the message based on the data you have and when you have variable length data collections (e.g. list of subscriptions). I assumed that using XSLT for email templates is a common knowledge, but after a quick Google search I did not find any good examples, so I may follow your suggestion and write up a quick post on this. In the nutshell, the idea is to create an XML document (in code) with info that would be put in the XSL template, load the template and substitute placeholders in XSLT with data from XML (substitution is done automatically). This method is especially handy when you have to adjust text of the message based on the data you have and when you have variable length data collections (e.g. list of subscriptions).

]]>
Comment on Templated E-Mail using .NET by Dave http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/comment-page-1/#comment-3289 Dave Mon, 24 Aug 2009 17:39:19 +0000 http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/#comment-3289 Actually, this method works quite well with quite a few fields. I'd love to see your XSLT solution, let us know when you've written about it. Actually, this method works quite well with quite a few fields.

I’d love to see your XSLT solution, let us know when you’ve written about it.

]]>
Comment on Templated E-Mail using .NET by Alek Davis http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/comment-page-1/#comment-3288 Alek Davis Mon, 24 Aug 2009 17:25:35 +0000 http://blog.dmbcllc.com/2009/08/24/templated-e-mail-using-net/#comment-3288 This method would be fine for simple e-mails with one or two single-word placeholders, but for anything more complex, a more flexible option would be to use XSL templates. This method would be fine for simple e-mails with one or two single-word placeholders, but for anything more complex, a more flexible option would be to use XSL templates.

]]>
Comment on “I don’t exactly have random $$$ hanging about.” by Blane http://blog.dmbcllc.com/2009/08/17/i-dont-exactly-have-random-hanging-about/comment-page-1/#comment-3277 Blane Sat, 22 Aug 2009 22:16:35 +0000 http://blog.dmbcllc.com/2009/08/17/i-dont-exactly-have-random-hanging-about/#comment-3277 I guess the word "random" in that statement is an unconscious way of saying that the value isn't acknowledged. Another way of perceiving it is that they are saying they haven't alloted discretionary income for the purchase even though it should really be viewed as a key investment in their career. Always a hidden agenda behind such statements. I guess the word “random” in that statement is an unconscious way of saying that the value isn’t acknowledged. Another way of perceiving it is that they are saying they haven’t alloted discretionary income for the purchase even though it should really be viewed as a key investment in their career. Always a hidden agenda behind such statements.

]]>
Comment on iTextSharp – HTML to PDF – Parsing HTML by Dave http://blog.dmbcllc.com/2009/07/28/itextsharp-html-to-pdf-parsing-html/comment-page-1/#comment-3240 Dave Wed, 19 Aug 2009 10:50:37 +0000 http://blog.dmbcllc.com/2009/07/28/itextsharp-html-to-pdf-parsing-html/#comment-3240 no no

]]>
Comment on iTextSharp – HTML to PDF – Parsing HTML by Tudor http://blog.dmbcllc.com/2009/07/28/itextsharp-html-to-pdf-parsing-html/comment-page-1/#comment-3239 Tudor Wed, 19 Aug 2009 09:50:47 +0000 http://blog.dmbcllc.com/2009/07/28/itextsharp-html-to-pdf-parsing-html/#comment-3239 Hi Is this code available for download. Thanks Hi

Is this code available for download.

Thanks

]]>
Comment on Test Sending Email without a Server in ASP.NET by Dew Drop – August 18, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/08/18/test-sending-email-without-a-server-in-asp-net/comment-page-1/#comment-3231 Dew Drop – August 18, 2009 | Alvin Ashcraft's Morning Dew Tue, 18 Aug 2009 13:10:30 +0000 http://blog.dmbcllc.com/2009/08/18/test-sending-email-without-a-server-in-asp-net/#comment-3231 [...] Test Sending Email without a Server in ASP.NET (Dave M. Bush) [...] [...] Test Sending Email without a Server in ASP.NET (Dave M. Bush) [...]

]]>
Comment on iTextSharp – HTML to PDF – Finishing Up by LeeZilla http://blog.dmbcllc.com/2009/08/12/itextsharp-html-to-pdf-finishing-up/comment-page-1/#comment-3228 LeeZilla Mon, 17 Aug 2009 20:56:12 +0000 http://blog.dmbcllc.com/2009/08/12/itextsharp-html-to-pdf-finishing-up/#comment-3228 Sure enough! The current year IS 2009! I blame it on my general lack of coffee so far today... Still, my question stands. Even at this early juncture, do you feel you should have / could have done something different? I must add, I use of the XMLTextReader object to parse the HTML. That was a pretty inspired bit of engineering you did! Sure enough! The current year IS 2009! I blame it on my general lack of coffee so far today…

Still, my question stands. Even at this early juncture, do you feel you should have / could have done something different? I must add, I use of the XMLTextReader object to parse the HTML. That was a pretty inspired bit of engineering you did!

]]>
Comment on iTextSharp – HTML to PDF – Finishing Up by Dave http://blog.dmbcllc.com/2009/08/12/itextsharp-html-to-pdf-finishing-up/comment-page-1/#comment-3227 Dave Mon, 17 Aug 2009 20:51:51 +0000 http://blog.dmbcllc.com/2009/08/12/itextsharp-html-to-pdf-finishing-up/#comment-3227 Wrote this 8/12/09, you can't get much more recent than that Wrote this 8/12/09, you can’t get much more recent than that

]]>
Comment on iTextSharp – HTML to PDF – Finishing Up by LeeZilla http://blog.dmbcllc.com/2009/08/12/itextsharp-html-to-pdf-finishing-up/comment-page-1/#comment-3226 LeeZilla Mon, 17 Aug 2009 20:30:26 +0000 http://blog.dmbcllc.com/2009/08/12/itextsharp-html-to-pdf-finishing-up/#comment-3226 I am replacing some really REALLY bad office automation stuff. Interop = evil in a production system. The existing app stores the data to be printed in HTML. This is exactly what I would want to do for my usage as well. Is this the most up to date article? Since writing this, have you found any glaring limitations or problems with the HTML parsing? Thanks for the great information. Building on this work will save me a massive amount of time. I am replacing some really REALLY bad office automation stuff. Interop = evil in a production system. The existing app stores the data to be printed in HTML. This is exactly what I would want to do for my usage as well. Is this the most up to date article? Since writing this, have you found any glaring limitations or problems with the HTML parsing?

Thanks for the great information. Building on this work will save me a massive amount of time.

]]>
Comment on Programming SEO – Cross Linking Titles by Scott Allender http://blog.dmbcllc.com/2009/08/13/programming-seo-cross-linking-titles/comment-page-1/#comment-3193 Scott Allender Thu, 13 Aug 2009 13:46:58 +0000 http://blog.dmbcllc.com/2009/08/13/programming-seo-cross-linking-titles/#comment-3193 Nice! Interesting way to ensure consistency of links across a site. Nice! Interesting way to ensure consistency of links across a site.

]]>
Comment on Upgrading Vista 32 bit to Windows 7 64bit by Dave http://blog.dmbcllc.com/2009/08/11/upgrading-vista-32-bit-to-windows-7-64bit/comment-page-1/#comment-3191 Dave Thu, 13 Aug 2009 12:32:32 +0000 http://blog.dmbcllc.com/2009/08/11/upgrading-vista-32-bit-to-windows-7-64bit/#comment-3191 Yep, I just ran into that this morning. Trust me, the performance improvement in VS under 64bit MORE than makes up for this minor inconvenience. Yep, I just ran into that this morning.

Trust me, the performance improvement in VS under 64bit MORE than makes up for this minor inconvenience.

]]>
Comment on Upgrading Vista 32 bit to Windows 7 64bit by chris http://blog.dmbcllc.com/2009/08/11/upgrading-vista-32-bit-to-windows-7-64bit/comment-page-1/#comment-3190 chris Thu, 13 Aug 2009 11:29:41 +0000 http://blog.dmbcllc.com/2009/08/11/upgrading-vista-32-bit-to-windows-7-64bit/#comment-3190 I have heard that edit and continue was not working in Visual Studio under a 64 bit OS, is that still true? I have heard that edit and continue was not working in Visual Studio under a 64 bit OS, is that still true?

]]>
Comment on Upgrading Vista 32 bit to Windows 7 64bit by Dew Drop – August 12, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/08/11/upgrading-vista-32-bit-to-windows-7-64bit/comment-page-1/#comment-3176 Dew Drop – August 12, 2009 | Alvin Ashcraft's Morning Dew Wed, 12 Aug 2009 12:43:42 +0000 http://blog.dmbcllc.com/2009/08/11/upgrading-vista-32-bit-to-windows-7-64bit/#comment-3176 [...] Upgrading Vista 32 bit to Windows 7 64bit (Dave M. Bush) [...] [...] Upgrading Vista 32 bit to Windows 7 64bit (Dave M. Bush) [...]

]]>
Comment on Manually Adding Event Handlers in VB.NET by Suresh http://blog.dmbcllc.com/2009/07/15/manually-adding-event-handlers-in-vb-net/comment-page-1/#comment-3145 Suresh Tue, 11 Aug 2009 05:29:13 +0000 http://blog.dmbcllc.com/2009/07/15/manually-adding-event-handlers-in-vb-net/#comment-3145 Great post buddy..helped me Great post buddy..helped me

]]>
Comment on What is .NET’s Object.GetHashCode() Used For? by Dew Drop – August 6, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/08/05/what-is-nets-object-gethashcode-used-for/comment-page-1/#comment-3108 Dew Drop – August 6, 2009 | Alvin Ashcraft's Morning Dew Thu, 06 Aug 2009 12:33:43 +0000 http://blog.dmbcllc.com/2009/08/05/what-is-nets-object-gethashcode-used-for/#comment-3108 [...] What is .NET’s Object.GetHashCode() Used For? (Dave M. Bush) [...] [...] What is .NET’s Object.GetHashCode() Used For? (Dave M. Bush) [...]

]]>
Comment on .NET Image Scaling in CSharp by Daily Links for Saturday, August 1st, 2009 http://blog.dmbcllc.com/2009/07/30/net-image-scaling-in-csharp/comment-page-1/#comment-3047 Daily Links for Saturday, August 1st, 2009 Sat, 01 Aug 2009 11:42:35 +0000 http://blog.dmbcllc.com/2009/07/30/net-image-scaling-in-csharp/#comment-3047 [...] .NET Image Scaling in CSharp [...] [...] .NET Image Scaling in CSharp [...]

]]>
Comment on .NET Image Scaling in CSharp by Dew Drop – July 31, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/07/30/net-image-scaling-in-csharp/comment-page-1/#comment-3041 Dew Drop – July 31, 2009 | Alvin Ashcraft's Morning Dew Fri, 31 Jul 2009 13:23:01 +0000 http://blog.dmbcllc.com/2009/07/30/net-image-scaling-in-csharp/#comment-3041 [...] .NET Image Scaling in CSharp (Dave M. Bush) [...] [...] .NET Image Scaling in CSharp (Dave M. Bush) [...]

]]>
Comment on VB.NET and CSharp Refactoring by Dew Drop – July 30, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/07/29/vb-net-and-csharp-refactoring/comment-page-1/#comment-3035 Dew Drop – July 30, 2009 | Alvin Ashcraft's Morning Dew Thu, 30 Jul 2009 12:17:22 +0000 http://blog.dmbcllc.com/2009/07/29/vb-net-and-csharp-refactoring/#comment-3035 [...] VB.NET and CSharp Refactoring (Dave M. Bush) [...] [...] VB.NET and CSharp Refactoring (Dave M. Bush) [...]

]]>
Comment on iTextSharp – HTML to PDF – Parsing HTML by Dew Drop – July 29, 2009 | Alvin Ashcraft's Morning Dew http://blog.dmbcllc.com/2009/07/28/itextsharp-html-to-pdf-parsing-html/comment-page-1/#comment-3025 Dew Drop – July 29, 2009 | Alvin Ashcraft's Morning Dew Wed, 29 Jul 2009 13:02:11 +0000 http://blog.dmbcllc.com/2009/07/28/itextsharp-html-to-pdf-parsing-html/#comment-3025 [...] iTextSharp – HTML to PDF – Parsing HTML (Dave M. Bush) [...] [...] iTextSharp – HTML to PDF – Parsing HTML (Dave M. Bush) [...]

]]>
Comment on iTextSharp – HTML to PDF – Parsing HTML by Daily Links for Wednesday, July 29th, 2009 http://blog.dmbcllc.com/2009/07/28/itextsharp-html-to-pdf-parsing-html/comment-page-1/#comment-3022 Daily Links for Wednesday, July 29th, 2009 Wed, 29 Jul 2009 11:38:13 +0000 http://blog.dmbcllc.com/2009/07/28/itextsharp-html-to-pdf-parsing-html/#comment-3022 [...] iTextSharp – HTML to PDF – Parsing HTML [...] [...] iTextSharp – HTML to PDF – Parsing HTML [...]

]]>
Comment on Don’t be such a #@%#! Lazy Programmer! by Dave http://blog.dmbcllc.com/2009/07/27/dont-be-such-a-lazy-programmer/comment-page-1/#comment-3016 Dave Tue, 28 Jul 2009 23:51:18 +0000 http://blog.dmbcllc.com/2009/07/27/dont-be-such-a-lazy-programmer/#comment-3016 Thanks for a good laugh at the end of a difficult day :) Thanks for a good laugh at the end of a difficult day :)

]]>