Ask Experts Questions for FREE Help !
Ask

View Poll Results: I want help in arraylist in c#

Voters
0. You may not vote on this poll
  • nothing

    0 0%
  • nothing

    0 0%
    kiran_603's Avatar
    kiran_603 Posts: 0, Reputation: 1
    New Member
     
    #1

    Oct 5, 2005, 11:09 PM
    get arraylist fields in listbox
    This is the function
    public GoldPocket.DAL.Base.SelectionList FetchAllVendorDBArrayList()
    {

    try {
    SqlDataReader objSqlDataReader;

    objSqlDataReader = SqlHelper.ExecuteReader(Globals.ConnectionString.T oString()
    , CommandType.StoredProcedure, "ContentGatewayVendorGetAllVendor");
    try {
    while (objSqlDataReader.Read()) {

    VendorDB objVendorDB = new VendorDB(Convert.ToInt32(CNullFromDB(objSqlDataRea der["VendorId"])),
    Convert.ToString(CNullFromDB(objSqlDataReader["VendorName"])),
    Convert.ToString(CNullFromDB(objSqlDataReader["Description"])),
    Convert.ToInt32(CNullFromDB(objSqlDataReader["CarrierId"])),
    Convert.ToString(CNullFromDB(objSqlDataReader["CarrierTextHint"])),
    Convert.ToDateTime(CNullFromDB(objSqlDataReader["CreateDate"])),
    Convert.ToDateTime(CNullFromDB(objSqlDataReader["UpdateDate"])));

    VendorDBList.ResultList.Add(objVendorDB);
    }
    }
    finally {
    objSqlDataReader.Close();
    // the conn is internally closed - due to [cmd.ExecuteReader(CommandBehavior.CloseConnection)]
    }
    }
    catch(Exception ex) {
    ExceptionManager.Publish(ex);
    }
    return VendorDBList;
    }




    and one more function for arraylist

    public IList ResultList =new ArrayList();




    So now I want to show the arraylist values into user i.e. display in listbox with using c# code



    My mailID:[email protected]

Check out some similar questions!

Maple tree roots and septic fields [ 1 Answers ]

My home is in a new sub and the association has planted a maple tree in the peninsula between the side walk and street. The concern I have is that my septic field is about fifteen feet away from where the tree is. How deep do the roots grow? Should I take this tree out and plant a different type of...


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.