Create an Excel file in C# without Microsoft Office or Third party plugins

posted in: ASP.NET, C#, Programming, VB.Net, XML 0

How to create an Excel file (XLS / XLSX) in C# without having a copy of Microsoft Office on the server, or other third party plugins installed

Render a Section in a Partial View – ASP.Net MVC

posted in: ASP.NET, HTML, Programming, VB.Net 0

Let’s start with the following configuration to give an example: in a MVC project, you have a “_Layout.vbhtml” file with this code Then, you have a Partial View “ValidationScripts.vbhtml” in the Shared folder with If you call the Partial View … Read More

Convert a DateTime string to a Unix timestamp in VbScript / Classic ASP

To convert a datetime string value like “YYYY-MM-DD HH:MM:SS” to a Unix timestamp (the seconds from 01/01/1970 to the input datetime) You can use a conversion function as the following: Then, to get back the datetime from the Unix timestamp … Read More

Base64 encoding / decoding functions in VbScript / Classic ASP

With the following functions Base64Encode(sText) and Base64Decode(ByVal vCode), You can easly encode/decode a text in/from base64 in VBScript/Classic ASP:

C# code to VB.NET free online converter

posted in: ASP.NET, C#, Programming, VB.Net 1

Simply paste your C# code and this free online utility will automatically convert it to its equivalent in VB.NET. This utility now support .NET 3.5 syntax: http://www.developerfusion.com/tools/convert/csharp-to-vb/ You can reverse code from VB.NET to C# too. 🙂

vb.net Bitmap object locks images (impossible to move/delete jpg/gif files) – .Dispose() Method common problem

posted in: ASP.NET, C#, Programming, VB.Net 0

Many people are in trouble and on forums asking why the .Net Bitmap object does not release an image with its .Dispose() method. The Bitmap object (after its destruction too) seems to lock the image file, then we are not … Read More

How to remove accent marks and german umlauts from URLs and Strings in .NET

I wrote two functions in .NET to remove easly any accent and umlaut marks from a string and to get the equivalent non-accented string, this is very useful to normalize URLs; for example, with the StripAccentMarks() method, from “àbcdèéfghìlmnòpqrstùvzäöüÄÖÜ” u’ll … Read More

Multilingual applications with VB.NET

posted in: C#, Programming, VB.Net 2

In this simple tutorial you’ll learn how to manage different languages for a vb.NET application and the simplest way to access programmatically to the string values in the resource compiled files (*.resx) created by Visual Studio; Adding resource files: First … Read More

1 2