With the upgrading to ASP.net 2.0, I decided to change all my sending email codes too. Basically I am going to use system.net.mail instead of system.web.mail or traditional CDONT. I thought it would be an easy task, but I still encountered some issues.
Archive for the 'Programming' Category
Before I moved all my blogs to my own WordPress blog platform (http://eblog.lichao.net), I was using blogger (http://lichaonet.blogspot.com) to write articles. I like my wordpress blogs now, but I still want to keep posting new articles on the blogspot site. First, I can use it as my backup or mirror blog sites. Second, I personall think that the blogger is better on Google search than wordPress blogs. But it is very difficult to manage multiple blogs on the same topic. One of these challenges is to centralize all the comments on only one blog site.
Since the wordpress one is my main blog site, I try to collect all blog comments on this blog. What I need to do is to 1) disable all comments feature on other mirror blog sites; 2) create a link to forward all visitors on mirror sites to my main blog for commenting.
Continue reading ‘How to forward traffics from my blogger to the same post on my WordPress blog’
Related posts
Thanks to the new upgrade, blogger finally gets Category option to its bloggers in its both newer and classic versions. I know there are a lot of new features, including this Category one, in the newer blogger, but I still like the classic version because of my FTP setup. So how to create a sidebar with Categories Links is a task of my own instead of waiting for blogger to upgrade its classic version again.
First of all, I really do not want to spend too much digging into the code to put dynamic category sidebar like the new version of blogger. Fortunately I do not have many changing categories for my blog. So a very dumb, simple but effective sidebar was created with the following steps.
Continue reading ‘How to create a categories link sidebar in classic blogger’
Related posts
I have a gridview web control in one asp.net 2.0 page which has a field with mutliline texts need to be displayed and updated. I am using SQLDatasource to retrieve the data from my database and then use databinding to this gridview. When the mutliline texts showed on the gridview, all line breaks were gone. For example, the original texts came from the user in the database were: Continue reading ‘How to display and edit multiline in datagrid controls with Databinding’
Related posts
I know there are a lot of good and working image validation scripts available now, and they have been used widely on the Internet already. But I just need a very simple and quick way to stop the SPAM robots from directly accessing to my web forms and then saving un-wanted information into the database or sending out emails from the web form.
Since I have ASP, ASP.NET and PHP web forms and I need to update them all with this new validation bar. A cross-programming language solution such as Javascript sounds pretty fit. So I decided to write my own Javascript to stop these bots on my web forms. As a result, a very simple, easy-to-implement validation bar solution was born for your free reference.
Related posts
A while ago I wrote a post to explain how to create expandable summaries in classic template and layouts. With this trick, you can choose to display an arbitrary amount of text from the beginning of each post, as a teaser for the whole thing. Then users who want to read the rest of the post can click a link to see the full text. This is handy if you have lots of long articles all on one page. Note that you’ll need to have post pages enabled in order to make this feature work.
Related posts
I am using the classic blogger template to write some of my Chinese blogs. Since I could not use the default English titles for my sidebar, I had to make translations. But sometimes the Chinese words could not represent the real meaning of English titles very well, especially the same title appears on Main or Archive and Item pages. For example, I had to use “最近文章” and “更早文章” for “Previous Posts” in different types of pages.
Continue reading ‘How to display different sidebar titles in blogger classic template’
Related posts
Usually asp.net render the content page title first, but you can append the page title in Page_Load event.
Simply put the following code in your master page’s Page_load event
Page.Header.Title &= “Whatever Constant String you want”
Related posts
Just browsered PC World July issue and found out there are three different types of image saving. They are:
JPEG
TIFF
RAW Format.
I will add more detail about them later.
Related posts
I used a very good shopping cart before for my own website. This time I have to set up a shopping cart application very quickly for one of my clients. He needs shopping cart component and paypal payment component only. I could not hesitate a second to recommend Zen-cart.
I went to SourceForge.net and downloaded zen-cart 1.3.02, and found that I love it again. Its core code is in PHP/My SQL, very easy to set up and make it up and running. Best of all, it is free with all features I need.
The next step is to tweak it with the customized template. I will let you know soon.
Related posts
Ok, finished the installation of Oracle 9i on the new machine. It is time for me to move all existing data from my old machine to this new server. I do not want to create all stuffs from the scratch, and do not want to use exp/imp utility either. I thought there should be a easy way to do so. Since I am a web designer, I will give such question to the DBA in my team.
It turns out there is an easy way, yeah!
Here are some steps I did to move all data from the old machine to new machine with the help of my DBA co-worker. Continue reading ‘How easily to move Oracle data from one machine to another’
Related posts
Today I tried to install Oracle 9i on my Windows 2003 Web Edition server with 3 installation CDs. First I did not get the auto-run working when the disc 1 inserted. So I browsed to the CD driver and clicked the autorun.exe file under the autorun folder manually. But I got an error message window indicating that “Windows cannot open this program since it has been disabled“.
This is weird. I thought it might be my CD-ROM problem, so I move these files to my hard-disk. Re-clicked again, the same error. I tried the setup.exe too, and got the same error. Tried the same CD on the Windows XP pro machine, ran without any problem.
Related posts
Today finally I got the Visual Studio 2005 installed on my new computer, and tried to move all visual video project from my previous VS 2003 to it. After I open the previous project in VS 2005 and converted and then re-built, then I tried to open the application in the browser. But I got the following error message:
Failed to access IIS metabase.
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.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
Continue reading ‘Errors occurred when I was upgrading to VS 2005/ASP.NET 2.0′
Related posts
I already had a webblog, which was hosted on www.blogger.com. But it did not have a category feature which one of my clients needs it very much. So I did a lot of researchs to find a good webblog software for him. Either a free webblog hosting, or an easy-to-install blog module put on his web hosting server.
I found both wordpress, Movable support category feature. Both of them are written in PHP, but his web hosting platform is Windows which only supports ASP or ASP.net. Typepad is the biggest blog hosting, but it needs hosting fee. Wordpress.com looks great but lack the FTP feature as blogger since we need use my client’s own domain name.
So I tried some ASP.NET webblogs. .Text was everywhere but I was told it is already discontinued and replaced by communicateserver component which I have to pay (if I need to pay, why I not buy sharepoint service. sniff :-)). DotnetNuke has a blog module now, but it is too much than what I really need now. So I decided to give dasBlog a shot, since everyone says it is pretty easy to get it running.
Guess what? The web hosting provider, networksolutions, does not have any control panel for me to create a virtual directory even it has a directory pointer feature. I uploaded all asp.net web files of dasblog to the web server, but had the following errors:
Parser Error Message: It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Called the tech support, and was told they would get solution back to me within 24 hours. What I should do? Just waiting….
Anyway, since I have to wait, I decide to give wordpress a shot. So I downloaded the source code and installed it on my own Unix web hosting server. Oh, yeah! 2 minutes later, I have this nice blog already.
Maybe I will start to use webblog now!!
Blog Comments