skmMenu 2.3 IE 8 (beta 2), Google Chrome, FF 3.0.1, IE 7 (Sample Code)

skmmenu September 2nd, 2008

Here is sample app + screen shots taken from 3  4 different browsers using skmMenu 2.3.

This sample code is developed using VS 2005 + dotnet 2.0 framework. To download the sample Code click on this link.  sample-skmmenu231

The screenshots shown below are taken using this sample code. Hope this helps.

(Also tested on Google Chrome…) :)

FireFox 3.0.1


IE 7.0

 

IE 8.0 Beta 2

 Google Chrome 0.2.149.27 (Win XP)

 

 

If you enjoyed this post, make sure you subscribe to my RSS feed!

Windows Remote Desktop : Too many users connected (RDP)

Tips and Tricks, Tools, Windows July 20th, 2008

In a multi user environment you may see this message when other users forget to disconnect their connection.

To override this problem, you can use the following command from command prompt

START > RUN > mstsc /console

(some services may fail when you login this way.)

After logging in, goto Terminal Services and delete/remove the idle sessions.

Logoff and then connect the normal way.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Free Softwares (Windows) to improve your Productivity

Softwares, Tools, Windows July 11th, 2008

If you are a windows user (by wish or by fate) and looking for “Free” softwares to improve your productivity, here you go. I have been using them for a while and so far didn’t have any issues with them. Almost everything works on Vista.

Small print: These softwares are free as of today and I’m not marketing these products.

Use Original Windows and get all the latest patches and upgrades from www.windowsupdate.com

