using this code how to draw two line chart in a single chart?
<pre><code>using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.UI.DataVisualization.Charting;

public partial class FrmChart : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {


            LblDate.Text = DateTime.Now.ToString();
            string str = Request.QueryString["view"];
            View v = (View)MultiView1.FindControl(str);
            if (v == ViewLineChart)
            {
                ArrayList ar = new ArrayList();
                ArrayList arr = new ArrayList();
                NsecashService nsecash = new NsecashService();
                ar = nsecash.viewallcompany();
                DDLCompany.DataSource = ar;
                DDLCompany.DataTextField = "Symbol";
                DDLCompany.DataBind();

                DateTime todate = nsecash.getLastDate();
                LblDate.Text = todate.ToString("dd-MM-yyyy");
                BDPFromDate.MaximumDate = todate;
                string a = ((todate.Month) - 3).ToString() + "/01/" + todate.Year.ToString();
                if (((todate.Month) - 3) == 0)
                {
                    BDPFromDate.SelectedValue = DateTime.Parse(12.ToString() + "/01/" + ((todate.Year)-1).ToString());
                }
                else if (((todate.Month) - 3) == -1)
                {
                    BDPFromDate.SelectedValue = DateTime.Parse(11.ToString() + "/01/" + ((todate.Year) - 1).ToString());
                }
                else if (((todate.Month) - 3) == -2)
                {
                    BDPFromDate.SelectedValue = DateTime.Parse(10.ToString() + "/01/" + ((todate.Year) - 1).ToString());
                }
                else
                    BDPFromDate.SelectedValue = DateTime.Parse(((todate.Month) - 3).ToString() + "/01/" + todate.Year.ToString());

                arr = nsecash.getByDate(DDLCompany.SelectedValue.ToString(), BDPFromDate.SelectedDate, todate);
                ChartLine.DataSource = arr;
                ChartLine.ChartAreas[0].AxisX.Title = "Date";
                drawLineChart(DDLCompany.SelectedValue.ToString(), BDPFromDate.SelectedDate, todate);
                ChartLine.DataBind();
                ChartLine.Series.Remove(ChartLine.Series.FindByName("20MICRONS"));
                drawLineChart(DDLCompany.SelectedValue.ToString(), BDPFromDate.SelectedDate, todate);
                BDPFromDateValueChanged = false;
                MultiView1.SetActiveView(ViewLineChart);


            }

