RE: Sharing Objects Between ASP.NET "Sites"/Projects



Hi Alex,

Based on your description, you're building two websites, one for mobile
clients and one for normal pc clients and they have same functionality and
backend data store, so you're wondering how to share the code logic as much
as possible between them, correct?

For this scenario, I think the most different of the two websites here are
of the ASP.NET front-UI interfaces, Mobile application's front UI layout
and display differ much from normal web application. I think what you can
share most between them should be the middle tier business or data access
components. Such as validation rules or data access utilities.

As you've mentioned that you will need to create separate copy of classes
put in each application's App_Code folder. Then, I suggest you consider
move much classes(that is common to both applications) into a shared class
library project. And both of the two web application can reference to the
same class library project to use those common component classes. How do
you think?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.


.



Relevant Pages

  • RE: Dynamic LINQ ITable
    ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ... Subject: Dynamic LINQ ITable ... We enable our clients to create custom fields they wish to ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: VS.NET 2005 Mobile Web Application Template?
    ... is there a way to set TextBox control to "multiline" ... "WebSite" and then add Mobile Page or Mobile ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.mobile)
  • RE: Bookmarking in Mobile
    ... As for the "bookmark" you mentioend here, do you mean to add the web page ... mobile page into IE favoriate and it works. ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: FileUpload Control on Mobile Form
    ... Regarding on the ASP.NET mobile page fileuploading issue, ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ... I am trying to provide the user with a file upload facility on mobile ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • RE: adp application hangs
    ... I understand that your clients using ADE file sometimes experience ... Since the issue occurs when typing text info in fields, ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.access.adp.sqlserver)

Loading