Posted on: 1/24/2014 12:38:17 AM | Views : 517

I return dataset from a method and I try to create a label dynamically on the page and show the data in it. When I debug I can see value in the Label but label is not shown on the page. I am not sure maybe I have to add it to the page or position it. This is my code:
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { FAQMV mv = new FAQMV(); int PartnerId = UserInformation.PartnerId; var faqDS = mv.getFAQList(PartnerId); foreach(var item in faqDS) { Label lblQuestion = new Label(); lblQuestion.Text = item.question; Label lblAnswer = new Label(); lblAnswer.Text = item.Answer; } ...

Go to the complete details ...