"CS" <CS@discussions.microsoft.comwrote in message
news:4A**********************************@microsof t.com...
The application is written in Power Builder.
Our app is an object oriented app, we created our own framework where we
relly heavilly on inheritance of graphic objects (windows, dialog boxes,
tab
controls ....).
Is this something that we can acomplish in ASP . Net? Is it possible to
build some sort of OO framework with web forms where you inherit from base
classes forms?
Hmm - not really. Like I said, you really need to forget all about WinForms
and get yourself into a WebForms mindset, specifically with regard to
ASP.NET.
E.g. in the latest version of ASP.NET, there are MasterPages - templates if
you like. They essentially provide a skeleton into which content is placed.
So, if you had 100 WebForms all of which had to have the same header, menu
and footer, you would create the MasterPage once and then each of the
content pages individually. It is also possible to tell a content page to
use a different MasterPage at runtime.
But that's just the GUI. Behind that, of course, you have access to the
whole .NET Framework (or, at least, as much of it as can be accessed by
ASP.NET) which will give you full object-orientated functionality - base
classes, inheritance, encapsulation, polymorphism - the works.
Then, of course, you have ADO.NET for database connectivity.
I think the two best pieces of advice I can give you are:
1) buy a decent beginner's guide to ASP.NET - you generally can't do much
better than Wrox:
http://www.amazon.com/gp/product/076...167152?ie=UTF8
Read it and work through the examples.
Then, try this:
http://www.amazon.com/gp/product/076...167152?ie=UTF8
2) Don't make the mistake of thinking that you can upgrade a PowerBuilder
desktop app to an ASP.NET app. By all means, use your existing app as a
prototype, but you really need to redesign it from the ground up.