Hi, i m trying to fill my dropdownlist from dropdown object. in my class
public DropDownList Bind_DdlBranch(int ZoneId)
{
DropDownList ddl = new DropDownList();
clsMasterBranch obj = new clsMasterBranch();
ddl.DataTextField = "testfieldname";
ddl.DataValueField = "valuefieldname";
ddl.DataSource = obj.MasterBranch_FetchByZoneId_DataSet(ZoneId);
ddl.DataBind();
return ddl;
}
here i m getting value in ddl object. but while i m trying to bind the ddl object to dropdownlist in my c# code
clsDropDownList obj = new clsDropDownList();
ddlBranch = obj.Bind\_DdlBranch(3);
page was build with no error but drop down ddlBranch is empty... Plz guyz help me to find out the mistek.... thanx is advance....
Regards... Vijay Jain :)
"One thing you can't recycle is wasted time."