Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I want a framework or class in c# which will help me generate HTML pages in Asp.net after getting fixed user Input from the user like Table information ( No Rows , No Columns ) and select items in drop down or other Html tag information.

The final output should be textfile which should be asp.net pages . Any guidance or resource will be appreciated . I don't want a reinvent wheel or start from first un wantedly . Thank you for your time .
Posted
Comments
Albin Abel 20-Feb-11 11:22am    
There are lot of commercial tools for this task out there. But if you look at ASP.Net MVC, creating the front end with normal operations (CRUD) is pretty easy. This is just added info to our expert answers

You'll probably be able to rework this into something that fits your requirements:
ASP.NET Query control[^]

Regards
Espen Harlinn
 
Share this answer
 
Comments
Albin Abel 20-Feb-11 11:20am    
The best answer so far. my 5
Espen Harlinn 20-Feb-11 12:37pm    
Thank you AlbinAbel!
fjdiewornncalwe 20-Feb-11 15:08pm    
Excellent. +5.
Espen Harlinn 20-Feb-11 15:19pm    
Thank you Marcus!
Sergey Alexandrovich Kryukov 20-Feb-11 15:09pm    
My 5 but, I think (and put as an Answer) the easiest alternative is generating (X)HTML as XML, is it not?
--SA
As HTML can be considered as XML (this is you HTML, so you can make it compliant to XHTML standard), anything of the level lower than XML make absolutely no sense.

To generate HTML with C# you can use, for example System.Xml.XmlTextWriter class or System.Xml.XmlDataDocument class. As HXML schema is available, you can always generate XML based in this schema which will yield valid HTML.

—SA
 
Share this answer
 
v2
Comments
Espen Harlinn 20-Feb-11 15:20pm    
Obviously an option, my 5
Sergey Alexandrovich Kryukov 20-Feb-11 16:02pm    
Thank you.
--SA
Hi,

An ASP.NET Repeater would be suitable in some cases however using the StringBuilder class to manually biuld up your HTML may also be a good method.

Hope this helps

Laurence
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Feb-11 15:07pm    
Laurence,
StringBuilder based solution is of course possible but makes no sense because it is of inadequately low level; any level below XML makes no sense as HTML is XML.
--SA
fjdiewornncalwe 20-Feb-11 15:08pm    
Agreed.
Laurence1234 20-Feb-11 16:17pm    
I see. Thanks for the feedback SA and Marcus.

Laurence

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