Archive

Posts Tagged ‘.NET’

Mono, .NET for Linux,

December 14th, 2009 Jimmy No comments

mono .NET for Linux
Mono is a Novell and Microsoft sponsored effort to bring the .NET framework to Linux. Microsoft has partnered with Novell to provide the tools and libraries necessary for .NET development on the Linux platform. Currently the Mono project supports the .NET framework 3.5 to include WinForms 2.0. Some of the new technologies such as Silverlight and WPF have yet to make it into the Mono stable releases but the mono team told me that they are tracking Silverlight 3.0 and 4.0.

Hello,

No, you do not need to get any licenses for your customers if you develop with Moonlight.

Yes, Moonlight is tracking Silvelright 3 and 4.

On Fri, Dec 11, 2009 at 4:51 PM, wrote:
Sender: jimburnettva@…….

Message:

Do I need to get a license for my customers websites if I develop in Moonlight. Also, will Moonlight support SilverLight 3.0 and 4.0?

Thanks
-Jim

Write .NET programs for Linux with MonoDevelop.

December 14th, 2009 Jimmy No comments

MonoDevelop is an IDE primarily designed for C# and other .NET languages. MonoDevelop enables developers to quickly write desktop and ASP.NET Web applications on Linux. MonoDevelop makes it easy for developers to port .NET applications created with Visual Studio to Linux and to maintain a single code base for all platforms.

I have personally used MonoDevelop and I must say it has come along nice sense the first versions. There is now a GUI IDE that lets you easily develop applications via drag and drog Visual Style development. This makes really easy and rapid development for Linux, Windows and even MAC. Another cool feature is that your programs will run on all three major platforms with virtually no code modification and all Microsoft .NET!

The Windows version of MonoDevelop is located here. You’ll also need to install the GTK# which is located on the same page.

SharpDevelop, a free .NET development environment.

December 11th, 2009 Jimmy No comments

#develop (short for SharpDevelop) is a free IDE for C#, VB.NET and Boo projects on Microsoft’s .NET platform. It is open-source, and you can download both sourcecode and executables from this site. I have personally used SharpDevelop in many free and commercial products I have developed. SharpDevelop provides many features that the Visual Studio Pro products offer but Visual Studio Express editions don’t. However, the product is not developed by Microsoft.

If you are looking for a Visual Studio IDE but just can’t afford the Visual Studio Pro licensing right now, give SharpDevelop a try.

Categories: General Tags: , ,

How to download web content with .NET.

December 10th, 2009 Jimmy No comments

This morning I created another video tutorial, this one on downloading web content to use inside your .NET application. The tutorial goes over downloading content with the WebClient class as well as a brief intro to multithreading with the BackGroundWorker class.

 

Read more…

Uploading files to a web server using Visual Basic.

December 10th, 2009 Jimmy No comments

Do you need to upload a file to your php web server from a .NET application? I did, and I found that it was actually pretty easy. Basically the upload.php file works the same way as a basic HTML website form. You simply do an HTML form post from within your .NET application.

The source code for the VB.NET application:

Dim WC As New System.Net.WebClient

Dim uriString As String = “http://www.yourwebserver.com/upload.php”

Dim fileName As String = “c:\somefile.txt”

Dim responseArray As Byte() = WC.UploadFile(uriString, “POST”, fileName)

MsgBox(System.Text.Encoding.ASCII.GetString(responseArray))

The source code for the PHP upload.php script:

<?php

$uploaddir = "/home/webspace/htdocs/uploads/";

$uploadfile = $uploaddir . basename($_FILES['file']['name']);

if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile)){

echo "File Uploaded!";

}else{

echo "Problem uploading file.";

}

?> 

Call the .NET code above to upload a file. Make sure you have a writable directory on your php web server. The application should throw a message box up with the results of upload.php. ( Basically whatever upload.php echo’s back. )

Categories: Programming Tags: , , ,

BackgroundWorker Class Howto.

August 22nd, 2009 Jimmy No comments

Well I wanted to go multithread in my .NET applications and my friend Joel gave me a mini class that could give anyone a head ache. What he taught me worked, and was the thing to do in the days of Visual Studio 2003, but I explored the new Background worker class, new to Visual Studio 2005.
Read more…

Categories: Programming Tags:

How to post html form data with C# .NET.

June 13th, 2009 Jimmy No comments

In a program I made in C# .NET I needed the ability to post data to a PHP script. I wanted the data to be posted as if I was filling out the form on a web page. After trying a few different methods of doing this, mostly just putting the data in a query string, I found this method to work the best. It uses a true HTML POST.
Read more…

Categories: Linux Howtos Tags: , ,

How to run .NET programs in Linux.

June 10th, 2009 Jimmy No comments

mono-logo - How to run .NET applications in Linux.If you are a software developer you may or may not know that you can run your .NET 1.0 and .NET 2.0 applications natively in Linux. Even Windows.Forms (GUI Programs) programs can be run natively, making .NET a great and easy tool for cross platform development. Read more…

Categories: Linux Howtos Tags: ,