Archive for January, 2007
Value types are not always stored in the stack
It’s been a common (mis)understanding for the .NET beginners that they’ve been taught as reference types are stored in the managed heap and the value types are stored in the stack. Well, that’s true to a certain level but not always.
Here is a situation where the value type won’t be stored in the stack. Assume [...]
HowTo: Initialize members of an object on deserialization
When you deserialize an XML into an object there might be situations where you might want to initialize some of the members before the object is available for prime time use. How do you do that?
Simple…there is an interface, IDerializationCallback, dedicated for this purpose. It resides, where else, on the System.Runtime.Serialization namespace. It’s sole purpose is [...]
ASP.NET AJAX 1.0 Released
It’s official…ASP.NET AJAX 1.0 (formerly “Atlas”) is released to the public. You can download the latest release from here.
I have talked about the beta release of ASP.NET AJAX 1.0 before. It’s a pretty quick turn-around from the AJAX team to release the golden release. Congrats Scott and the team.
Scott Guthrie, the General Manager at the .NET Development [...]
CodeFetch – Search for source code within books
Here is a service that lets you search for source codes within the CD’s that comes with the books. There are a variety of languages that you can choose to base your search on and once you hit the “Fetch” button it scans the books that it indexes for those languages and gives you the [...]
Read Full Post | Make a Comment ( None so far )HowTo: Highlight all text in a textbox on click
At times we would want to have the entire text of a text box to be selected when we click on the textbox. How do you do it? It’s pretty simple.
Use this simple statement to implement that functionality.
onclick=”javascript:select();”
For example,
<textarea cols=”100″ rows=”10″ onclick=”javascript:select();”>Highlight this text when I click on it</textarea>
Technorati tags: Javascript, Code Snippet, HowTo
~
Read Full Post | Make a Comment ( 8 so far )Use DataTable.Rows.Find() Instead of DataTable.Select()
ADO.NET generates indexes on the primary key(s).
So, if you have to search a datatable for records based on some primary key value, use DataTable.Rows.Find() instead of DataTable.Select(). The Find method will use the index to find the row. This turns out to be faster because of the presence of the index.
Visit DemoGeek.com for amazingly detailed [...]
Improving ASP.NET Performance
Here is an article that delves into the details on how to improve the performance of an ASP.NET application. There are some really nice pointers on how to do it.
Here are the chapters that are explained in the article from the performance point of view.
Design Considerations
Implementation Considerations
Threading Explained
Threading Guidelines
Resource Management
Pages
Server Controls
Data Binding
Caching Explained
Caching Guidelines
State [...]
Free ASP.NET/XHTML Design Templates
I like when there is less work for me to put together a great work. And this is one step towards that. Here is a Microsoft site that has some good ASP.NET 2.0 and strict XHTML templates that you can use to quickly come up with a great looking web site.
Download them from here.
I [...]
Tip Of The Day: T-SQL "TOP N" equivalent for Oracle and MySQL
You know that T-SQL (SQL Server) has a nice keyword Top N to fetch the top N number of rows. Great…so what is the equivalent of it in Oracle and MySQL. Here it is,
SQL Server:
SELECT TOP 10 product, descr, email FROM products
ORACLE:
SELECT product, descr, email FROM products WHERE ROWNUM <= 10
MySQL:
SELECT product, [...]
.NET Framework 3.0 Pillars – Explained
Even though there are plenty of resources available for the new Microsoft .NET Framework 3.0 I found this introduction pretty simple and upto the point.
Here is a gist of the different pillars of .NET Fx 3.0,
1. WPF (Windows Presentation Foundation).
New era for Windows Desktop Application UI designing. Following are some of the [...]
Code snippet to format XML string
Here is a code snippet that helps you format an XML string to a nicely (normally) looking XML format.
using System.Text;
using System.Xml;
. . .
/// <summary>
/// Returns formatted xml string (indent and newlines) from unformatted XML
/// string for display in eg textboxes.
/// </summary>
/// <param name=”sUnformattedXml”>Unformatted xml string.</param>
/// <returns>Formatted xml string and any exceptions that occur.</returns>
private string [...]
Read Full Post | Make a Comment ( 5 so far )Showcase of sites powered by ASP.NET AJAX
ASP.NET AJAX site has a nice showcase of sites that are powered by ASP.NET AJAX. Some of them are pretty impressive.
It’s not just the 6 sites that you see above on the image.
Take a look at here.
Technorati tags: ASP.NET AJAX, Showcase
~
Read Full Post | Make a Comment ( 2 so far )Aptana – JavaScript IDE
Aptana IDE is an all out IDE for JavaScript development. With the influx of AJAX (read AJAX.NET) stuffs it became a necessity to have a decent IDE for the more boring JavaScript development. Aptana IDE fills in that space pretty neatly.
Here is what Aptana site says about Aptana IDE,
The Aptana IDE is a free, [...]
"What is?" Of The Day – LDAP & ADSI
LDAP, Lightweight Directory Access Protocol, is a generalized protocol for accessing information directories. It is a light-weight, open-source, cross-platform, client-server protocol for accessing a directory service over a network. You can use LDAP to access LDAP-compliant directories from virtually any platform.
In contrast, ADSI, Active Directory Service Interface, is a COM-based programmatic interface specific to Microsoft that abstracts [...]
Visual Studio.NET’s Permanent Clipboard
It’s convenient to be able to store your most commonly used code snippets in the “Clipboard Ring” of your .NET IDE Toolbox tab, but you lose them when you close the IDE. That’s obvious.
However, there is a way to save the code permanently:
Drag and drop the text of your snippets into the General section of [...]
Read Full Post | Make a Comment ( None so far )« Previous Entries









