Imran Akram's blog

Let's talk about life, technicalities, career opportunities, current affairs and a lot more!

Loneliness is a feeling

  Loneliness is one of the scourges of humanity. It seems to affect everyone regardless of age or ethnicity. Whether you’re a PhD or high school dropout, rich or poor, you’re equally vulnerable. What exactly is loneliness? It is a FEELING that intimacy, understanding, friendship, and acceptance are missing from one’s life. It is a [...]

  • Share/Bookmark

Windows 98: Just made the day.

well, yesterday I was to format my C drive and for that some dumb nut just gave me an idea of formatting it by booting the computer up with a Windows 98 CD, starting with the help of CD ROM Support and formatting the God damn drive. What happend is that it just slipped out of [...]

  • Share/Bookmark

How to change the ownership of a database

You can change the ownership of a database with this statement. It cured another problem that I got, I dont remember the exact statement sp_changedbowner  @loginame =  ‘sa’ ,  @map= false

  • Share/Bookmark

How to determine effective permission of an SQL Server 2005 object?

You can find out the effective permissions on an SQL Server 2005 object by using a function called fn_my_permissions. Here’s what’s written in the books online. fn_my_permissions  Returns a list of the permissions effectively granted to the principal on a securable. Syntax fn_my_permissions ( securable , ‘securable_class’) Arguments securable Is the name of the securable. [...]

  • Share/Bookmark

How to Add Shaded Rows to ListView's Details View

Sometimes it can be challenging to read the Details view in a ListView, especially if the rows are long. This article shows how to add shading to every second row to make a ListView easier to read. As you may know, you can alter the appearance of individual ListViewItem’s such as the Font and BackColor. [...]

  • Share/Bookmark

How to configure SQL Server to use the SQL Server Session Management in ASP .NET?

aspnet_regsql usage for configuring your database for using it for Session State Management in .NET

  • Share/Bookmark

How to activate Line numbers in Visual Studio 2005?

If you want the Visual Studio 2005 text editor to show you the line numbers all you have to do is to expand the Text Editor branch of the tree. Here you can see a list of all of the languages for which settings may be modified. We will enable line numbering for C# code [...]

  • Share/Bookmark

Server Application Unavailable, Registering ASP .NET with IIS

aspnet_wp.exe stopped unexpectedly Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the “Refresh” button in your web browser to retry your request. Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log [...]

  • Share/Bookmark

How to reset all fields of a web form in ASP .NET

Ever wondered whats the easiest way to reset all fields in a web form. well here it is:- public static void ResetFields(ControlCollection pageControls) { foreach (Control contl in pageControls) { string strCntName = (contl.GetType()).Name; switch (strCntName) { case “TextBox”: TextBox tbSource = (TextBox)contl; tbSource.Text = “”; break; case “RadioButtonList”: RadioButtonList rblSource = (RadioButtonList)contl; rblSource.SelectedIndex = [...]

  • Share/Bookmark