Sign In
AppDev: Something You Should Know by Irena Kennedy
Everything that is related to application development, and other cool stuff...
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
.NET
Application Development
Async
Config
Deployment
Environment
RIA
Silverlight
SQL
Telerik
TFS
Tools
Visual Studio
VSTS
WCF
Web
Archive
Archives
March 2012
(1)
January 2012
(2)
April 2011
(1)
March 2011
(2)
October 2010
(1)
September 2010
(1)
August 2010
(2)
December 2009
(4)
November 2009
(1)
September 2009
(1)
June 2009
(2)
April 2009
(1)
December 2008
(2)
February 2008
(1)
October 2007
(3)
September 2007
(1)
August 2007
(7)
July 2007
(5)
June 2007
(8)
May 2007
(19)
April 2007
(42)
March 2007
(43)
February 2007
(33)
January 2007
(21)
December 2006
(7)
November 2006
(20)
October 2006
(22)
September 2006
(20)
August 2006
(23)
July 2006
(19)
June 2006
(12)
May 2006
(22)
April 2006
(20)
March 2006
(23)
February 2006
(20)
January 2006
(21)
December 2005
(14)
November 2005
(19)
May, 2006
MSDN Blogs
>
AppDev: Something You Should Know by Irena Kennedy
>
May, 2006
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
AppDev: Something You Should Know by Irena Kennedy
SYSK 137: A Quick Way to Get to System Information Dialog
Posted
over 6 years ago
by
irenake
0
Comments
As you know, Windows System Information dialog shows you the hardware resources, installed components, and other configuration related information. It also gives you a chance to run some diagnostics tools and much more… The help file says that to display...
AppDev: Something You Should Know by Irena Kennedy
SYSK 136: INSERT SHRED(DelimitedString) INTO TABLE MyTable
Posted
over 6 years ago
by
irenake
0
Comments
In SYSK 131, Bill Wendel shows us how to convert a SQL string representing a boolean (e.g. ‘T’, ‘Y’, ‘1’, ‘N’, etc.) to a bit. In this post (again, special thanks to Bill for creating and allowing me to post this function), you have a user defined...
AppDev: Something You Should Know by Irena Kennedy
SYSK 135: Hot Key for Windows XP System Properties Dialog
Posted
over 6 years ago
by
irenake
1
Comments
Many of us open Windows Explorer, right mouse button click on My Computer and click on Properties menu item just to get to System Properties dialog… There is a much easier way – just press Windows Key + Pause/Break key at the same time – and you’ll get...
AppDev: Something You Should Know by Irena Kennedy
SYSK 134: Intellisense for SQL Server
Posted
over 6 years ago
by
irenake
1
Comments
Do you want Intellisense in SQL Server Management Studio, Query Analyzer and SQL queries in VS similar to Visual Studio? Then check out this great product from Red Gate Software at http://www.sqlprompt.com/ !
AppDev: Something You Should Know by Irena Kennedy
SYSK 133: Oh, the Mighty OUTPUT Clause!
Posted
over 6 years ago
by
irenake
1
Comments
SQL 2005 now has the new OUTPUT clause – see documentation at http://msdn2.microsoft.com/en-us/library/ms177564.aspx. A lot of examples show how you can use the OUTPUT clause to store inserted/updated/deleted values into another table or a table variable...
AppDev: Something You Should Know by Irena Kennedy
SYSK 132: Loop Performance Comparison -- foreach vs. for
Posted
over 6 years ago
by
irenake
15
Comments
Do you think there is a performance difference between the following two loops? foreach (int x in _data) { . . . } vs. for (int i = 0; i < _data.Count; i++) { . . . } My tests show that foreach is slower than the...
AppDev: Something You Should Know by Irena Kennedy
SYSK 131: SQL: String to Bit Conversion
Posted
over 6 years ago
by
irenake
0
Comments
Say you want to convert any of the following ‘1’, ‘-1’, ‘true’, ‘t’, ‘True’, ‘t’, ‘Yes’ to bit 1 and ‘0’, ‘f’, ‘false’, NULL to bit 0. How would you do that in one SQL statement? One way (special thanks to Bill Wendel who presented this solution...
AppDev: Something You Should Know by Irena Kennedy
SYSK 130: The Sexy Side of Internationalization in ASP.NET
Posted
over 6 years ago
by
irenake
1
Comments
Yes, let’s admit, internationalization (just as security) has not been the favorite of most developers… However, if you take a look at the ASP.NET 2.0 localization support, you just might be pleasantly surprised with how easy and how cool it is! ...
AppDev: Something You Should Know by Irena Kennedy
SYSK 129: A Tool Every ASP.NET Developer Should Know
Posted
over 6 years ago
by
irenake
1
Comments
Want to inspect all HTTP Traffic (both, incoming and outgoing data) from your computer? You can see session being created, cookies being sent, data being cached, and much more… You can diagnose performance problems… You can record a web session (just...
AppDev: Something You Should Know by Irena Kennedy
SYSK 128: Unexpected Behavior in NumericUpDown Control
Posted
over 6 years ago
by
irenake
1
Comments
Did you know that while setting ReadOnly property to True on a NumericUpDown control prohibits the user from typing in a value in the text portion of the control, does not prevent a user from changing the value using the up/down arrow keys? You...
AppDev: Something You Should Know by Irena Kennedy
SYSK 127: ResetBindings To the Rescue!
Posted
over 6 years ago
by
irenake
2
Comments
.NET 2.0 came with a lot of cool (new and improved) controls, one of them is the System.Windows.Forms.BindingNavigator and the BindingSource class. The only problem I found so far with this control is that if in the Load event you bind it to a BindingSource...
AppDev: Something You Should Know by Irena Kennedy
SYSK 126: Protect Yourself – Use ‘deployment retail’ Setting
Posted
over 6 years ago
by
irenake
0
Comments
As you know, compiling your web application with <compilation debug=”true”/> in web.config creates debug binaries rather than retail binaries -- see SYSK 101: How to Release Build an ASP.NET application ( http://blogs.msdn.com/irenak/archive/2006...
AppDev: Something You Should Know by Irena Kennedy
SYSK 125: Custom Controls in ToolBox
Posted
over 6 years ago
by
irenake
0
Comments
Have you ever wondered how is it that your custom controls automatically show up in the toolbox after first compilation? Open menu option Tools -> Options and then click on Windows Forms Designer tree node on the left side. The very last setting on...
AppDev: Something You Should Know by Irena Kennedy
SYSK 124: IDENT_CURRENT Without an Identity Column
Posted
over 6 years ago
by
irenake
3
Comments
SQL Server’s function IDENT_CURRENT(‘tablename’) returns the last identity value set on a specified table. While this is very useful, sometimes you need to get the next available primary key on a column that is not an identity field. In this case, ...
AppDev: Something You Should Know by Irena Kennedy
SYSK 123: Expand Your Horizon – Learn About How BitTorrent Works
Posted
over 6 years ago
by
irenake
0
Comments
BitTorrent is a populare peer-to-peer download method, which enables fast downloading of large files using minimum Internet bandwidth. Instead of downloading a file in its entirety, BitTorrent gathers pieces of the file you want and transfers them simultaneously...
AppDev: Something You Should Know by Irena Kennedy
SYSK 122: Clone a WinForms Control with all its Properties
Posted
over 6 years ago
by
irenake
1
Comments
As you know, WinForms controls (e.g. TextBox, ComboBox, etc.) are not serializable. So, how do you create a copy of a control? The other day I needed to do just that, and here is the code I ended up with ( note : it has not yet been thoroughly tested...
AppDev: Something You Should Know by Irena Kennedy
SYSK 121: When it’s Not Only Acceptable, but Recommended to Check into Source Control Your .user File
Posted
over 6 years ago
by
irenake
6
Comments
Developer’s personal settings and preferences are stored in a .user file. This is why it’s not recommended to add .user files to VSS or other Source Control tool – keep personal to yourself. However, when using ClickOnce deployment, the published...
AppDev: Something You Should Know by Irena Kennedy
SYSK 120: When == is not same as Equals
Posted
over 6 years ago
by
irenake
3
Comments
What do you think will be the output in the code snippet below? object o1 = 5; object o2 = 5; System.Diagnostics.Debug.WriteLine(o1 == o2); System.Diagnostics.Debug.WriteLine(o1.Equals(o2)); System.Diagnostics.Debug.WriteLine(((Int32...
AppDev: Something You Should Know by Irena Kennedy
SYSK 119: Granular Role Based Security via an Attribute
Posted
over 6 years ago
by
irenake
0
Comments
Most applications implement role based security to assure that only authorized users have access to restricted application functionality (features). You know the drill—"only certain users can modify salary information in an HR application," or "only managers...
AppDev: Something You Should Know by Irena Kennedy
SYSK 118: ReadOnly or ContentEditable?
Posted
over 6 years ago
by
irenake
11
Comments
Consider this: you want a text box on a web page to be not editable by the user, but you want to be able to change the text box’s contents in client side script and see the updated text on the server. Did you know that if you set TextBox1.ReadOnly...
AppDev: Something You Should Know by Irena Kennedy
SYSK 117: Are You Using Eval or Bind for your ASPX Data Binding?
Posted
over 6 years ago
by
irenake
2
Comments
Many ASP.NET 1.0 and 1.1 developers have been using DataBinder.Eval method to evaluate binding expressions at run time (late-bound data) and optionally format the result as a string. While, personally, I prefer early binding due to performance benefits...
AppDev: Something You Should Know by Irena Kennedy
SYSK 116: Which Code is Faster and Why – Using ‘As’ or ‘Is’ + cast?
Posted
over 6 years ago
by
irenake
3
Comments
Which code segment below is faster? #1 MyClass classInstance = new MyClass(); IDoWork iDoWorkClass = classInstance as IDoWork; if (iDoWorkClass != null) { // Do something so compiler doesn't think it's dead code System.Diagnostics...
Page 1 of 1 (22 items)