Tuesday, February 26, 2013

Why should we use dependency Injection




http://www.javacreed.com/why-should-we-use-dependency-injection/


Also what is dependency injection
http://martinfowler.com/articles/injection.html

Friday, March 30, 2012

Google Charts

http://chartsandgraphs.care4soft.com/

Monday, March 26, 2012

Passing Comma Separated Param to Reports

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Microsoft.Reporting.WebForms;
using System.Configuration;
using System.Net;


namespace My.Web.Reports
{
public partial class ReportViewer : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ICollection rptParams = new List();
ReportParameter rptParam = new ReportParameter();

rptParam.Name = "Id";
rptParam.Values.Add("101,102");

rptParams.Add(rptParam);
rptParam = new ReportParameter();

rptParam.Name = "name";
rptParam.Values.Add("Assam");

rptParams.Add(rptParam);

ReportViewer1.ServerReport.SetParameters(rptParams);
}
}
}
}


-----------DataSet Query----------------

SELECT ID, Name
FROM Product
WHERE (ID IN
(SELECT items
FROM dbo.Split(@Id, ',') AS Split_1)) AND (Name LIKE '%' + @name + '%')

Tuesday, February 21, 2012

Best Practices for Speeding Up Your Web Site

http://developer.yahoo.com/performance/rules.html