Posts

Big Mistake using VS2008 Website publish

Today I made a terrible mistake by using VS2008 website publish tool and selecting to delete existing file during the upload. I assume VS2008 will only delete the duplicated files. Noop. VS2008 Deleted all the other folders in the target folder, which I have many sub domain and documents that I do not want VS2008 to delete... I have no where to get some of those file back. So bad....

C# equivalent of UnEscape funciton

In Javascript, I passed the value of FCKEditor to wbservice and stored it into database. However, the display of this value is through C#. Therefore I need to use Unescape from c# to display the value. The following article provides a detailed method to do this work. http://kseesharp.blogspot.com/2008/01/c-equivalent-of-javascript-escape.html

Integrate of FCK Editory

Start point: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Integration/ASP.NET First issue, do not forget to copy the FCKeditor to your project. Otherwise, after you add the control to your test page and start to debug, an error message will pop up. Second issue, after making the demo page work and start to type a few words, I noticed that there is a spell checker button. After I click this button, a dialog pop up with a license information. I need to remove this button. The following document provides way to customize tool bar. http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Toolbar Following settings set a customized toolbar FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" ToolbarSet ="MyToolbar" Height = "600px" FCKeditorV2:FCKeditor In my code, I have an existing text area to allow user to type product description. With following code I can quickly replace the textarea to FCKEditor. In Javascript of ...

Pay Per Play Web Site Down

Today I just read about Pay Per Play . It looks to be a great opportunity. I googled about it and some people say "Great", while others think it a scam. Well, I will try it myself before make a decision. First, I registered from Netaudio Adds , and then I did recieve a few email. How ever, when I followed the instruction in the email, this is what I get. ============================== Server error! The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: a.cgi If you think this is a server error, please contact the webmaster. Error 500 sellingppp.com Thu May 7 21:46:51 2009 Apache/2.0.63 (FreeBSD) PHP/5.2.9 mod_ssl/2.0.63 OpenSSL/0.9.7e-p1 ============================= Any idea?

How to keep the format of user entered text

Image
It is not so easy to maintain the text format user enters in a text box in. The best way to do this is to make use of some existing rich text format. There are some discussion here : What rich text control for ASP.Net 2.0? The following is a quick method to keep some simple format. Formatting text in classic ASP . This article provides a quick method to do it using ASP. FCK Editor is the one that are used very widely. More details can be found from FCK Editor page . I have got some problem with using this control. Therefore, I am trying to find some good tutorial about how to integrate FCK editor with my website. The following article gave me a good start point. How to Integrate NetSpell with FCKEditor . I will try to follow this article and make it work for my website and upload the test site to my website hosted at www.GoDaddy.com .

Tool to transfer data among SQL Servers

Since I have no bulk read and write permission to my SQL Server database at my previous hosting plan, I can not use SQL Server data import/export tool to transfer my data to my new hosting database server. I spent a few nights and developed a small tool that connects to any sql server using OLE DB, fetch all tables in the database, and fetch all data from any table page by page. Based on this function, I have successfully implemented the tool to transfer any amount of data between two remote sql servers. The tool can not solve one problems so far. If any field is auto increase, the backup may not succeed. The project has been uploaded to popfly. SQLViewer

MachineKey and validation key configuration problem

I got the following error when I clicked a radio button on my web page after a couple of hours. This error only happens when the web page was loaded quite a little while ago and then you try to refresh it. It means that your post back request was sent to another machine of the web farm that has a different ValidationKey. ============ Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be ...