sharing code behinds amongst mobile, web, and windows forms

earl99

New member
Joined
Nov 12, 2003
Messages
2
or something like that....

Is there an easy way to reuse asp.net and asp.net mobile "code behind" code in a Windows form, say without creating separate projects and cutting and pasting code back and forth? Im guessing there is, but everything I see in the beginners tutorials and quick starts treats .net mobile forms very separately from .net web forms and very separately from .net windows forms.

Maybe this is a crazy idea, but the idea is: build a .net mobile app, launch with Internet-enabled-all-the-time type customers first. Next support full laptops in the field that may not be connected at all times with a windows app that saves to a local MSDE DB, and transfers when it can connect next. And so on.

Basically I want the same DB structure on the web server and on the laptops, allowing the processing code to be the same regardless of whether the form is mobile, web, or windows. Then build some kind of replication bridge between the local DBs and the web server DB when the user has Internet connectivity next. Maybe Im trying to do something here that .net has a much better solution for too.....

Thanks very much.
 
Probably easier to move the common functionality out into its own Classlibrary(or multiple libraries) and reference this from the other projects.
 
class libraries

Could someone point me to a tutorial or a help section that would get me started with creating a common class library?

Thanks again.
 
Back
Top