Sunday, November 3, 2013

What is Affiliate Marketing - How to make Money Online

Every day more and more people are looking for different ways to earn extra money, or to earn a living, both in the online and offline worlds people are starting realize that having a "job" and working 40 hours a week for 40 years is not the ideal way to live. And it is true working like an animal make no sense anymore when there are many opportunities available to make money online.There are many ways to go for Extra money, but in case of online work You can Work from Home and Make Money online through Internet Jobs or By doing Affiliate Marketing.

Affiliate marketing is a type of performance-based marketing in which a business rewards one or more affiliates for each visitor or customer brought by the affiliate's own marketing efforts. 

As we have some blog or web site with good number of Visitors we can make decent amount of money using Affiliate Marketing.Your affiliate can be anything from a website or e-newsletter or blog or squidoo lense or facebook page anything which can be shared with people online, it could also be a shopping portal, to name a few. Many online websites and shopping portals uses Affiliate program, where they allow any one to do advertising online using Affiliated link, and the company pays the affiliate a 5%-20% commission on sales. 

 


Viral Marketing: is a Marketing phenomenon that facilitates and encourages people to pass along a marketing message. Viral Marketing basically uses replication of some product or brand with use of  either Images, Videos, text ads and continuously making people aware about the product or brand.
One of the Effective way to reach many people is Viral Marketing. Funny Videos, Funny images, relative content or publishing interesting article are ways for Viral Marketing, making more and more people aware about the Brand.


Submit this story to DotNetKicks

Read more...

Sunday, October 20, 2013

getting basic data types using reflection than nullable

While using class properties to use for data base connectivity, i.e. LINQ TO SQL, I was facing issue for nullable types. I was using Reflection to fetch property type names, but for NULLABLE properties it use to send me property type name as NULLABLE`1. I was suppose to use following switch case (Determine Nullable properties via reflection)
public static string getJSType(PropertyInfo propertyinfo)
        {

//GetCoreType function returns Property type.
switch (GetCoreType(propertyinfo.PropertyType).Name.ToUpper())
                {
                    case "INT16":
                        return "number";
                    case "UINT16":
                        return "number";
                    case "SHORT":
                        return "number";
                    case "USHORT":
                        return "number";
                    case "INT32":
                        return "number";
                    case "UINT32":
                        return "number";
                    case "INT":
                        return "number";
                    case "UINT":
                        return "number";
                    case "INT64":
                        return "longnumber";
                    case "UINT64":
                        return "longnumber";
                    case "LONG":
                        return "longnumber";
                    case "ULONG":
                        return "longnumber";
                    case "DECIMAL":
                        return "decimal";
                    case "DOUBLE":
                        return "float";
                    case "BIGINT":
                        return "longnumber";
                    case "STRING":
                        return "text";
                    case "DATETIME":
                        return "datepicker";
                    case "BOOLEAN":
                        return "flag";
                }
            //}
            return "text";
        }
To determine type of NULLABLE properties via reflection, I used following function GetCoreType
 private Type GetCoreType(Type type)
        {
            if (type.IsGenericType &&
                type.GetGenericTypeDefinition() == typeof(Nullable<>))
                return Nullable.GetUnderlyingType(type);
            else
                return type;
        }
Find Type of Nullable Properties via Reflection. Determine type of Nullable properties view Relection. While using reflection get core property type of nullable properties.
Submit this story to DotNetKicks

Read more...

Saturday, September 21, 2013

Remove Double Quotes From String

To Strip double Quotes from string use following code

Lets say s is out string
string newstr = string.Empty
s = s.Replace("""", "");
OR
string newstr = string.Empty
s = s.Replace("\"", "");

Submit this story to DotNetKicks

Read more...