reusing ASP.Net business logic in Smart Device applications

G

Guest

Hi,

Just now started working on Compact Framework using C#.

I've already got a web applicaton ASP.Net, C#.

Now my question is, if there is a way to make use of the business logic
developed in ASP.Net web application in the CE.NEt Application.

Say, if I got a login screen in the web appln for which I already wrote a
class which has got various methods to check the login details,properties to
store UserID, UserName..... is there any possibility of re-using the same
class in the smart Device application?

Thanks in advance
ys
 
A

Arun

Hi,
Need more information about your application, what you are really
trying to do.

If you have data stored locally as SQL CE tables you need to validate
your login credentials, you need to re work on your class that you have
written for ASP.Net.
Other than that if you follow the same Database structure in SQL CE and
use the business logic class, you can use the same class with little
modifications.

You can even try using Mobile Internet tool kit, if you stick on CF
application, you can even host a web service with all the methods and
access those from your CF application to do the business logic work
done.

Hope this helps,

Regards,
Arun.
www.innasite.com
 
G

Guest

Hi,

I'm trying to integrate a scanner(runs on CE) application with the existing
appln developed in ASP.Net, C#, MS SQL Server 2000.

So the web application ( desktop version ) is completed and now the
requirement has come for integrating with scanners.

I need to make the best use of the developed business logic for the new
application that sits on the scanner.

Is there any best possbile way to use the developed ASP.Net functions in my
scanner application.

For say, I have a class "user" that has got all the methods like
authenticate, properties like username, userrole etc in the desktop version,
how can I use them in the scanner application?


Regards,
srinivas
 
A

Arun

Hi Srinivas,

I understand that your desktop application needs to be integrated with
the PPC application. There are two kinds of applications Always
Connected/Occassionally connected. Your application if it falls under
Always Connected environment (WiFi/GPRS) you can use your existing
classes as is. You need to add those classes in PPC project and connect
to the SQL server directly from PPC using SqlClient.
Establishing connection is very slow and it needs to be done once at
the application start and end the connection at the application exit.
If your application is Occasionally connected (Takes data to PPC works
with that and updates at the end of the day thro a sync process) then
you need to rework on the existing classes to work with SQL Server CE.
You have several synchronizing options like
RDA (Remote Data Access)
Merge Replication
Web Services
Typically Web Services is slow compared to all others.

Hope this helps,
Regards,
Arun.
www.innasite.com
 
G

Guest

Hi Arun,

Thanks for the reply.

I need to use the Symbol RF Scanners. So, they'll will be connected to the
server all the time and the Response time must be pretty quick, hence I
avoided Web services.

So as you said, I'll try using the same code in the PPC and see how it goes.

Thank you.
Srinivas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top