WordTechinc
Programmer
- Sep 4, 2009
- 38
I am new c# and Web App and try to understand it. I would like to know how the following line work and also attached full public void too. I cannot figure out how where GetProgramM get executed. I use Visual Studio 2008 & c#.
DataTable _datatable = _dataaccess.GetProgramM(_iPMID);
public void LoadProgramDropDown(int _iPMID)
{
_dataaccess = new DataAccess();
DataTable _datatable = _dataaccess.GetProgramM(_iPMID);
Programddl.DataSource = _datatable;
Programddl.DataValueField = "PMID";
Programddl.DataTextField = "ProgramNameType";
Programddl.DataBind();
Programddl.Items.Insert(0, "<< Select A Program >>");
Programddl.Items[0].Value = "0";
}
DataTable _datatable = _dataaccess.GetProgramM(_iPMID);
public void LoadProgramDropDown(int _iPMID)
{
_dataaccess = new DataAccess();
DataTable _datatable = _dataaccess.GetProgramM(_iPMID);
Programddl.DataSource = _datatable;
Programddl.DataValueField = "PMID";
Programddl.DataTextField = "ProgramNameType";
Programddl.DataBind();
Programddl.Items.Insert(0, "<< Select A Program >>");
Programddl.Items[0].Value = "0";
}