Object reference not set to an instance of an object

System.NullReferenceException - Object reference not set to an instance of an object. 3 common causes in VB.Net.

FEnd: <tr id=”TDMortgageCalculatorBlock”>
CB= Protected WithEvents TDMortgageCalculatorBlock As System.Web.UI.HtmlControls.HtmlTableRow
Solution: add runat=”server”
<tr id=”TDMortgageCalculatorBlock” runat=”server”>

No Comments


google-one-line-sitelinks

http://www.all-about-content.com/2009/04/google-one-line-sitelinks.html

No Comments


SERPAnalytics

Click the tabs on the left to find out what SERPAnalytics is!

What is SERPAnalytics

http://www.serpanalytics.com/

SERPAnalytics is a first online SEO environment designed for SEO & SEM specialists.
SERPAnalytics provides variety of SEO tools along with access to hundreds of millions records of essential data, such as search engine positions archive and keywords data.
All SERPAnalytics services are FREE in beta version. You can register in our service and get even more tools. Registration is also FREE.
*More information about SERPAnalytics Service you can find in our help section
** SERP stands for Search Engine Results Page

1 Comment


MAGENTO: PayPal Website Payments Pro (Payflow Edition) - Direct Payments

I got these instructions from PayPal support, hope they help someone out as I couldn’t find how to do it in the forum.

If you wish to setup PayPal Pro on Magento. This can be done as follows:

1. Login to your Magento Admin Panel
2.  Go to System -> Configuration
3. Select Payment Methods (on the left menu).
4. Select “PayPal Website Payments Pro (Payflor Edition) - Direct Payments.
Set the following:
1. Enabled: Yes
2. Title: Enter something you wish your customers to see when they selection this payment option.
3. Payment Action: Sale. If you do wish to receive the payment immediately you should select “Authorization”.
4. Credit Card Types:
* American Express
* Visa
* Mastercard
* Discover
* Switch/Solo
5. The rest of the options can be left as they are.
5. Select “PayPal Accounts” From the left menu.
6. Select “Website Payments Pro (Payflow Edition)
7. Enter your Payflow credentials for User, Vendor and Password
8. Click “Save Config”

And to generate PayFlow credentials for your PayPal Pro account. You can do this as follows:

Log into your PayPal account by going to www.paypal.co.uk

1 Comment


MAGENTO: What is the URL field in Paypal Website Payments Pro (Express, Direct)

HI,
All you have to do is to add the following URL in the “Paypal URL”:
https://www.paypal.com/us/cgi-bin/webscr?cmd=_express-checkout&continue;=&token;=

Paypal assigns a unique token to each transaction, token that is valid three hours (https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content;_ID=developer/e_howto_api_ECGettingStarted).

Express Checkout uses a token to control access to PayPal and execute Express Checkout API operations.

The SetExpressCheckout API operation returns a token, which is used by other Express Checkout API operations and the _ExpressCheckout command to identify the transaction. The life of the token is approximately three hours.

You can also change the locale of PayPal pages to match the language on your website.

To change the language displayed on the PayPal Login page, set the LOCALECODE parameter to one of the following allowable values in the SetExpressCheckout call:

