Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For a data driven application, with more than 30000 users, what is the best way to dynamically create web forms?

Thanks in Advance,
Posted
Updated 30-Nov-10 17:30pm
v2

XML
Response.Write("<div><font size='2' face='Tahoma'><B>" +
                                   mydata + "</B></font></div>");
 
Share this answer
 
Thank you for your question. You want to create dynamic web form in ASP.NET. So need to create ASP.NET website currently ASP.NET 4 available. And you can use MS-SQL 2005/2008 for database.


Thanks.
Mamun
 
Share this answer
 
Read these;
Dynamically Create Controls in ASP.NET by Using Visual C# .NET[^]
ASP.NET version of "Dynamic Form Fields"[^]

All you need to do is decide on how you are going to store the information detailing what controls to add to the form and where to position them, you could use either XML or a database for this part.
 
Share this answer
 
Comments
Rakhesh Rajan 1-Dec-10 1:15am    
I am currently using the same way, by creating the control dynamically and adding to the Form.I am using sql server for storing the form configurations.
But since the number of users are more performance issues are high.So i want to know what is the best way to do this?
Rod Kemp 1-Dec-10 1:34am    
You need to look at a few things first.
1. Is the bottle neck the database calls. Put logging into your code to find out what is holding things up.
2. If it is the database, is it the network slowing things or is it the database server or the database design.
Use Sql Profiler to find out.
3. Depending on the number of form configurations you may want to look into caching the data locally.
4. It may be worth looking into XML with xslt like; http://www.codeproject.com/KB/XML/xmlxsltransformer.aspx

All in all it depends on where the bottle neck is.

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