November 2007 Entries
Ok, seriously, this debate must end! I strongly believe that changing a variable to a property is breaking a change! However, others feel otherwise. Update: Yes, this debate is not valid for C# 3.0, however, the question is intended for the earlier versions of C# which is still widely used.private string name;
public string Name
{
get
{
return name;
}
set
{
name=value;
}
}
How many times have you seen a similar snippet just like...
At some point in time, especially when you are doing some serious SEO optimization, you may want to use separate titles, keywords, description and etc. for each page. Thanks, to .NET we can quickly create HtmlMeta controls programmatically and add them to the page header. Here is a quick and dirty snippet. private void SetupPageHeader() { // Page title Page.Title = GetGlobalResourceObject("resource","ApplicationWebTitle").ToString(); // Description meta tag HtmlMeta descMeta = new HtmlMeta(); descMeta.Name = "Description"; descMeta.Content = GetGlobalResourceObject("resource", "MetaDescription").ToString(); Page.Header.Controls.Add(descMeta); // Keywords meta tag HtmlMeta keysMeta = new HtmlMeta(); keysMeta.Name = "keywords"; keysMeta.Content = GetGlobalResourceObject("resource", "MetaKeywords").ToString(); Page.Header.Controls.Add(keysMeta); } ...
Stumbled across a link to a set of FREE SQL Server tools from IDERA. Check them out, you never know when you are going to need them. SQL Safe Free High Performance SQL Server Backup & Recovery Tool Idera’s SQLsafe Freeware Edition is free SQL Server database backup and recovery tool based on our award-winning SQLsafe product. SQLsafe Freeware Edition gives you a really high-performance backup and recovery engine, a scriptable interface (command line and XSP) and the ability to backup and compress any size and any number of databases, all for free. SQL Check Free SQL Server Performance Dashboard...
Unfortunately, IE7 locks up on this blog and I have no idea why!!! arrhhhhggg!!!! Since I'm a firefox user, I have never experienced this problem until I received a swarm of emails of complaints. Therefore, I'll be digging into this issue, If I don't find the cause by the end of the day, I'll simply whip up a new design and try that out. I'm using SubText, so it should be pretty easy to switch the skin and see if that fixes it. My sympathy to all IE users, I'm on it!
This is one of those "Yeah I've always seen people use it differently but I don't know why!" questions. Re-throwing exceptions can be misused, although it may not cause any harm to your application - there are multiple ways of re-throwing an exception, most likely for the purpose of bubbling it up to a higher level. Note to Java developers: It is different in your world. Lets look at how many ways we can use throw: throw throw ex throw new Exception(); You should not use #3 except if you are throwing a specific exception other...
These are the questions that I usually ask during an interview process with an applicant that is in for a technical assessment interview. These questions assumes that you are well rounded and full blown .NET Web Developer. A .NET web developer should at least know ASP.NET, C#/VB.NET and TSQL.
What are HttpModules and HttpHandlers, and what is the difference between the two?
What is the difference between CREATE PROC and CREATE PROCEDURE?
What is ViewState and what are its advantages and disadvantages?
...
Next entries »