I like to use desktop client software for writing blog posts, and I use Windows Live Writer on my Windows machine and ScribeFire when I am on my Linux machine. I know, ScribeFire is not really a desktop client so to speak, but I can’t find a very good desktop blog client for Linux, so I use this FireFox add-on until I can find a good satisfactory desktop blogging tool for Linux. One of the […]
Monthly Archives: November 2008
It is very common to use the Response stream to manage file download process. For example, the following code snippet shows how to use the Response stream to download any file: The above code will work fine in most cases, however, if the Download button is in a UpdatePanel, then it will throw an AJAX error like this: The error message tells the cause the error: you cannot use Response.Write in the UpdatePanel, so how […]
I wrote a post before about giving user some feedback when a long process occurs. It is very simple if you use AJAX as the post shows. But what if your boss told you that you can’t use AJAX for whatever reason, like my boss told me? Well, the good news is that you still can do it with JavaScript and CSS. The trick is to use JavaScript’s setTimeout function to repeatedly check the value […]
The No. 1 bug in Ubuntu was reported in 2004. Four years later, this bug is still listed as the No. 1 and is still not fixed. I don’t believe this bug can ever be fixed. 🙂
Say if you are using the following JavaScript function to alert user if a TextBox is empty: <script language=”JavaScript” type=”text/javascript”> function validateInput() { if (document.getElementById(‘<%=TextBox1.ClientID%>’).value=””) { alert(“The text box is empty!”); } } </script> If the above code is embedded in the aspx page, it works as expected. But if you put the above function in a .js file and include it in your aspx file, you will get a “Object expected” error in IE, […]
Wubi stands for Windows-based Ubuntu Installer, it is one of Ubuntu’s smart ways to convince Windows users to switch to Ubuntu. Wubi allows you to install and uninstall Ubuntu as any other Windows application, in a simple and safe way. Remember the old days when you tried to install Windows and Linux on the same machine with the dual-boot options? You have to prepare your partition very carefully, otherwise, the Linux install will wipe out […]
Have you thought about customizing the style of the built-in ASP.NET FileUpload control because you are tired of its dull looking? Something like this: I will show you how this can be done very easily. Alright, here is the code snippet of the ASP.NET controls and the JavaScript function: Happy programming!
Here I am gonna use JavaScript and CSS to display a popup-style error window for validation like this: It still uses all validators the same as in Part One, but with some JavaScript functions and some CSS tricks, we can make it look like a pop up.