Jump to content
Xtreme .Net Talk

sharing code behinds amongst mobile, web, and windows forms


Recommended Posts

Posted

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? I'm 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 I'm trying to do something here that .net has a much better solution for too.....

 

Thanks very much.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...