Anyone know .net?

tek-monkey

wanna see my snake?
Cos I'm on a training course using it, and I don't! REALLY shoulda checked the pre-requisites when my boss booked this.....
 

tek-monkey

wanna see my snake?
Think I'll be OK, its using Visual Web Dev 2008 and I now have it installed on the laptop. Just a different way of thinking, I'm a classic ASP monkey none of this .net shiz. Code behind, behind where? WTF is wrong with having each page as a seperate entity?

I really am living in the past, I feel old!
 

The Stafford Beast

Well-Known Forumite
The difference is that you have your server-side .NET objects (e.g. image, textbox, upload, login tags etc) create the HTML for you, and the code-behind wires up all the processing stuff. You can have the code all in one aspx page, but it's better to have separate code files (.vb / .cs) to the aspx pages so you can easily separate the UI design from the implementation. It's all pretty much the same as if you have all your vb code stuffed at the top of your asp file before your HTML is rendered at the last moment. The magic is when you use the .NET tags, (e.g. in the <asp:Login> tag, and datagrids/gridviews outputting tables for you with editable rows etc, all in about 3 lines of code). The more you use it the more you'll find out how easier it will make things. The good thing about letting it generate the HTML for you is that it uses best practise ways of generating standards-compatible HTML, and you can even convert a HTML 1.1 app into an XHTML app in one line of code (if you wanted to). Also ascx (custom controls) are excellent for code-reuse.

Be warned that you will have lots of headaches while learning it, but you'll always find that if you are hitting your head against the wall over a problem for about 2 hours and have not found a solution for what you're doing, then you're not using the right method. Remember - there is always an easier way of doing what you want out there - you've just got to find it!

I wish I went on a course to learn .NET - I had to find out how it all worked the hard way using only IIS6, ASP.NET 1.0 framework, notepad and a screwdriver! Then after a month, my boss bought me a book on ASP.NET 2.0 C#, and eventually Visual Web Developer LOL.

Anyway, I wish I could be of more help, but I probably work for your competitor, so I'll say no more other than "good luck"!
 

tek-monkey

wanna see my snake?
Thanks a lot for the info, I keep hearing how much easier this is its just a bit alien to me. Unfortunately this isn't a .net course, its a course for ektron CMS400.net where they expect me to know .net already! Survived day one fine, lets see how today goes.
 

shoes

Well-Known Forumite
Looks pretty powerful, have you looked at any of the sites made with ektron cms400? They look superb!

Doubt I'd be able to use it though, wordpress confuses the hell outta me!
 

tek-monkey

wanna see my snake?
Well if you need a copy I have one, will only work locally though without a key. Finished for the day so now back at the hotel, about to install it to try and make a site as I don't think I took much in today. The teaching method seems to be "Do this in this order" rather than "Now we need to do this, which uses this control which works like this". All I've learnt is to follow a list of instructions, no real benefit really!

God, what an exciting life I lead. 4 days away on expenses and I'm sat in my hotel coding. Already on the cider though.... :D
 

gdavies

Well-Known Forumite
don't blame you .net is a good charm but you do hav to get used to it i picked it up in bits on visual studio 2008 which good old microsoft gave me to complete something in some of there software and i found it handy it uses shorter lines for some things which helps but it truly is a new way of thinking for most of it i was using it with visual basic so the web beased aspect is just server based tbh. Worth learning though or at least I think.
 
Top