            else if (v == ViewCandlestickChart)
            {
                MultiView1.SetActiveView(ViewCandlestickChart);

            }
        }

    }

    bool BDPFromDateValueChanged = false;
    static double MINY = 100000;
    static double MAXY = -1;
    protected void Button1_Click(object sender, EventArgs e)
    {

    }

    protected void BtmDraw_Click(object sender, EventArgs e)
    {
        NsecashService sc = new NsecashService();
        DateTime frommdte = BDPFromDate.SelectedDate ;
        DateTime todate = sc.getLastDate();
        TimeSpan ts = todate - frommdte;
        if (ts.Days &gt; 30)
        {
            string comp = DDLCompany.SelectedValue.ToString();
            DateTime fromDate = BDPFromDate.SelectedDate;

            DateTime toDate = todate;
            bool SERIESFOUND = false;
            ArrayList seriesNames = new ArrayList();

            foreach (Series s in ChartLine.Series)
            {
                if (s.Name.CompareTo(comp) == 0)
                {
                    SERIESFOUND = true;
                }
            }

            if (SERIESFOUND == true)
            {
                if (BDPFromDateValueChanged == true)
                {
                    int i = 0;
                    foreach (Series s in ChartLine.Series)
                    {
                        seriesNames.Add(s.Name);
                        i++;
                    }
                    foreach (string s in seriesNames)
                    {
                        ChartLine.Series.Remove(ChartLine.Series.FindByName(s));
                    }
                    foreach (string s in seriesNames)
                    {
                        drawLineChart(s, BDPFromDate.SelectedDate, todate);
                    }
                    BDPFromDateValueChanged = false;
                }
                else
                {
                    if (ChartLine.Series.FindByName(comp).YAxisType == AxisType.Primary)
                    {
                        ChartLine.Series.Remove(ChartLine.Series.FindByName(comp));
                        if (ChartLine.Series.Count == 0)
                        {
                            string sname;
                            sname = ChartLine.Series[0].Name;
                            ChartLine.Series.Remove(ChartLine.Series.FindByName(sname));
                            drawLineChart(sname, BDPFromDate.SelectedDate, todate);
                        }
                    }
                    else if (ChartLine.Series.FindByName(comp).YAxisType == AxisType.Secondary)
                    {
                        ChartLine.Series.Remove(ChartLine.Series.FindByName(comp));
                    }
                    BDPFromDateValueChanged = false;
                }
            }
            else
            {
                string sname = null;
                switch (ChartLine.Series.Count)
                {
                    case 0:
                        drawLineChart(comp, BDPFromDate.SelectedDate, todate);
                        break;
                    case 1:
                        if (BDPFromDateValueChanged == true)
                        {
                            sname = ChartLine.Series[0].Name;
                            ChartLine.Series.Remove(ChartLine.Series.FindByName(sname));
                            drawLineChart(sname, BDPFromDate.SelectedDate, todate);
                            drawLineChart(comp, BDPFromDate.SelectedDate, todate);
                        }
                        else
                        {
                            drawLineChart(comp, BDPFromDate.SelectedDate, todate );
                        }
                        break;
                    case 2:
                        System.Windows.Forms.MessageBox.Show("Max 2 companies are allowed.");
                        return;
                }
            }
        }
        else
        {
            System.Windows.Forms.MessageBox.Show("Choosen date must be 30 days less than current date");
        }
    }
    public void drawLineChart(string comp, DateTime fromDate, DateTime toDate)
    {
        double tempMINY = 0;
        double tempMAXY = 0;
        ArrayList arr = new ArrayList();
        scripinfo scripinfo = new scripinfo();
        NsecashService  nsecash = new NsecashService();
        arr = nsecash.getByDate(comp, fromDate, toDate);
        if (arr.Count == 0)
        {
            System.Windows.Forms.MessageBox.Show("No trading on selected days.");
            return;
        }

        Series series = new Series(comp);
        series.ChartType = SeriesChartType.Line;

        series.ChartArea = ChartLine.ChartAreas[0].Name;

        series.XValueMember = "Time_stamp";
        series.YValueMembers = "Closeprice";
        tempMINY = nsecash.minValueOfScrip(comp, fromDate);
        if (tempMINY &lt; MINY)
        {
            MINY = nsecash.minValueOfScrip(comp, fromDate);
        }
        tempMAXY = nsecash.maxValueOfScrip(comp, fromDate);
        if (tempMAXY &gt; MAXY)
        {
            MAXY = tempMAXY;
        }


        if (ChartLine.Series.Count == 0)
        {
            ChartLine.ChartAreas[0].AxisY.Title = "Close price";
            ChartLine.ChartAreas[0].AxisY.Minimum = MINY;
            ChartLine.ChartAreas[0].AxisY.Maximum = MAXY;
            ChartLine.Series.Add(series);
        }
        else if (ChartLine.Series.Count == 1)
        {
            series.YAxisType = AxisType.Secondary;
            ChartLine.ChartAreas[0].AxisY2.Title = "Close price";
            ChartLine.ChartAreas[0].AxisY2.Minimum = MINY;
            ChartLine.ChartAreas[0].AxisY2.Maximum = MAXY;
            ChartLine.Series.Add(series);
        }

        foreach (NsecashInfo  nseinfo in arr)
        {
            series.Points.AddXY(nseinfo.Time_stamp, nseinfo.Closeprice);
            series.Points[series.Points.Count - 1].ToolTip = "Close price:" + decimal.Round(nseinfo.Closeprice, 2).ToString();
        }

        MINY = 100000;
        MAXY = -1;
    }
}
</code></pre>

<p>using this code i am drawing to line chart in a single chart? in this code i am checking (ChartLine.Series.Count == 0) but chartline.Series.Count always will be one? in want that chart series count must me zero will first? what to do for that?
i have done the same thing in windows but in web i cant draw to line chart in single chart</p>
