• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Database to HTML in C#.NET

SoundTheSurrender

Diamond Member
What would this be called.

You read a database that has some HTML code and display it as HTML?

Much like how forums work when a user posts a message with a image posted and stuff like that?

Thanks
 
With code?

Sorry, couldn't resist.

Tell us more about what you want to do, and where / how the C# is running.

Is this an ASP.NET server where you want to respond to a page request by retrieving some content like a set of thread posts, and run the content through a filter to change [ b ] to < b > etc. after carefully validating the content against attacks / exploitst?
 
Yeeeahhh, need some more information about what you'd like to accomplish exactly. Sure you can grab information from an input form, write it to a database, and then write out the new change (in your forum example). It's not IMO a hugely complex thing but there's a lot of different smaller tasks to learn and be aware of (security is a good point as DaveSimmons mentioned).
 
When a client browser requests an HTML resource the web server simply reads the page off disk and sends it. When a browser requests an executable resource, such as .cgi, .aspx, .php, etc., the web server finds the referenced resource and executes it. That resource queries the database and formats the returned data into HTML or XML and hands it back to the web server. The server then returns it to the client. Round-trip complete.
 
Back
Top