DotNet Transition
Thu 24 Jul 
search
members log in here
username
password
forgotten password?
Why join DotNet Transition?

Get paid to chat,
blog and mingle!

sign up now...



Feeds
RSS 

Technorati site tags
, , ,

New concepts - 1 - splitting code from html [posted by dotnetter 169 days ago - 58 views]

It didn't really take me long to start understanding how to do certain things in C# that I would have done in Coldfusion, ie the basics: for loops, if statements, database queries and so on.

On the flipside, perhaps the single largest learning curve in C# is the whole host of new concepts you need to learn. Once you get going though, it all pays off.

First off, the habbit of splitting out my server-side code from HTML display coding. This takes a fair bit of practice and lots of will-power.

What could be achieved with cfoutput in Coldfusion can pretty-much be achieved with %= % in C#. This SHOULD NOT BE OVER USED.

Anyone who has used Coldfusion CFCs, components and objects, will have a slight advantage here. The idea is that in your aspx file you stick to HTML, and the odd asp tag(to output a pre-rendered bit of html, made from a function in your .cs file).
0 comments | 58 views


tags: , , , , bookmark this page to del.icio.us


Comments

No comments posted yet, why not be first?

You must log in or register to post a comment.