Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web page data output

Status
Not open for further replies.

codehoper

Programmer
May 14, 2001
13
0
0
US
I am trying to convert some Coldfusion web sites to C# and I am having trouble figuring out how to output my data. We have pages that pull in some customer specific content from our DB. so far all i have been able to do is create a the data data source and I can output it into a data grid, but that does not fit my content needs.

Example: Welcome <Customer name here>,

Your daily special today is <Special description here>. Blah blah blah.....

Where can I find information on how to take the query results and populate those two areas? Or how do I do it?

Thank you.
 
codehoper

asp.net is an http service framework. the framework is a pipeline that processes an http request and responds with an httpresponse. the framework has a number of extension points that a developer can hook into to provide custom functionality.

the default html engine built on top of asp.net is webforms. you will either love it or hate it. one the one hand there is no other html engine like it. with concepts like postback, viewstate and page life cycle. it's main purpose was migrate desktop developers to the web. the problem is it absrtracts the web enviornment so much that developers don't really understand the web. it also make a simple concept like html very complicated.

an alternative to webforms is MVC (model view controller) the idea here is to separate the concerns to presenting the data with the concerns of controlling the data. html isn't complicated by some server side abstraction. the user is free to over much of the default behavior. you want Inversion of control, done. a different html rendering engine, done. a different data access framework, done. MVC allows for plugable components, where webforms does not.

there are 2 prominate MVC frameworks MS MVC and Castle Monorail. there is a 3rd framework gaining visibility. FUBU MVC by Jeremy Miller. there is a lot of information on the web about all 3.

HTH getting you pointed in the right direction.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Thank you for the help. I will look into the other Frameworks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top