ASP.NET News from Blogger: Run Tings Proper   Get the feed of: Run Tings Proper

Total News: 38

SOLVED: JavaScript error .reset is not a function

Read this article if you are trying to call reset() on a <form> DOM element but you're getting an error stating .reset is not a function. PROBLEM I was working on some jquery UI code and I w...

SOLVED: Visual Studio inserts a text snippet instead of an EntityDataSource

I had finally gotten around to following the tutorials for an introduction to Entity Framework 4 and when got to the stage that required me to insert an EntityDataSource I hit a stumbling block: The E...

SOLVED: Firebug Inspect Element Keyboard Shortcut Clash

If you want to use the Ctrl-Shift-C shortcut to Inspect Element in Firebug but you also have the Web Developer plugin installed then read on to to find out how to stop them clashing! Backgr...

Did I help? Gauge if your articles are solving real world problems with Google Analytics and jQuery

Its is easy to keep churning out articles and watch your hit count steadily increase but how do you know if you've really helped a developer solve a real world problem? In this article we explore how ...

Tracking scroll depth to reveal content engagement in Google Analytics async snippet

This article investigates a way to track content engagement on your site. By monitoring how far down the page a visitor to your site travels and then recording the data in Google Analytics you can dis...

My Website Design Doesn't Look The Same In All Browsers!

I created a website but now when I look at it in different browsers there are display glitches! What can I do? This is a common issue that developers face. Web browsers have a long history of having ...

How to automatically track events with Google Analytics async snippet and jQuery

This article examines a way to use a feature of Google Analytics called Event Tracking. By using jQuery and the Google Analytics JavaScript API we will automatically track events on your site not seen...

SOLVED - 'srcDomainMulti' is not declared. It may be inaccessible due to its protection level

When converting a project from C# to VB I ran into this compiler error which stopped me in my tracks for about 15 minutes. Just when I gave up and decided to rebuild the page by hand inspiration hit a...

SOLVED: The type or namespace name 'Linq' does not exist in the namespace 'System' - are you missing an assembly reference?

This problem has been cropping up a lot recently - projects will complain of missing namespace's when I open them up and attempt to compile the first time. If this has happened to you then read on for...

SOLVED: Breaking parent web.config dependencies in sub applications

This article explains how to implement a sub application such as a blog in your website without experiencing dependency issues. A common problem that developers experience is when their sub applicatio...

SOLVED: IIS7, validateIntegratedModeConfiguration and inheritInChildApplications clash

This article covers an edge case you might have encountered when using the inheritInChildApplications attribute with a web site hosted on IIS7 and provides two possible solutions to your problem. Sc...

Tracking scroll depth to reveal content engagement in Google Analytics

This article investigates a way to track content engagement on your site. By monitoring how far down the page a visitor to your site travels and then recording the data in Google Analytics you can dis...

SOLVED: Error 1 Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks

This is a simple looking error message that is deceptively hard to track down. Thankfully if you're having this problem then this article should get you back on track without spending hours scratching...

SOLVED: Could not load type 'System.Web.UI.ScriptReferenceBase'

Getting problems when you upload your Ajax Control Toolkit powered website up to your server? Read on for a quick and easy solution! Scenario If you have added some of the Ajax Control Toolkit exte...

SOLVED: "Visual Studio setup cannot run in compatibility mode." error when attempting to uninstall Visual Studio 2010 Beta 2

If you are having problems upgrading from Visual Studio 2010 Beta 2 to Release Candidate (RC1) then hopefully this will get you back on your way. Scenario When trying to get rid of Visual Studio 2...

SOLVED: Compiler error CS1519: Invalid token 'void' in class, struct, or interface member declaration

This one has cropped up a couple of times in my development activities recently, but with just enough of a gap for me to have forgotten the solution and I had to figure it out again. It happens in si...

Reading the ProviderUserKey when using the SqlMembershipProvider

The ProviderUserKey gives access to a unique identifier for each of the members in your membership data store. If you're doing a large amount of lookup's or want to cross link to another table you wil...

SOLVED: TF31003 error when trying to connect to Team Foundation Server 2010 Beta 2

Welcome searchers! This post is not exactly light reading for the casual .net enthusiast so I will presume that if you're reading this you have probably landed here via a search engine after having a ...

How to automatically track events with Google Analytics and jQuery

