Click here to Skip to main content
15,896,493 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am developing a web application in asp.net. I have to create a online survey in that.
The number of questions will be decided based on the user selections.
I have to dynamically add the rows based on the conditions.
I need to display the questions along with the answers for that.
What control do i need to use in asp.net for this?
Posted
Comments
Ahmed Bensaid 25-Jun-13 6:02am    
You can look for a jquery plugin which will help you to develop a survey ;)
Prakash Sekhar 25-Jun-13 6:18am    
Is it possible to add the number of rows dynamically with the help of the plugin. I have not used jquery till now so i am not sure how it can be done.
Ahmed Bensaid 25-Jun-13 6:19am    
Yep, of course ;)

XML
main_dv.Controls.Add(new LiteralControl("<table width='100%' border='1' cellspacing='0' cellpadding='2' style='margin-top:10px;'>"));
                main_dv.Controls.Add(new LiteralControl("<tr>"));
                main_dv.Controls.Add(new LiteralControl("<td align='center'> <strong style='font-size:16px;'>Relative</strong>"));
                main_dv.Controls.Add(new LiteralControl("</td>"));
                main_dv.Controls.Add(new LiteralControl("<td align='center'> <strong style='font-size:16px;'>Class</strong>"));
                main_dv.Controls.Add(new LiteralControl("</td>"));
                main_dv.Controls.Add(new LiteralControl("<td align='center'> <strong style='font-size:16px;'>Relative</strong>"));
                main_dv.Controls.Add(new LiteralControl("</td>"));
                main_dv.Controls.Add(new LiteralControl("<td align='center'> <strong style='font-size:16px;'>Class</strong>"));
                main_dv.Controls.Add(new LiteralControl("</td>"));
                main_dv.Controls.Add(new LiteralControl("<td align='center'> <strong style='font-size:16px;'>Relative</strong>"));
                main_dv.Controls.Add(new LiteralControl("</td>"));
                main_dv.Controls.Add(new LiteralControl("<td align='center'> <strong style='font-size:16px;'>Class</strong>"));
                main_dv.Controls.Add(new LiteralControl("</td>"));
                main_dv.Controls.Add(new LiteralControl("<td align='center'> <strong style='font-size:16px;'>Relative</strong>"));
                main_dv.Controls.Add(new LiteralControl("</td>"));
                main_dv.Controls.Add(new LiteralControl("<td align='center'> <strong style='font-size:16px;'>Class</strong>"));
                main_dv.Controls.Add(new LiteralControl("</td>"));
                main_dv.Controls.Add(new LiteralControl("</tr>"));

main_dv.Controls.Add(new LiteralControl(""));
 
Share this answer
 
Why not use a wizard control and let all the future steps of wizards populate themselves according to the users choice in previous steps.

P.S. jQuery based client side scripted UI will be more user intuitive though but wizard will be the easiest.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900