Monthly Archive for May, 2009

two issues of asp.net development

Today, got bothered by two issues when I was doing the asp.net development.

First, all of the sudden, the “~” symbol in my code did not work anymore after I did some modifications. For example, I have one line of code to re-direct the users to an error page (/MyApp/App_Include/ErrorPage.aspx) like the below.

Response.Redirect("~/App_Include/ErrorPage.aspx?aspxerrorpath=" & Me.Page.Request.Url.ToString(), True)

But when any errors raised in some web forms in the location of /MyApp/Forms/somepage.aspx, I could not be re-directed to the ErrorPage.aspx, instead I got a 404 page not found error. It seemed the system was trying to find /MyApp/Forms/~/App_Include/ErrorPage.aspx.
Continue reading ‘two issues of asp.net development’

Related posts

A nice web tool to capture your computer screen in video format

Recently I discovered a good web service to make the screen capture very easy. Using this tool, you can easily to record what you are doing on your computer, like running applications, browsing websites, etc. Then you can upload your screenshot videos to YouTube, or save as .mov file on your machine locally. This makes sharing the screen shots (or even video training) to your friend like a snap-it.

Continue reading ‘A nice web tool to capture your computer screen in video format’

Related posts

How to add your own HTML tag in article content of Joomla 1.5.x

JoomlaI was working on the Joomla 1.5.9 and tried to add one form in an article, but the <form> tag got ripped off. To get it back, you will have to do at least two changes.

  1. Turn off the WYSIWYG Editor (i.e. TinyMCE editor) you were using. To do so, you can update the user profile by choosing no editor for yourself.
  2. Then you need to update the Filterings Options settings in Global Parameter, otherwise all <form> <input> tags will be kept by turning off WYSIWYG editor, but the ACTION attribute in the <form> will be filtered out by Joomla.

Continue reading ‘How to add your own HTML tag in article content of Joomla 1.5.x’

Related posts

Fix Access is denied (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED)) on local machines

ASP.NETSince Wednesday, all developers’ machines could not load asp.net applications on Visual Studio’s development servers. And we even could not debug, build the solution and could not Copy Website either; and could not drag/drop the AJAX Extension toolkit controls to the web forms.

The error message when we loaded the web application was the following:

Server Error in ‘/MyAPP’ Application.


Access is denied. (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED))

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

……

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

……

[FileLoadException: Could not load file or assembly 'AjaxControlToolkit, Version=1.0.20229.20821, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. Access is denied.]

Continue reading ‘Fix Access is denied (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED)) on local machines’

Related posts

Get error 500 in xmlrpc.php file while using Windows Live Writer with WordPress MU 2.6.5

Upgraded the WLW to built 14.0 and tried to open the posts from my WordPress MU 2.6.5 today, but got error message saying “there was error 500 while processing the file xmlrpc.php”.

Double checked my WP settings and found that the xmlrpc had been turned on already. It seemed to me it was a web server parsing php code error.

After poking around the internet, and concluded that there is an issue with the xmlrpc.php code if the server default service is PHP4. That means if your web server parsing your WordPress php code in PHP4 mode, then you would get problems to view blog posts from Windows Live Writer, and in some case you can not upload images in WLW with xmlrpc method.

I hope there will be a fix soon. But right now, I will have to force my web server to call the WordPress codes in PHP5 mode.

To do so, just add the following two lines at the begining of your .htaccess file.

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

 

After that, you just upload the modified .htaccess file and everything should be fine again.

Good Luck!

Related posts

Fixed Paypal payment method not showing in OSCommerce check-out

OSCI downloaded a OSC template and installed on the server. Since the included OSC is not the latest version, I had to upgrade the Paypal method files. Today, I modified some fields in the Paypal Website Payment Standard, and surprisedly the payment method disappeared from the Check Out page. And I can see an message on the page saying “This is currently the only payment method available to use on this order.” And after I clicked continue, I would get the error of “no payment method selected”.

After playing around, I finally found out the cause. I think there is a bug in the OSC code I have in the template. Since I do not have time to mess up the code, I am using a tip to get the Paypal method back. Hope it will help you too.

Tips: just make sure your Payment Zone of your Paypla method set up to –none–. That is it.

Related posts

How to put sticky post and remove page title on front page of Joomla

JoomlaRecently I am playing around with Joomla 1.5.x and wanted to write down two tips I learned about the Front Page setup.

First, how to remove the “Welcome to Front Page” page title in a Joomla 1.5.x with sample data installed. It sounded easy, but it still took me some time to find the right spot to do so.

  1. Move your mouse over the Menus top menu in administrator back-end, and then select Main Menu option or any menus with Home (Type of Articles-Frontpage) menu item.
  2. Click the title of Home or other name but with the type of Articles –> Frontpage
  3. Expand the Parameters (system) right menu, and you will see there are two options of Page Title and Show Page Title for you to resolve this “Welcome to Front Page” issue.

Continue reading ‘How to put sticky post and remove page title on front page of Joomla’

Related posts

How to wipe clean a blackberry curve 8330 with 4.1 or later software

CurveGot a replacement blackberry, and need to turn in the old one. I tried to clean all my personal data before I do so. But unlike the previous ones I had before. I could not find a easy way to wipe all personal data from the blackberry simply going to Option — Security.

Well, it is still easy to clean your blackberry with the newer OS version of 4.1 or later, just following the instruction below

  1. From the Device Options menu, select Security Options.
  2. Click General Settings.
  3. Click the blackberry button, and then click Wipe Handheld.
  4. If you wish to erase all third party applications, click the check box.
  5. Click Continue, and then type blackberry .

For more, check out this knowledge base http://kb.iu.edu/data/alvl.html

Related posts



Get Adobe Flash playerPlugin by wpburn.com wordpress themes