示例#1
0
    private void populateSellingLead()
    {
        SellingLead.serSellingLead sellinglead = new SellingLead.serSellingLead();
        DataSet dataset = sellinglead.SellingLead_GetAll();


        ddlSellinlead.Items.Clear();

        foreach (DataRow dr in dataset.Tables[0].Rows)
        {
            string s = dr["sellingleadId"].ToString() + " : " +
                       dr["sellinglead"].ToString();;
            ListItem listItem = new ListItem();
            listItem.Text  = s;
            listItem.Value = dr["sellingleadId"].ToString();
            ddlSellinlead.Items.Add(listItem);
        }
    }
    private void populateSellingLead()
    {
        SellingLead.serSellingLead sellinglead = new SellingLead.serSellingLead();
        DataSet dataset = sellinglead.SellingLead_GetAll();


        ddlSellinlead.Items.Clear();

        foreach (DataRow dr in dataset.Tables[0].Rows)
        {
            string s = dr["sellingleadId"].ToString() + " : " +
                       dr["sellinglead"].ToString(); ;
            ListItem listItem = new ListItem();
            listItem.Text = s;
            listItem.Value = dr["sellingleadId"].ToString();
            ddlSellinlead.Items.Add(listItem);
        }
    }