473,503 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp.net pluggable pages

I've a requirenment that maybe its too hard to have, but I hope someone has
a good suggestion...

Basically, I need to create some pluggable pages in an asp.net application.
The pages are simple data management related (search data, shows, edit, and
so on). The Business Entities, BLL and DAL layer have a pluggable system to
create personalization of some objects, and I need to create a GUI related
to the provider the application is using.
An example:
- I can have and order entity, with some properties
- I can have an asp.net layer that users use to retrieve (with filter
options on the existing properties), edit and save orders
- now I subclass the order entity and related classes (DAL methods to
save/retrieve, etc), to create a structure customized to a specific client.
I use a class factory with a configuration file to create all classes
related to order, as using a provider pattern. My app creates instances of
the subclasses items, and all can work (I think).
- now, how can I load the right GUI based on same configuration settings? I
need to mantain a single web application because there are a lot of
functions that are shared, but I need that my GUI "shows the right pages",
plugged as the logic is.

I hope it's clear...

Is there any pattern to have this goal?
thanks
Nov 13 '06 #1
4 1739
look at the model-view-controller pattern.

-- bruce (sqlwork.com)

"Trapulo" <tr*****@noemail.noemailwrote in message
news:OO**************@TK2MSFTNGP03.phx.gbl...
I've a requirenment that maybe its too hard to have, but I hope someone
has a good suggestion...

Basically, I need to create some pluggable pages in an asp.net
application. The pages are simple data management related (search data,
shows, edit, and so on). The Business Entities, BLL and DAL layer have a
pluggable system to create personalization of some objects, and I need to
create a GUI related to the provider the application is using.
An example:
- I can have and order entity, with some properties
- I can have an asp.net layer that users use to retrieve (with filter
options on the existing properties), edit and save orders
- now I subclass the order entity and related classes (DAL methods to
save/retrieve, etc), to create a structure customized to a specific
client. I use a class factory with a configuration file to create all
classes related to order, as using a provider pattern. My app creates
instances of the subclasses items, and all can work (I think).
- now, how can I load the right GUI based on same configuration settings?
I need to mantain a single web application because there are a lot of
functions that are shared, but I need that my GUI "shows the right pages",
plugged as the logic is.

I hope it's clear...

Is there any pattern to have this goal?
thanks


Nov 13 '06 #2
Hello Trapulo,

From your description, what you want to do is building a pluggable/dynamic
presentation layer which will display different GUI interface on web
according to the different client consumers, correct?

Based on my experience, to build such as dynamic web application
presentation system, you can consider the following options(depend on the
flexibilty and control granularity you want):

1.According to different client users, you can create multiple ASP.NET ascx
usercontrols which have different user interface(controls and processing
code behind logic...). At runtime, on the main page, you can dynamically
load the usercontrols according to the client user. This approach require
us to predefine those usercontrols and won't give 100% dynamic creation.
However, it is the preferred approach if you have limited number of client
users that will need customized GUI. Also, it will make the development
much easier.
2. You can 100% dynamically create the UI of an ASP.NET web page since
ASP.NET support dynamically create server controls. You can store the
different GUI layout of page in database(such as control's type and
location) and at runtime dynamically create and add those controls onto
page. I've ever met some ones who use XML file or content to store such
layout info.

Here are some information about create dynamic UI in ASP.NET:
http://support.microsoft.com/kb/317794

http://www.beansoftware.com/ASP.NET-...Interface.aspx

http://dotnet.sys-con.com/read/38932.htm

Hope this helps some. If you have any further questions or any other
consideration on this, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

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

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.

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

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

Nov 14 '06 #3
Hello Steven,
I think I'll use your suggestion #1.
This way requires I create a single monolithic asp web layer and not a
really pluggable component (as I do for bll and dal), but I have not too
many customers so it can be a good solution because it's very simple to
implement.

Thanks

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:Hf**************@TK2MSFTNGXA01.phx.gbl...
Hello Trapulo,

From your description, what you want to do is building a pluggable/dynamic
presentation layer which will display different GUI interface on web
according to the different client consumers, correct?

Based on my experience, to build such as dynamic web application
presentation system, you can consider the following options(depend on the
flexibilty and control granularity you want):

1.According to different client users, you can create multiple ASP.NET
ascx
usercontrols which have different user interface(controls and processing
code behind logic...). At runtime, on the main page, you can dynamically
load the usercontrols according to the client user. This approach require
us to predefine those usercontrols and won't give 100% dynamic creation.
However, it is the preferred approach if you have limited number of client
users that will need customized GUI. Also, it will make the development
much easier.
2. You can 100% dynamically create the UI of an ASP.NET web page since
ASP.NET support dynamically create server controls. You can store the
different GUI layout of page in database(such as control's type and
location) and at runtime dynamically create and add those controls onto
page. I've ever met some ones who use XML file or content to store such
layout info.

Here are some information about create dynamic UI in ASP.NET:
http://support.microsoft.com/kb/317794

http://www.beansoftware.com/ASP.NET-...Interface.aspx

http://dotnet.sys-con.com/read/38932.htm

Hope this helps some. If you have any further questions or any other
consideration on this, please feel free to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

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

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.

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

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

Nov 16 '06 #4
Thanks for your followup Trapulo,

Yes, the #1 approach is quite convenient for implement and we can leverage
design-time support for contructing UI.

Good luck!

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

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

Nov 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
290
by: oliver.wulff | last post by:
I'm wondering if it is possible in .NET to plug-in a custom authentication & authorization mechanism. So, that IIS applications and Webservice would be authenticated against this custom...
4
1598
by: bob_yohan | last post by:
Hi all, I am rather new to database design and modelling concepts in general and was hoping for some advice on a problem I am trying to solve. I have designed a piece of software that creates a...
0
1160
by: François Pinard | last post by:
Hi, everybody. I wish someone could advise me. I'm running in circles, trying to find an elegant way to devise run-time pluggable classes. It all goes around method resolution order, I guess....
0
1060
by: Richard C | last post by:
Hello, In Java the XML DOM is interface based, hence pluggable implementations. In ..NET it's been in from the start of course and is class based, but I notice there appear to be some alternate...
2
2876
by: Johannes | last post by:
Hi there, i´m trying to programm an Asynchronous Pluggable Protocol. Does anyone has some SampleCode for me, because i can´t get into it and could not find any C#-Sample Code in the www ...
3
6733
by: Juerg Staub | last post by:
Hi, I have implemented IInternetProtocol and IInternetProtocolRoot in my protocol handler. Whenever I try to register the instance with IInternetSession::RegisterNameSpace, I receive a...
5
2789
by: Fredo | last post by:
I was hoping I could do something like: WebRequest req = new WebRequest("mk:whatever") to retrieve HTML help topics via the mk: protocol. But it appears that http: and file: are the only...
0
1280
by: Thomas G. Marshall | last post by:
A friend of mine is making simple web pages for clients only interested in the basic web presence. She has bumped into a couple clients however that would like to branch into online purchasing,...
2
2037
by: jmDesktop | last post by:
I'm using C#, but I don't know that it matters for this question. I know that many experienced folks are on here, so sorry for being off topic. I am finally at a point where I want to and I think...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.