Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

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 …