Microsoft Visual Studio – Fixing a Broken Toolbox (in Visual Studio 2010 SP1)

When starting Visual Studio 2010, it would hang for about 30 seconds trying to load the toolbox. I found this solution online and it worked for me:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++

http://michaelcrump.net/fixing-a-broken-toolbox-in-visual-studio-2010-sp1

I was recently running into a situation where every time I …

Microsoft Visual Studio – How to Strip RTF Data

Dim mRTFData As String = '{rtf1ansiansicpg1252deff0deflang1033{fonttbl{f0fromanfcharset0 Times New Roman;}{f1fnilfcharset0 Arial;}}
 viewkind4uc1pardsb100sa100f0fs24 BLAH BLAH BLAH rdblquoteparparpardf1par}'
 Dim mStrippedofRTFData As String = String.Empty

If mRTFData.Length > 0 Then
   If (mRTFData IsNot Nothing) AndAlso _
      (mRTFData.Trim().StartsWith("{rtf")) Then
      Using rtfTemp As New System.Windows.Forms.RichTextBox()
           rtfTemp.Rtf 

Microsoft Visual Studio – ASP.Net Wrox Professional ASP.NET: In C# and vb – Chapter 19 CascadingDropDown Sample Causing Method Error 500

When debugging, the actual error states:

Unable to cast object of type ‘System.Object[]’ to type ‘AjaxControlToolkit.CascadingDropDownNameValue[]’.

After doing much research on this issue, it appears everyone’s resolution was to ensure that you included the ‘<WebMethod(), System.Web.Script.Services.ScriptMethod()> _’ above the public …

Microsoft Visual Studio – ASP.Net How to Access the UserName Textbox of a LoginView Control’s Login Control and Manipulate the FailureText

Let’s say you have your web.config set to allow the user only 3 attempts to get the password correct when logging in. After 3 attempts, the profile table sets the isLockedOut column to ‘True’. You want to display this to …

Microsoft Visual Studio – ASP.Net How to Make a Hyperlink (or Any Other Control) Visible on Page Based on Role

This article assumes you are using roles and have assigned roles to certain users that log in to your website.

Let’s say I have an aspx page with four hyperlinks. I want HyperLink3 and HyperLink4 to be made visible on …

Microsoft Visual Studio – ASP.Net Dynamic and Static Hover Style Conflict in IE-9 Browser

When working with a menu control, I found that Internet Explorer 9 can’t handle setting both the static and dynamic hover style properties of the menu control. It works fine in Chrome and Firefox, but not IE-9.

To make IE-9 …