Tuesday, August 21, 2012

Make a ASP.LABEL MultiLine(Wrap text in Label)

Please use below code which makes MultiLine text box appear as Label ans suits the need.


 <asp:TextBox ID="txt1" runat="server" Text="RamanaRamanaRamanaRamanaRamanaRamanaRamanaRamanaRa"
        Wrap="true" Rows="2" ReadOnly="true" Width="208px" TextMode="MultiLine" BorderStyle="None"
        BorderWidth="0" Style="overflowhidden;resize:none;background-colortransparent;" />

Saturday, August 18, 2012

Jago Investor

This books helps you understand the finances better.
Its best for indians to start in the journey of achieving financial literacy.
Manish and Nandish did great job.

Code Complete 2 Book

I found this book suggested by all geeks as best one.
It has core principles of software building which helps to become a better programmer irrespective of the language you code.
I added this book in my reading list.

Monday, June 20, 2011

Exception: "The underlying connection was closed: The connection was closed unexpectedly."

The most important reason might be your connection string.Modify your connection string to the updated database and see how it works like a magic.
The VPN issue may also result it in.Plz check whether your are connected to it.

Monday, April 4, 2011

Make icons background transparent in Windows XP

Please see below link for wonderful explanation of how to do it ?
Click here to know how it can be done !

Monday, March 28, 2011

How to make a Button appear as LinkButton?

.link
{
    text-decoration:none;
    background-color: #FFFFFF;
    background-repeat: no-repeat;
    background-color:Transparent;
    float:none;
    display:block;
    border-style:none;
   
}

use the above css class and you are done !

Monday, February 7, 2011

How to consume a .NET Dll in Classic ASP?

1.Use regsvr32  /u   to uninstall the existing  OLD ASP dll by navigating to the exact path of dll location in command prompt.
   Eg:regsvr32  /u CLib.dll

2. Go to Visual Studio Command Prompt.

3. Navigate to the path where the new .Net Dll (say CLib.dll) is residing.

4. Make the assembly CLibshared by adding it to GAC using below statement
   gacutil –i  CLib.dll 

5. Install the assembly into the registry using below command.
   regasm CLib.dll /tlb: CLib.tlb

6. Reset the IIS using command iisreset(not mandatory)

7. Now we can use our .Net DLL CLib.dll in ASP page.