For Loop with Negative Step | Quickie

Cannot believe that I’m writing some helpful examples using VB.Net, but that is the language that we’re using at work, so have to adapt now. Next find how to make a loop with a negative step (decreasing step):

Imports System

Public Class MainClass
 Shared Sub Main()
 For intCount As Integer = 10 To 1 Step -1
 'Add the item to the list
 System.Console.WriteLine(intCount)
 Next
 End Sub
End Class
Advertisements

Solution | Unable to write output file ‘…pdb’; unspecified error

Visual Studio 2005 / 2008

During this weekend, I started having a problem when building a solution in Visual Studio. It would load the following error:

Unable to write to output file Solution_Name.pdb

This Visual Studio solution has 8 projects, and a lot of files and folders. I tried several solutions that I found on the net, which worked for others, but none worked for my case including:

  • Delete the .pdb file from the solution – Didn’t Work
  • Delete the Debug folder – Still Didn’t work
  • Delete the whole obj Folder – Nothing Read the rest of this entry »

ASP.Net | Read Values from Javascript

Today I started checking out some videos about Windows CardSpace and ASP.Net for logging in and I saw how he used javascript to get client side input and use it in ASP.Net in the C# code.

First you need to create a HiddenField on your webForm and name it TokenField (any name would actually do)

<asp:HiddenField ID=”TokenField” runat=”server” />

To set the Hidden Field value in JavaScript use the following code: Read the rest of this entry »

CMS | Sitefinity Not Working on Windows 7 64-Bit

To solve this problem, you need to access IIS 7 Manager and make sure that the:

  • Application Pool is switched from Default to Classic
  • Logon User in Classic Application Pool is LocalSystem
  • Enable for 32-bit applications Read the rest of this entry »

Visual Studio | No source code available for the current location

Visual Studio 2005 / 2008

Whilst trying to debug a Stored Procedure, the following error prompted:

There is no source code available for the current location

First you have to make sure that the current user is part of the ‘sysadmin’ Server role (click here for how to).

Websites June Refresh :]

Deep Design Malta

Just updated my websites to be all showing the same theme.. to start the month of June in style 🙂 Previously they only had the logo but now made some touch ups and really hope you like them.

With these designs i’m trying to make an identity for my sites… following more or less the same design principles. For now they only have one page so there’s not much to see… but they are still much better than before 🙂

You can access my websites using the below links..

Deep Design is my main brand and is the one I use when developing websites for clients.

Ciappara.com is the new place that this blog will be moving to. It’s still being developed and will let you know when it’s ready.

Homes.com.mt is a new project that will be launching.. but i’ll have more details on this later 🙂

When I have more updates, I’ll let you know… btw hope you like the design 😉

If you have any comments or suggestions (which I too have many :]) please let me know.

Regards,

Clive Ciappara

Google Event Tracking Failing

Google Analytics Event Tracking

We’ve been using Google Analytics events tracking starting from this year and they are very useful. This week we noticed that website events weren’t being tracked, and haven’t been from the beginning of May.

After checking, everytime we tried to call the pageTracker._trackEvent method, it always returned fail. After searching and testing a bit, we noticed that apparently google made some changes to the trackEvent method.

Where before they allowed the optional_value (the last parameter if the method) to be a string or a number, now it is allowed to be a number only… thus the correct params would be:

pageTracker._trackEvent(‘my_category’, ‘my_action’, ‘my_optional_label’, 14);

Hope this helped some people 😉 It helped me 🙂

Reference: click here