Thursday, December 4, 2008

.NET 2005 : Procedure to convert a .cs file to .dll file using csc compiler












1. Open the visual studio 2005 command prompt

2. Type the following command : csc /target:library /out:"<
path>.dll" "<filepath>.cs"

e.g., csc /target:library /out:"D:custom.dll" "D:custom.cs"


Monday, December 1, 2008

ASP.NET: Hide OPEN button in OPEN,SAVE,CANCEL dialog box

To Hide the OPEN button in the OPEN / SAVE / CANCEL Dialog box

We've to add the following tag in the HEAD tag of the ASP.NET html code:

meta name="DownloadOptions" content="noopen"

In the same way if you want to hide the SAVE button add the following tag:

meta name="DownloadOptions" content="nosave"