When using an OnSelectedIndexChanged event on a drop down list in an ASP.NET page, the event code wasn’t getting executed. Continue reading
Category Archives: Visual Basic
Outputting CSV from an ASP page
I’ve recently had the need to write an ASP page which outputs into Microsoft Excel- a user clicks on a link to this ASP page and Excel opens up with a new spreadsheet of the data. This is how I did it Continue reading
Network Commands in VB.NET
A couple of useful network commands in Visual BASIC .NET (2005). These are the equivalents of doing ping and nslookup from the command prompt. The variable sIPAddress in these examples is a string containing the IP to test, i.e. "127.0.0.1"
Ping
My.Computer.Network.Ping(sIPAddress)
Nslookup
System.Net.Dns.GetHostEntry(sIPAddress).HostName
Scripted silent install of Visual Basic 6.0
I recently had a need to install Visual Basic 6.0 Enterprise Edition on a number of machines using a batch file script and a silent -unattended – installation process. Given the age of the application I thought this would be quite straightforward and well documented, but there were a number of hurdles to clear on the way so here is my solution.