UDL – Get Connection strings.

Oh god…. After long long time I remember udl files. Let me share with you. If you want connection string of any database. Just follow below steps:

  1. Create new notepad files.
  2. Save as “temp.udl”.
  3. double click to open “temp.udl” file.
  4. select your database and enter connection details.
  5. click ok and right click to open “temp.udl” in notepad.
  6. Get your connection string.

Enjoy!

Aal Izz Well – 3 idiots

A must must see movie after long long time. This movie is especially for those who are into studies and are just doing study. One has to be well educated instead of well trained. This is the lesson which I got from the movie.

 

200px-Threeidiots2

Read more @ http://en.wikipedia.org/wiki/3_Idiots

Safari : Pop Up Problem.

Once upon a time,  ha ha ha. Hold it. Today itself I was working with pop up window and it was not working in Safari. Why ? Even I wondered. Everything seems to be fine, except except URL.Safari needs a http request to process a page and may be to process some JS 🙂

So after entering a complete URL, like http://localhost/saftest/index.htm, my pop up started running successfully.

Differences in raising events in Visual Basic and C#

Visual Basic and C# differ when raising events. In C#, you must check whether the event is null
before calling it. In Visual Basic, you can omit that check.

Get Absolute path from relative path without using tilde (~)

I hope it is not at all needed to explain how to get absolute path with tilde(~), but sometimes we may need to get absolute path without using tilde(~). Lemme tell you when, its when you pass path in a query string to some URL. At that time you wont get absolute path using tilde(~).

At that time you need to use HttpRuntime.AppDomainAppVirtualPath instead of tilde(~). Simple concat HttpRuntime.AppDomainAppVirtualPath  + path.

Simple huh !

No More Cell/other gadgets Thief :)

Visit : http://www.zdnetindia.com/index.php?action=articleDescription&prodid=9303

.htaccess Editor

We all use .htaccess file for various purposes like URL redirecting, Rewriting the URLs etc. If you do a small mistake in writing rules for this file your entire site becomes unavailable to the visitors and shows 500 Internal server error.

For those of you who don’t know how to edit .htaccess file there is an online tool where you can create code for .htaccess rules for your blog or website.

Editor : http://www.htaccesseditor.com/en.shtml
Source
: http://www.teknobites.com/2007/09/02/htaccess-editor/