AU (https://www.paypal.com/au/cgi-bin/webscr?cmd=_express-checkout&continue;=&token;=)
DE (https://www.paypal.com/de/cgi-bin/webscr?cmd=_express-checkout&continue;=&token;=)
FR (https://www.paypal.com/fr/cgi-bin/webscr?cmd=_express-checkout&continue;=&token;=)
GB (https://www.paypal.com/gb/cgi-bin/webscr?cmd=_express-checkout&continue;=&token;=)
IT (https://www.paypal.com/it/cgi-bin/webscr?cmd=_express-checkout&continue;=&token;=)
ES (https://www.paypal.com/es/cgi-bin/webscr?cmd=_express-checkout&continue;=&token;=)
JP (https://www.paypal.com/jp/cgi-bin/webscr?cmd=_express-checkout&continue;=&token;=)
US (https://www.paypal.com/us/cgi-bin/webscr?cmd=_express-checkout&continue;=&token;=)

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content;_ID=developer/e_howto_api_ECCustomizing

No Comments


MAGENTO: Fatal error: Allowed memory size of 41943040 bytes exhausted

You need to increase the allowed PHP memory in php.ini file.
1. Create a file named php.ini and put this into it. Then upload to your public_html directory
memory_limit = 64M
2. In CPanel, choose PHP Config and enable your php.ini file!
This will increase your allowed memory to 64M. Increase it a little more if it is not enough.

2 Comments


Issues setting MAXLENGTH on TextBox TextMode=”MultiLine”

<asp:TextBox runat=”server” TextMode=”MultiLine” MaxLength=”500″ Height=”100px” Width=”200px” Text=’<%# DataBinder.Eval(Container, “DataItem.Caption”) %>’ ID=”Textbox2″ >

It can be solved via JS or REGEX
More at http://forums.asp.net/p/1251514/3326764.aspx

No Comments


My Useful Marketing links

This are links that I constantly visit for general knowledge and to gauge market tendencies:

http://google.com/trends?q=natural%2C+wholesale%2C+distributors
http://google.com/trends/hottrends?sa=X
http://www.google.com/insights/search/#q=keratin%2Cnatural%20products%2Chealth%20products&cmpt=q
http://www.google.com/intl/en/press/zeitgeist/index.html

No Comments


CSS | Relative or Absolute Paths

You can put the CSS file wherever you want (inside the directories
visible to the web server).  However, you gotta tell the browser where
it is. You told the browser, but you told it somewhere it was not.

Your possibilities are:

RELATIVE REFERENCES
Works relative to your HTML file location.  This is easy and quick,
but if you move either the HTML or CSS file to another LEVEL in your
directory structure, then you break the link.

“Personal.css”  = same directory as the page that calls it
www.YourDomain.com/subdirectory/MyFile.html
www.YourDomain.com/subdirectory/Personal.css

“../Personal.css”  = directory above the page that calls it
www.YourDomain.com/subdirectory/MyFile.html
www.YourDomain.com/Personal.css

“../../Personal.css”  = two directories above the page that calls it.
www.YourDomain.com/subdirectory/subdir2/MyFile.html
www.YourDomain.com/Personal.css

“../shared/Personal.css” = one directory above, then down into the
shared directory that is at an equal level with the subdirectory the
HTML file is in.
www.YourDomain.com/subdirectory/MyFile.html
www.YourDomain.com/shared/Personal.css

ABSOLUTE (SERVER ROOT) REFERENCES
This is much more reliable if your site changes much.  However, your
web server must be configured to do this.  It is easy to configure if
you are familiar with such things.  IF YOU USE ABSOLUTE (SERVER ROOT)
REFERENCES, THEN YOU CAN MOVE YOUR HTML FILES AT WILL AND YOU WILL NOT
BREAK THE LINK TO THE CSS.  NOTE THAT YOU CAN ALSO USE THIS SAME
METHOD OF ADDRESSING IMAGES AND ANY OTHER LINKS THAT ARE WITHIN THE
SAME SERVER ROOT.

“/Personal.css”  = css file is located in the server root directory.
This would be www.YourDomain.com/Personal.css

“/shared/Personal.css” = = css file is located in the shared
subdirectory one level down from the server root directory.  This
would be www.YourDomain.com/shared/Personal.css

No Comments


Embed video in a webpage with Flash FLV

You can use Flash Video Encoder to convert most video file types into an FLV file, which is basically a Flash video file.

With Flash 8 you can now choose from two codecs, the original Sorensen Spark video codec, which is compatible with Flash 6, 7 & 8, or the much newer and more advanced flash video codec, the On2 VP6 codec.

Basicially put - if you want backwards compatibility back to Flash 6 players, use Sorenson, and if you want the latest greatest compression etc, and you’re designing for Flash 8 Players, use the On2 VP6 codec.

Since Eolas ruling has broken Internet Explorer’s embedding of Flash content using OBJECT or EMBED tags, SWFobject is another solution (which is in fact a great improvement over the older methods of embedding SWF files).

I strongly recommend anyone working with Flash trys SWFobject (formally known as FlashObject).

No Comments