Hello All,
i am using llblgen 2.6 and self servicing and my database is my sql.
i have one table called : primaryindustry
in that table i have following fields
PrimaryIndustryID and PrimaryIndustryName
i can bind my dropdownlist by following code and it works fine
PrimaryindustryCollection ClaPrimary = new PrimaryindustryCollection();
FetchData ClaPrimaryIndustry = new FetchData();
ClaPrimary = ClaPrimaryIndustry.FetchIndustryTitle();
ddClassification.Items.Add(new ListItem("-- Select Primary Industry --", "-1"));
ddClassification.DataSource = ClaPrimary;
ddClassification.DataTextField = "PrimaryIndustryName";
ddClassification.DataValueField = "PrimaryIndustryID";
ddClassification.DataBind();
now i have second table called : jobdetails
in that field i have following fields
JobDetailID
JobNumber
ReferenceNumber
IsJobLive
Classification(i.e.PrimaryIndustryID )
now i want to bind drop down list primary industry as above code i have do.
but here i want only those primary industry in dropdown which has "IsJobLive" true in jobdetails.
so how can i do this?