LocalHost is not working on firefox browser ?


If you are running asp.net application, it is working fine with IE but not running on firefox browser then you can fix like this

1. Go to Tool
2. Go to Network
3. Go to Setting
4.Select other option excepet “Use System Proxy Setting”

Free ebooks on microsoft technology


Here is the list of excellent free ebooks on microsoft technology

Microsoft Technology free ebooks

How to create a secure web based project using asp.net ?


Here is the one of excellent ebook written by Troy Hunt. How to create a complete secure web based project using asp.net and what are the common mistake developer will do while developing the web application.

You can download this free ebooks from his blog


and Ebook download Url

How to use Local Storage and Session Storage Feature of HTML 5.0 ?

Using HTML 5.0, Webpage can store data locally within the user’s browser . Previously I was possible only by using cookie concept but there was storage problem. Many browsers have size limit of 4,096 bytes for a single cookie. But using “local Storage” we store upto 5mb data on browser.

For storing data there are 2 options available
a. Using Local storage : Store data with no expiration date.
b. Using Session Storage : Store data for one session only

Syntax for using Local Storage using Javascript

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LocalStorage.aspx.cs" Inherits="LocalStorage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <script type="text/javascript">
        function SaveData() {
            if (typeof (Storage) !== "undefined") {
                window.localStorage["myKey"] = document.getElementById("txtName").value;
                alert("Data has been Save in LocalStorage");
            else {
                alert("Sorry this browser doesnot suppot HTML5");

        function FetchData() {

            document.getElementById("txtOP").value = window.localStorage["myKey"];
    <form id="form1" runat="server">
    <asp:TextBox ID="txtName" runat="server" />
    <br />
    <br />
    <asp:Button ID="btnSubmit" runat="server" OnClientClick="SaveData()" Text="Submit" />

    <br />
    <br />
    <asp:Button ID="btnDisp" runat="server" OnClientClick="FetchData()" Text="Click here to Fetch Data" />
    <br /><br />
    <asp:TextBox ID="txtOP" runat="server" />

Note Syntax will same for SessionStorage.

How to change a column of table without dropping that table in SQL Server 2008 ?


You can change a column of table without dropping that table in sql server 2008 like this

Step 1: go to Tools >> Options. In the little window, click on “Designer”.

Step2: Uncheck “Prevent saving changes that require” like this image

stored procedure execute.nonquery-String[1]: the Size property has an invalid size of 0


Recently while calling the store procedure using Output Parameter in asp.net, I was getting this error,

String[1]: the Size property has an invalid size of 0

There was returning the values as string from SP. I solverd the error by giving size of “SqlDbType.NVarChar” like this

using (SqlCommand cmd = new SqlCommand(“Test_Delete”, con))
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue(“@QmsId”, objBE.qmsId);
cmd.Parameters.Add(“@FileUrl”, SqlDbType.NVarChar,1000).Direction = ParameterDirection.Output;
//cmd.Parameters.Add(“@FileUrl”, objBE.fileURL);
fileUrl = cmd.Parameters[“@FileUrl”].Value.ToString();
return fileUrl;

HTML 5 Plugin for VS 2008 and 2010


It is not mandatory that only VS 2010 Sp1 and above will support HTML 5. Now you can also use in VS 2008 and 2010.

You can download from here HTML 5 Plugin