Пример #1
0
 private void RelationshipIDLoad()
 {
     try
     {
         DataSet ds = RelationshipManager.GetDropDownListAllRelationship();
         ddlRelationshipID.DataValueField = "RelationshipID";
         ddlRelationshipID.DataTextField  = "RelationshipName";
         ddlRelationshipID.DataSource     = ds.Tables[0];
         ddlRelationshipID.DataBind();
         ddlRelationshipID.Items.Insert(0, new ListItem("Select Relationship >>", "0"));
     }
     catch (Exception ex)
     {
         ex.Message.ToString();
     }
 }