This article examines a way to use a feature of Google Analytics called Event Tracking. By using jQuery and the Google Analytics JavaScript API we will automatically track events on your site not seen...

Update - VS2010 Beta 2 Validation ($SCHEMA$): Element is not supported

Note: This is an update to an earlier post based on feedback that I have received from various commenter's. If you have adopted beta 2 of Visual Studio 2010 then you might have spotted a large amoun...

Easily extracting links from a snippet of html with HtmlAgilityPack

The HtmlAgilityPack is a powerful library that makes screen scraping in asp.net a breeze. This is the second in a continuing series where I demonstrate a way for you to extract all the links from a sn...

VS2010 Beta 2 Validation ($SCHEMA$): Element is not supported

Note: Updated advice is now available over in this post explaining how to get around this problem without resetting your configuration. If you have adopted beta 2 of Visual Studio 2010 then you might...

I bet you didn't know that adding custom attributes to your web.sitemap was this easy!

The site map file is a great place to store extra snippets of page-specific information. In this article we will explore how easy it is to add custom attributes to a site map by creating a user contro...

Advanced url rewriting for the rest of us - how to create a custom transform in UrlRewriter.net

Introduction At first glance url rewriting can be a daunting task, but today we will see that it doesn't have to be. Every developer desires clean urls for their apps but because its not built into ...

Learn exactly how you can restore a .bak file in SQL Management Studio with this step-by-step guide

This is a step by step guide which will show you how to restore a .bak file in Microsoft SQL Server Management Studio. This technique can be used to move databases between servers or restore an existi...

Here's a quick way to add English counties to your next sign-up form

In the never-ending quest to speed up development and reduce the chance of user error I have packaged up a data source which can be used to populate your controls with a complete list of English count...

Membership API documentation amended on MSDN

In preparation for tonight's post I have just added some usage examples to the MSDN Membership API documentation. They are pretty straightforward but if you have any feedback on them then you can just...

All typed up and nowhere to post

Not long after I started this blog I decided I wanted to start submitting my content to news sites. My motivation behind this was that there wasn't any point writing this content if nobody saw it and ...

A simple way to add some flair to your site with a favicon

I am going to explain how you can get that little icon that appears next to the url in the address bar on many of your favourite sites. You will also find it next to its name if you add it to your fav...

The new Google-friendly 301 redirects in asp.net 4.0

We are going to take a glance at one of the many new features in asp.net 4.0 and expand our redirection repertoire by embracing the 301 redirect. Asp.net 4.0 is nearing closer and the amount of hype ...

Why asp.net accidentally corrupts your base64 encoded strings if you pass them as a query string (its nothing personal)

We are going to investigate one of the gotchas when using base 64 encoded data with the asp.net Request.QueryString array. If you try to extract a base64 encoded string from a query string then it wi...

Dynamic meta description and keyword tags for your MasterPages

Today we're going to look at a technique for dynamically inserting meta tags into your master pages. By taking control of the head tag and inserting your own HtmlMeta you can easily customise these ta...

How to revert the close tab functionality in Firefox 3.5 back to 3.0

In the Firefox 3.5 release the default close tab behaviour has been changed. The new behaviour is to immediately close the browser when the last tab is closed. This mirrors the way that Internet Expl...

Using the RequiredFieldValidator attribute InitialValue to control valid selections in your DropDownLists

The RequiredFieldValidator is a common utility in the asp.net coders validation toolkit. Its simple to use and probably represents one of the most common requirements for validation - that data must b...

The secret newline symbol for html encoded controls

ASCII Character 10 is an under loved character in the ASCII set. It lurks around there right at the beginning in the non-displayed range and most of the time you use it you don't even realise it. Wel...

Easy default roles for new users with the CreateUserWizard

Here's a scenario for you: You have an admin panel and you want to let the administrators of the site create extra admin accounts when they need to. Your site uses asp.net membership and roles and you...

Yes you can have your javascript style curly brace positioning if you really want to

This question came up on the forums the other day. Basically somebody wanted to change the auto formatting features of Visual Studio so that their curly braces didnt get pushed down on to their own li...

An easy way to keep your dev and live server urls in sync

A common setup for your live server is to run your website on the root of the domain. By this I mean if you wanted to go to the homepage of your site you would type in http://www.example.com/ When ...

View Other bloggers