ASP.NET中的网页设计 [英] Web page Design in ASP.NET

查看:75
本文介绍了ASP.NET中的网页设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在asp.net中开发一个Web应用程序.我必须在其中创建一个在线调查.
问题的数量将取决于用户的选择.
我必须根据条件动态添加行.
我需要显示问题以及答案.
我需要在asp.net中使用什么控件?

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?

推荐答案

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("));


main_dv.Controls.Add(new LiteralControl(""));


为什么不使用向导控件,而让以后的所有向导步骤根据用户在先前步骤中的选择自行填充.

P.S.尽管基于jQuery的客户端脚本UI更加直观,但向导将是最简单的.
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.


这篇关于ASP.NET中的网页设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