The New Visual Studio 2015 is finally here

The New Visual Studio Launch event has already started, and you can watch it live here:

https://www.visualstudio.com/en-us/visualstudio-release-event-vs

[Sneak Peek] I just heard a new feature that made me drool – Lambda Debugging!

How to install iOS and Android SDKs for Visual Studio 2013 Premium & Ultimate

I was going to install Visual Studio Community 2013, but it asked me to uninstall Visual Studio 2013. I started checking some demos about Visual Studio Community 2013 (you can check the demo from Channel 9) and noticed that you can install the same tools as in Visual Studio Community 2013 to Visual Studio 2013. So let’s get started.

Continue reading

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 Continue reading

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: Continue reading

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).

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

Response.End()

Response End

This is added after the text needed in the response stream is written using the Response.Write() so no other html or garbage is written in the response stream.

Without response.end() javascript will have the text and the remaining garbage.

[ex. 1] without response.end()

Response.Write(“err”);
…..
result =”err

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” ><head><link href=”../App_Themes/Default/Content.css” type=”text/css” rel=”stylesheet” /><link href=”../App_Themes/Default/Default.css” type=”text/css” rel=”stylesheet” /><link href=”../App_Themes/Default/EmailSender.css” type=”text/css” rel=”stylesheet” /><link href=”../App_Themes/Default/Header.css” type=”text/css” rel=”stylesheet” /><link href=”../App_Themes/Default/Header2.css” type=”text/css” rel=”stylesheet” /><link href=”../App_Themes/Default/Sidebar.css” type=”text/css” rel=”stylesheet” /><title> </title></head><body>    <form name=”form1″ method=”post” action=”WebService.aspx” id=”form1″><div><input type=”hidden” name=”__VIEWSTATE” id=”__VIEWSTATE” value=”/wEPZwUPOGNjY2JiNjJiNWQ5MDI41In2qlnOWzD0wbpAPF80y1dPYTA=” /></div>
</form></body></html>” Continue reading

ASP.Net Menu Control Problem with IE8

When loading a website that utilises the asp:menu control, in the development machine it works fine but on the server (in our case Windows Server 2003 R2) the menu isn’t shown correctly. Instead a blank panel would be viewed. As a temporary solution, the IE8 compatibility button can be clicked, but some styles might not work well with IE7 compatibility. So below please find the patch for asp:menu which can be applied to Windows or Windows Server, to build IE8-compatible ASP.NET WebForms sites…

Continue reading

Quickie | ‘Sys’ is undefined Solution

Today I was trying to call a web service from Java Script using the Sys.Net.WebServiceProxy.invoke function but the following error was loading:

‘Sys’ is undefined

The problem was because the ajax was not being referenced in the website. The solution I found was to create a new website in Visual Studio 2005 and use the AJAX Control Toolkit Web Site Template. When I ran the code again, no error was loaded and everything worked fine!

Calling Web Service From Javascript

Hi my post explains how to call web service frm java script using AJAX.

If the web service class on the server includes a web method that does not return data, you can call the web service without having to handle a response. This is the simplest web method call that can be made from the client. For example, your application has the following web method:

Continue reading