Add a blog post

home » blogs » vivek_iit

Communifire Blogs

CodeAsp.Net"s <strong>ASP.NET Blogs</strong> is more than just a social community for ASP.NET bloggers - we are one of the largest ASP.NET blog directories on the internet. Whether you are looking to search ASP.NET blogs, connect with ASP.NET bloggers, learn more about ASP.NET, or promote your own blog, CodeAsp.Net is for you. Be sure to check back often as we add new ASP.NET blog postings frequently.

Blogs RSS Feed

vivek_iit : Most Recent postings

Dictionary vs Hashtable vs ListDictionary vs HybridDictionary

7/22/2009 5:23:33 AM by vivek_iit   -   0 Comments   -   Views: 2632

Hastables are deprecated now because with .NET 2.0 and above the Dictionary class is introduced which is much more efficient because it does not need to box or unbox data while adding/retrieiving items. ListDictionary should be used when the number of items are small (usually less than 10). Else if you are sure that your list will have more items, than use Dictionary. If you are not sure about the number of items, then use a HybridDictionary .

Read More

Caching in ASP.NET: Velocity Distributed caching Framework

7/16/2009 12:33:50 PM by vivek_iit   -   1 Comments   -   Views: 2983

Many beginner developers do not realize how effcient caching mechanisms can play a big role in increasing application performance. Most developers are accustomed to using the default In-Proc session state, or the Cache object to store the application related data. While such in-built caching mechanisms will work perfectly fine for most applications which do not need to scale to higher levels, it is always better to go for scalable caching options if your application might grow (both in terms of ...

Read More

SQL server install error:One or more of the components being installed are already registered as 32 bit components in the target application.

7/15/2009 12:09:10 PM by vivek_iit   -   2 Comments   -   Views: 2412

Recently I got this error while installing SQL Server 2005 64 bit on a machine where previously SQL Server 2005 32 bit was installed: Failed to install and configure assemblies C:\Program Files\Microsoft SQL Server\90\DTS\Tasks\Microsoft.SqlServer.MSMQTask.dll in the COM+ catalog. Error: -xxxxx Error message: Unknown error xxxx Error description: One or more of the components being installed are already registered as 32 bit components in the target application. You must install the 64 bit versio...

Read More

Abstract classes vs interfaces c#

7/9/2009 8:11:46 AM by vivek_iit   -   0 Comments   -   Views: 2389

When should you use Abstract classes for implementing dynamic polymorphism? and when Interfaces are your best option? Most beginners tend to get confused between Abstract classes and Interfaces, so here is a quick primer: In Abstract classes you can use "abstract" keyword to mark methods which *must* to be implemented in derived classes, and use the "virtual" keyword to create some concrete methods which can be overridden in derived classes. So Abstract classes allow you to create method signatu...

Read More

You must first install one of the qualified Visual Studio editions

6/26/2009 1:44:18 PM by vivek_iit   -   0 Comments   -   Views: 3415

Today I was installing MS Visio Enterprise Architect and got this error the moment the installer started to load: "You must first install one of the qualified Visual Studio editions". Considering that I have already installed Visual Studio 2008 Architectecture Edition, this error was very frustrating...after searching Google I noticed this post which mentioend that the Visio installer looks for either VS 2005 or VS 2003 editions in the registry before proceeding ahead with the install. The post ...

Read More

The 7 Laws of IT Success in a Super-Slow Economy

5/4/2009 4:11:57 PM by vivek_iit   -   1 Comments   -   Views: 2284

The seriousness of the world economy is starting to worry me. Not that it has affected my business one bit. But with billionaire investor George Soros telling the Times of London, "The chances of a depression are quite high," I realize there are lots of IT professionals who are not adequately prepared. How can they be? They're IT professionals, not sales and marketing professionals. And the biggest challenge during these severe economic storms is never about maintaining your technology skills...

Read More

Row associated with the currency manager's position cannot be made invisible

4/1/2009 3:03:21 AM by vivek_iit   -   1 Comments   -   Views: 3927

In your windows forms applicatons, if you want to hide/make inivisible a row of the DataGridView control at runtime, you would assume that this line will do the trick: for (int i = 0; i < dgridView.Rows.Count; i++)   {        if(someCondition)           dgridView.Rows[i].Visible = false;    } But the moment you do this, you will get this error:Row associated with the currency manager's position cannot be made invisible The reason for this particular error is that you cannot make modi...

Read More

How to capture keypress in Windows Forms?

3/31/2009 12:11:43 PM by vivek_iit   -   0 Comments   -   Views: 2847

You can capture any keypress in your Windows Forms based applications using any of these three events: 1. KeyPress: you can capture the key pressed using KeyPressEventArgs.Keychar property 2. KeyDown: 3. KeyUp Now in windows applications, the Key events occur in this order: 1. KeyDown 2. KeyPress 3. KeyUp Note that the KeyPress event is not raised by non-character keys likethe Function keys (F1 etc), so to track them you will need to use the KeyDown and KeyUp events. Let me show...

Read More

Div background image

3/31/2009 9:52:19 AM by vivek_iit   -   0 Comments   -   Views: 6613

In ASP.NET projects, we sometimes use the <DIV> tag's background property as: <div style="background-image: url(../images/background.gif); height: 200px; width: 400px; border: 1px solid black;">Example of a DIV element with a background image</div> We can format it better using CSS files too, for example you can put this style in your CSS file:  #myDiv{    background-image: url(../images/icons/background.gif);} And in your HTML use the <div> tag as: <...

Read More

WebDev.WebServer.Exe has stopped working

3/26/2009 12:24:02 PM by vivek_iit   -   3 Comments   -   Views: 6081

Sometimes your VS might throw this error: WebDev.WebServer.Exe has stopped working , and would stop running your projects. Looking into the event log will show some Socket related exception. There are a few approaches to fix this error: 1. Reboot your machine or go to the system tray and close all instances of the Cassini server 2. If rebooting doesn't work, then try this solution: http://jberke.blogspot.com/2008/07/webdevwebserverexe-has-stopped-working.html 3. Try to launch via cmd.ex...

Read More

Join CodeAsp.Net for FREE Today!

It's fast, easy and free! Submit articles, get your own blog, ask questions & give answers in the forums, and become a better developer, faster.

enter your email address: