Category Archives: vb.net
Setup POST REST Webservice with ASP.net and VB.net
Post Add new REST Service into existing ASP.net web application shows how to setup a REST Service to GET data from the Webservice. Typically you also want to write some data back to the server, e.g. when you create a new record you should send a POST request. Here is a description how to do […]
Add new REST Service into existing ASP.net web application
If you want to create a new webservice, you might use the new de-facto standard REST instead of previous solutions from Microsoft like SVC or ASMX. So here are some helpful information if you want to add your first REST Webservice into an existing ASP.net application.
Download Enterprise library log file which is currently in use by asp.net
I use Microsofts Enterprise Library in many web projects. The modules are very easy to use, so e.g. you have a log for your website up and running in minutes. The problem I faced: I write the log into textfiles, and of course they are always in use. I could download them via FTP and […]
Replace string variables with item values from datarow
Here is a short function which is helpful if you want to put variables from a datarow into a text string. This could be used e.g. if you want to create something like a bulk letter or else. You could define a text like ‘Dear [FirstName] [LastName], …’. Variables are enclosed in square brackets. If […]
Download images and store them in isolated storage (Windows Phone 7 and 8)
For my windows phone app I need to retrieve some images from the internet. Windows Phone automatically caches them as long as the application is alive, but as soon as the application is stopped and restarted the cache is gone and images need to be retrieved again. I’ve found several proposals (e.g. One-time Cached Images […]
How to use Microsoft Exchange WebServices (EWS) with vb.net
If you use Microsoft Exchange 2007 SP1 or later you use Microsoft Exchange WebServices (aka EWS) to access users data, e.g. all appointments from Calendar. If the user is already logged in using Windows Credentials and these are passed in the browser, no additionall login is required. That’s convenient for the user, compared to e.g. […]
Example how to use Selenium with Visual Studio and Visual Basic.NET
(The code in this example is Visual Basic.net but could of course be easily transferred into C#). So we have set up Selenium (as described here) and followed some general tips (as described here). Now it’s time to write our first unit test in Visual Studio using Visual Basic.net and Selenium. We will do a […]
Use Selenium for WebTests with Visual Studio
Unit Tests in Visual Studio are great for testing backend functionality, but it does not help if you want to test websites. Searching around, there are several tools to fill this gap. My favorite is Selenium. It has a Firefox plugin for fast and easy web tests. And it has a WebDriver Version. Using the […]