Ajax .Net TabControl In IE: 1 Pixel Gap Between Tab Header and Body

Ok, so this was weird and took a while to track down. After setting some styles for a TabControl, a 1 pixel gap appeared between the tabs in the header of the control and the tab body: Firefox had no issue as usual. After the traditional flurry of setting margins and padding to 0 on every blo... [More]

IIS 6.0 - HTTP 404 - File not found Internet Information Services

I've come across this problem a few times and the solution is frustratingly simple and not so obvious given the error message, so I'll note it here. After checking the obvious (making sure the file exists in the location mapped to the virtual directory) I found this support article from Mi... [More]

Quickly and Easily Take Your ASP.Net 2.0 Web Site Offline For Maintenance

I found this handy feature of the ASP.Net 2.0 Framework today: If you want to disable all access to your ASP.Net 2.0 web site you can just place a file called App_Offline.htm in you root directory. All requests to any folder of the site are directed to this page, so you can write a friendly 'Dow... [More]

ASP.Net AJAX ModalPopupExtender: Performing an Asynchronous Postback

The ModalPopupExtender in the AjaxControlToolkit is great for showing a modal dialog in ASP.Net web sites. Recently I needed to have my dialog perform some server-side code when the user hit the 'Ok' button. This would require a postback which I wanted to be asynchronous so it would be sea... [More]

Reference Custom Controls Located In App_Code Folder

You can add references to assembly namespaces in your web.config to avoid having to register controls on every .aspx in your web site: [code:xml] <system.web>     <pages>         <controls>       &... [More]

Running ASP.Net AJAX And The Ajax Control Toolkit From Javascript Source In .Net 2.0

I've found myself in need of debugging the javascript for the Ajax toolkit controls (AjaxCotnrolToolkit.dll) and in some cases the ASP.Net AJAX libraries. Here's how to set up an existing ajax-enabled web site to run from source code. This is intended for people using the Ajax framework... [More]

Hashed or Encrypted Passwords Are Not Supported With Auto-generated Keys - Custom Membership Provider

I got this error when implementing a custom membership provider for which I grabbed the code from this MSDN article.   When I tried to login through ASP.Net's Login control I got the following error:   "Hashed or Encrypted passwords are not supported with auto-generated keys... [More]

Paypal Donate Button Doesn't Open In ASP.Net Web site

The html code that Paypal provides for donate buttons doesn't work when inserted directly into an ASP.Net web form. Because the Paypal form is nested inside the main <form> tag, when we click the button the page posts back to itself and effectively just refreshes. One way to get arou... [More]

An Incremental TextBox With The Help Of ASP.Net Ajax Controls

In a recent web project I had a requirement for incremental searching - for each character entered into a text box we need to call a search function on the server and update a list displayed in a div in the browser. ASP.Net and a bit of Ajax makes this task quite simple. Calling The Server-Si... [More]

Sys.ArgumentNullException: Value cannot be null. Parameter name: postBackElement

Update: After looking into this a bit further I found the problem doesn't exist in the Microsoft Ajax Library 3.5 (the same library bundled with ASP.Net 3.5). The same fix I propose here is implemented in that version...go me! Bill Gates must read my blog ;-P. So if you can upgrade, go for tha... [More]
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010