I am calling a javascript function onclick of an anchor tag created dynamically as shown in the below code
datarow[drScheme["DESCRIPTION"].ToString() + "<br/>" + drScheme["PRODUCTCODE"].ToString()] = @"<a href='#' onclick='javascript:openPOPUP(\u0027'" + DiscountRate + "','" + CurrencyType + "','" + ProductCode + "','" + RegCode + "','" + drSchemeRule["SchemeId"] + "');'>" + DiscountRate + " " + CurrencyType + "</a>";
After rendering the onclick appears like as follows
onclick="javascript:openPOPUP(" 'DiscountRate ','CurrencyType ','ProductCode ','RegCode ','SchemeId');'
What wrong I am doing here? Please give me the solutions for this.