Posted on: 12/13/2014 8:44:31 PM | Views : 416

Hi everyone,
I have programmatically added a Table control to a Panel control, pnlSurveyQuestions. 
.ASPX:
<asp:Panel ID="pnlSurvey" runat="server"> ... <asp:Panel ID="pnlSurveyQuestions" runat="server"> ... </asp:Panel> </asp:Panel> ... .ASPX.CS:
protected void Page_Load(object sender, EventArgs e) { ... PopulateSurvey(); ... } private void PopulateSurvey() { Table tbl = new Table(); TableRow tr; TableCell tc; using (SqlConnection conn = new SqlConnection("...")) { string strQuery = "SELECT Survey_QuestionID, q.Survey_SectionID, s.SectionName, QuestionNo, QuestionText, Survey_QuestionTypeID " + "FROM Survey_Question q " + "LEFT ...

Go to the complete details ...