Antivirus:
AVG Antivirus (http://free.avg.com/)

Antispyware:
Windows Advance Care : http://www.iobit.com/advancedwindowscareper.html?Str=download
Lavasoft Ad-aware http://lavasoft.com/single/trialpay.php

Browser:
IE comes with Windows.
Mozilla fans, use Firefox (http://www.mozilla.com/en-US/firefox/)

Browser Addon:

For Internet Explorer 7  http://ie7pro.com/
For Mozilla https://addons.mozilla.org/en-US/firefox/

Zip/Unzip:
7-Zip http://www.7-zip.org/

PDF Creator:
Primo PDF  http://www.primopdf.com/

PDF Details Remover: If you look at Properties (File > Properties) of a PDF document, sometimes it has more personal information like your username and some document details. If you want to remove them before sending it to others use this freebie.

PDF Info http://www.bureausoft.com/products.html

Office Suite:
Open Office http://download.openoffice.org/index.html

Toolbar:
Google Toolbar  http://toolbar.google.com

Disk Management/Overview:
JDiskreport  http://www.jgoodies.com/freeware/jdiskreport/index.html

FTP:
Core FTP http://www.coreftp.com/

Uninstaller: Its much much better than windows Add/Remove programs.
Revo Uninstaller http://www.revouninstaller.com/

CD / DVD Burner:
CDBurnerXP  http://cdburnerxp.se/

Play video files:

Windows Media Player (free with Windows)�
Get free upgrade http://www.microsoft.com/windows/windowsmedia/default.mspx

Real Media Player (www.real.com)

Divx Codecs and Player (helps to play some wmv or avi files)  (http://www.divx.com/)

Post It Notes: For sticky notes users

Hottnotes http://www.hottnotes.com/

Screen Capture: Read my other post to know what this software is capable of.

Easy Capture http://www.xydownload.com/easycapture-19.html

Quick Navigation: Goto any directory / drive just by right clicking

Folder Guide http://www.freeware365.com/desktop/folderguide.htm

If you enjoyed this post, make sure you subscribe to my RSS feed!

Asp.Net Error : Could not load type

Asp.Net, Error Messages July 2nd, 2008

Could not load type  Namespace.Class or Global.asax

This is one of the annoying error messages in an Asp.net application. 

Few verifications can fix this error.

1. Make sure you have right Asp.net version in IIS

2. Make sure the Application Root Namespace and Inherits=”" (on .aspx page) are the same (including case)

3. If you are using Multiple Projects (Project > Sub Project) make sure the Build Output Path (Project Properties > Compile) is pointing to Main application.

If you have come across any other scenario feel free to write it.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Could not open connection to the host, on port 25: connect failed

Ports, SMTP June 11th, 2008

Error Msg : Could not open connection to the host, on port 25: connect failed

What does this mean ?

You web application is not able to reach the SMTP Host using Port 25.

Possible Reasons…

1. If Web Server itself relays the email check for SMTP service under Services and as well as under IIS.

2. If Email Relay server is different make sure your web server is able to reach it (by pinging).

2a. Verify with admin, whether Port 25 is open.

3. Check Firewall (software or firewall server) on your server (to allow outgoing connection)

4. Check firewall (software or firewall server) on Relay server (to accept incoming connection from your server).

5. Check the Virus Scanner on your server. Some scanners like MCAFee / Norton disables mass mailing by default.

If you have come across any other scenario please add it in comments.

If you enjoyed this post, make sure you subscribe to my RSS feed!

How to Save Column Names with Results : SQL Server 2005

Database, SQLServer 2005 June 11th, 2008

Whether you are copying query output from SQL Server Management Studio or Saving result as .csv file, if you need to save the column name or column header along with result.. here is simple option you have to enable.

Goto Query > Query Options or Press CTRL + Shift + O

Goto Option Grid Under Results

Check the box which says “Include column headers when copying or saving the results”

Click OK.

Run the query and save result as .csv or copy paste to excel with column headers. :)

Save Column Header With result

If you enjoyed this post, make sure you subscribe to my RSS feed!

How to Save Query results as .CSV or Excel file using SQLServer 2005 Studio

Database, SQLServer 2005 June 11th, 2008

Here is the simple way to save query results as .csv or .xls  file using SqlServer Management Studio.

Execute your query

Example : Select * from AdventureWorks.Person.Address

Right Click on Left top corner

Select “Save Result As” to save as .csv file

OR

Select “Copy” and paste the result in an Excel sheet.

Save As CSV or Excel

If you enjoyed this post, make sure you subscribe to my RSS feed!

Screen Capture Utility with quick editing (Easy Capture)

Softwares, Tools May 13th, 2008

For screen capture I have been using Cropper  which is very good freebie with few interesting plugins.

It just lacked two features which I always wanted.

1. “Editing” the cropped screen shot.
2. Capture areas which needs to be scrolled up/down.

Even to draw a simple arrow, or write a comment I have to open bulky Photoshop and make changes so that I wont lose the image quality.

Today I accidentally found this great Freebie “Easy Capture” (http://www.xydownload.com/easycapture/)

It also allow you to edit the screen captures and add text, draw lines/arrows and even balloon stamps.

It has several kinds of Capture modes

  1. Capture Full Screen
  2. Capture Selected Region
  3. Capture Screen Scrolling Windows
  4. Capture Active Window
    and so on..

Along with this it also has some image editing capability like Rotation, Adjust Brighness / Contrast, Image Filters and lot more..

Its absolutely FREE and my virus scanner / spyware cleaner didnt complain about it. :)

Give it a shot I bet you will love it.

DOWNLOAD

Sample Image

EasyCapture

If you enjoyed this post, make sure you subscribe to my RSS feed!

How to disable Right Click Menus

Tips and Tricks, Web Coding May 12th, 2008

This is popular question asked in many tech forums / QA pages.

Simplest way to turn Off the Right Click is

Add the atttibute   onContextMenu = “return false”

Ex :

<body onContextMenu=”return false”>

Tested this on

IE 5.0 and above / Firefox 2.0 and above.

PS: This doesn’t alert users with any warning or error messages when they right click. By warning them we dont want to rub their ego to find a solution.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Handling multiple configuration settings (Development, Staging, Production) gracefully.

Asp.Net, Web, Web Coding May 1st, 2008

In Asp.net 2.0 multiple connectionStrings & appSettings can be handled very easily using the attribute “configSource”

create a new xml file devAppSettings.config under a new folder myConfigsettings

<?xml version=”1.0″?>
<appSettings>

  <add key=”uploadfolder” value=”C:\test\UploadDocs”/>

  <add key=”domainname” value=”devdomain”/>

</appSettings>


create a new xml file devconnectionStrings.config under a folder myConfigsettings

<?xml version=”1.0″?>
<connectionStrings>

  <add name=”nwind” connectionString=”Data Source=(localhost);Initial Catalog=nwind;User Id=sa;Password=sa;”
    providerName=”System.Data.SqlClient” />

</connectionStrings>


now modify web.config

<connectionStrings configSource=”myConfigsettings\devconnectionStrings.config”/>

<appSettings configSource=”myConfigsettings\devAppSettings.config” />
Similarly you can create as many config files for testing, production and change the name in Web.config

tstAppSettings.config

prdAppSettings.config


Tip: Unlike web.config,  these config files wont kill the session of current users if you accidentally enter a space and save the file.

If you enjoyed this post, make sure you subscribe to my RSS feed!