Hi All,
I have created a Visual Web Part and added a class(Splogic.CS) for SharePoint logic purpose.
In Visual Web Part i have added 4 dropdownlists. In Class Splogic.CS i wrote a method which fetch data from 4 different lists.like follow
using(spcontext obj)
{
using(spweb object)
{
tryGetList();
foreach(SPlistitem item in list.item)
{
What to do here?
}
tryGetList();
foreach(SPlistitem item in list.item)
{
What to do here?
}
tryGetList();
foreach(SPlistitem item in list.item)
{
What to do here?
}
tryGetList();
foreach(SPlistitem item in list.item)
{
What to do here?
}
}
}
so here i can get all 4 list's data. But my question is how to get that data from this class and bind each lists data to a separate Dropdownlist.
Please tell me how could i solve this?