Print Page | Close Window

ASP.NET

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2645
Printed Date: 19-Apr-2026 at 5:02pm


Topic: ASP.NET
Posted By: gregweb
Subject: ASP.NET
Date Posted: 30-Apr-2011 at 8:08pm
Is it possible to access the BOS from the code-behind of an ASP.NET page?
 
The reason I ask is that I have a registration page in ASP.net, and there is some initial configuration I would like to do at the same time before the person signs into the app the first time.  It would be great to be able to access the BOS from the code-behind.  The only alternative I can think of is direct database access.
 
Greg
 
 



Replies:
Posted By: kimj
Date Posted: 01-May-2011 at 6:02pm
You can create an EntityManager in an ASP.NET application, just as in any other type of application.  That EntityManager can work in 2-tier or n-tier mode too.  If your registration page is at the same site as your BOS it will be easiest to use the EM in 2-tier mode, and do whatever queries and saves you need.  If the BOS is at a different site that's not problem either - the EM can connect to the BOS and then do what it needs.


Posted By: gregweb
Date Posted: 03-May-2011 at 2:56pm
Wow, that's awesome. 
I didn't realize the whole DevForce framework worked inside of ASP.net websites in the same way that it works for SL and WPF apps.  
 
It seems to me that there is a lot of potential use of DevForce from developers creating websites who want an easier way to get data in and out of a database.
 
Greg


Posted By: kimj
Date Posted: 04-May-2011 at 8:36am
Thanks, Greg.  DevForce does work in SL, desktop and ASP.NET, and hopefully more in the not too distant future.  I guess we need to improve our messaging!



Print Page | Close Window