Yearly Archives: 2009

67 posts

Windows 7 Beta Kicks Vista

TweakTown did a performance comparison between Windows 7 Beta and Vista on SSD and the results show that Windows 7 Beta outperforms Vista, but how about from a standard user’s point of view? Is it easy to install and use? How compatible it is with other applications? That is the reason I wrote this post. I have used Windows 7 Beta build 7000 for two weeks and I have to admit I am surprised how […]

Not well-formatted server control freezes up Visual Studio .NET 2003, bug?

1. Add a new web form in Visual Studio.NET 2003, say Webform1.aspx 2. Switch to the HTML view of Webform1.aspx, then add a line as follows: <asp:Label=”lblFirstName” Runat=”server” CssClass=”label-cell”>First Name:</asp:Label> Note: the “ID” and the space before “ID” are missing. 3. Switch to the Designer view, Visual Studio.NET 2003 freezes up. 4. Launch the Process Explorer and notice the CPU usage of Visual Studio.NET 2003 is around 45-50%. Same result with other server controls. You […]

Manually remove Visual SourceSafe control from a solution

There are different ways to remove the Visual SourceSafe control from a controlled solution, and the easiest way is to use the built-in Unbind feature in Visual Studio: select the solution from the Solution Explorer, then open File menu and select “Source Control” then “Change Source Control”. When Change Source Control window loads up, check all the projects in the project list and click “Unbind”, then confirm your action and finally exit out. Now the […]

FCKEditor Configuration in ASP.NET

In my previous post, I demonstrated how to install and integrate the FCKEditor control, an open source, rich format text editor, with ASP.NET. The installation and integration are actually easy, and if you followed through the previous post, you should have a screen like this after you run the demo project: The first thing came to your attention when you see this page might be, there are too many toolbar items in the editor, how […]

FCKEditor integration with ASP.NET

0. Why I wrote this post? FCKEditor is an open-source, rich text editor for the web application, its features include multi browser compatibility, XHTML1.0 output, CSS support, font and text formatting, image insertion with upload and server browsing, table creation and editing, spell checking, toolbar customization, and more. It also integrates with many major web application languages, such as ASP, ASP.NET, PHP, Java, ColdFusion, Perl, JavaScript and more. Although there is a developer’s guide on […]

System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% … %>)

I got this error when I was working on a small AJAX demo project the other day. In this project I only have two TextBox controls and two AJAX CalendarExtender controls: one text box is for a begin date entry controlled by one CalendarExtender, and the other text box is for an end date entry controlled by the other CalendarExtender. Quite simple, right? However, the AJAX CalendarExtender does not have the ability to force user […]

AJAX UpdatePanel Causing Full Postback

When you use AJAX’s UpdatePanel, you may find that the controls inside of the UpdatePanel generate full postback instead of partial postback, if it occurs to you, then you may need to check your web.config file to see if there is a line like this: <xhtmlConformance mode=”Legacy” /> If yes, then that is the bad guy that causes all kinds of problems in AJAX including the issue mentioned above. Removing the line from web.config  will […]