Feeds:
Posts
Comments

Archive for the ‘Uncategorized’ Category

Microsoft just release a new release of the smart client software factory
http://msdn2.microsoft.com/en-us/library/aa480482.aspx
This was by the end of May 2007.
a Few days later , they released the first preview edition of new project code named “acropolis”, which they say is “is a set of components and tools that make it easier for developers to build and manage modular, business focused, client .NET applications”
http://windowsclient.net/Acropolis/Default.aspx

The point is that SCSF (Smart Client Software Factory) will be phased out and replaced by the project acropolis.

The controversial question now is:
Is it worth the time to learn about SCSF when everyone knows it is doomed to be phased out anyway?

Read Full Post »

AJAX Toolkit

The different components included in the ASP.NET 2.0 AJAX toolkit can be found here

The toolkit provides different components used to enhance the User experience using AJAX. It is an open source project hosted at the Codeplex website (ToolKit home page)

Read Full Post »

 

One trick in setting the session time out for Web applications in IIS 6.0.

you may notice that no matter how long you set the session timeout to be, it will timeout after 10 or 20 minutes.

The reason for this is that by default web applications are using an application Pool ( new feature in IIS 6.0 that wasnt there in the IIS 5.0).

The application pool- to save resources- will shut down the worker process after being idle for a certain amount of time( default 20 mins)

It will do so regardless of any session timeout in any web application using this application pool.

 

To change this, Point to the application pool used by the web app in question, right click “properties” goto “performance” tab and under the “Idle Timeout” panel, either change the time period or uncheck the “shut down after…”

Read Full Post »

Recently came across a nice and easy way to retrieve List of Table and Views from SQL Server database.

The idea is to use SQL statement to query some system tables holding the schemas

using

SELECT RTRIM(tbl.table_name) AS TableName
FROM INFORMATION_SCHEMA.TABLES tbl
WHERE tbl.TABLE_TYPE = ‘BASE TABLE’

Will get all Tables in a database.

Using “VIEW” instead of “BASE TABLE” will retrieve the List of Views.

 

And to go one step further, we can get details of columns in each table using

 

SELECT *
FROM INFORMATION_SCHEMA.COLUMNS col
WHERE col.TABLE_NAME = ‘TableName’

The will show details of each column ( type, nullable or not, max capacity, ID or not, default value, etc.)

Read Full Post »

A revolutionary new way to do command line anc batch files for the windows OS. PowerShell is able to deal with “Objects” rather than mere strings and builds on the .NET Framework 2.0 Objects.

A nice series of webcasts can be found here (http://www.microsoft.com/technet/scriptcenter/webcasts/ps.mspx)

Read Full Post »

SQL Server 2005 SP2

 

Service Pack 2 is released for SQL server 2005.

It is available Here

Read Full Post »

Google Code Search

Google launched a new service to search for source Code. It is part of google labs.

http://www.google.com/codesearch

Read Full Post »

 

There is a subtle note about using the “foreach” enumeration. The “foreach” uses an enumerator that assumes that the number of elements in the collection will remain intact during the enumeration.

If this changes, an exception “Collection was modified, Enumeration Operation may not execute”.

 

what that means is:

you can NOT do something like

foreach(datarow row in table.rows)

{

if (some condition)

{

     table.rows.remove(row);

}

 

trying to remove a row form within the enumeration will throw an exception.

 

 

A better way to do it is :

 

for(int x =  table.rows.count-1; x>=0; x– )

{

if (some condition)

{

     table.rows.remove(row);

}

Note that the for loop is a decrementing loop (x–) to avoid having problems with the rows position when one or more rows are removed from the collection

Read Full Post »

I hve came across an issue today:
I wanted to copy some datarows from one table to another.

I tried first to do this:

foreach(DataSetSource.Row row in tableSource)
{
tableDestination.Add Row(row);
}
It compiled with no errors but at run time threw exception saying “row already belongs to another table”

So I found some other way to do it :

foreach(DataSetSource.Row row in tableSource)
{
tableDestination.Rows.Add(row.ItemArray);
}

and this way it worked just fine.

Read Full Post »

CodeFetch

 

CodeFetch.com  is a new web site that has a search engine where you can look up code used in programming books.

I found it first at  Chris Sell’s Blog

http://www.sellsbrothers.com/news/showTopic.aspx?ixTopic=2070

 

Interesting:)

Read Full Post »

« Newer Posts - Older Posts »