private DataTable Getdat(int ApplicationId)
{
DataTable returndtt = new DataTable();
try
{
query = "Select OrgTypeIdPresent from Appmst Where ApplicationId=@ApplicationId";
using (SqlCommand cmd = new SqlCommand(query, ObjCon))
{
cmd.Parameters.AddWithValue("@ApplicationId", ApplicationId);
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(returndtt);
}
}
catch (Exception ex)
{
lblApplDocError.Text = cnclss.SendExcepToDB(pageName, MethodBase.GetCurrentMethod().Name.ToString(), HttpContext.Current.Request.Url.ToString(), ex);
}
finally
{
}
return returndtt;
}
Comments
Post a Comment