Hi
Value in State dropdown is not showing
private void GetData()
{
try
{
StringBuilder htmlTable = new StringBuilder();
BALAcademy bALAcademy = new BALAcademy();
List Result = bALAcademy.GetRecordList();
if (Result != null)
{
htmlTable.Append("");
//htmlTable.Append("| State | Country | Status | Actions | # | 1 |
");
htmlTable.Append("| Academy Id | Academy Name | Academy Address | Academy State | Academy Phone No | Academy Email | Actions | 1 |
");
htmlTable.Append("");
foreach (var colum in Result)
{
String Status = colum.Active == true ? "Active" : "Blocked";
htmlTable.Append("");
htmlTable.Append("| " + colum.AcademyID + " | ");
htmlTable.Append("" + colum.AcademyName + " | ");
htmlTable.Append("" + colum.AcademyAddress + " | ");
htmlTable.Append("" + colum.StateMaster.StateName + " | ");
htmlTable.Append("" + colum.AcademyPhoneNumber + " | ");
htmlTable.Append("" + colum.AcademyEmail + " | ");
htmlTable.Append(" | ");
//htmlTable.Append("" + colum.AcademyID + " | ");
htmlTable.Append("" + colum.Active + " | ");
htmlTable.Append("
");
}
htmlTable.Append("");
htmlTable.Append("
");
PlaceHolderTable.Controls.Add(new Literal { Text = htmlTable.ToString() });
}
}
catch (Exception ex)
{
Utility.SaveErrorLog(ex.Message, System.IO.Path.GetFileName(Request.Path), System.Reflection.MethodBase.GetCurrentMethod().Name, hdfEmpNumber.Value);
ShowMessage("Oops...", ex.Message, "error");
}
}
Thanks
Sachin SinghPosted Aug 15, 2022, 6:04 AM