CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 6/29/2005 12:05:32 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 21 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
krsouthern
Asp.Net User
Custom/Composite control design advice6/29/2005 12:05:32 PM

0/0

Hi,

I'm currently planning out how best to build a shopping cart composite control and would appreciate anyones views on this.

I have a third party component (dotnetcart) that provides the bulk of the functionality in an existing .dll.

What I'm hoping to achieve is my own implementation of the cart, in a custom/composite control, that I can then re-use, to prevent changing many .aspx pages everytime I implement a new cart solution.

I was thinking a good way to do this would be to build my own control that sits on top of the third party component and implements any of the logic that I require, therefore meaning a change that is required to all cart implementions does not need to be done in many places?

Is this a good way of approaching this, or am I on the completely wrong lines?

Any thoughts greatly appreciated.

Thanks
Kieran

subdigital
Asp.Net User
Re: Custom/Composite control design advice6/29/2005 5:24:12 PM

0/0

I think that Server controls are best used when they might appear many times within one application.  In your case, I wouldn't go through the trouble of constructing a server control, when a user control could do just fine.  You can encapsulate most of the functionality and rendering using a user control.

You will most likely only have the control in 1 section of each application, and this suits a user control just fine.  You can also easily customize the UI through css so that the control will integrate nicely with different designs.

As an example, a couple good uses of a server control could be a nice ComboBox control, or an AJAX-capable textbox, or something else that might appear many times on 1 page, or occur on many separate pages.

Hope this helps :)

Ben Scheirman
http://www.flux88.com
krsouthern
Asp.Net User
Re: Custom/Composite control design advice7/4/2005 1:52:10 PM

0/0

Thanks subdigital. I've been having a think about this and have another question if you dont mind. What happens if there are 10 carts in place, each using the usercontrol for display and I then need to make a global change to all the user controls. Would this result in me having to edit every user control or would I just be deploying a new .dll similar to if I was changing a server control?

My aim is to avoid having to duplicate code and making changes in many places...

Hope this makes sense.

Cheers
K

subdigital
Asp.Net User
Re: Custom/Composite control design advice7/5/2005 4:38:21 AM

0/0

absolutely!  deploy updated dll's and you're done!

Ben Scheirman
http://www.flux88.com
krsouthern
Asp.Net User
Re: Custom/Composite control design advice7/6/2005 9:15:41 AM

0/0

So I would need to deploy the .dll to each version of the app. What would happen if there was a change to the .ascx page itself? this would still result in deploying the .ascx page to all those apps, rather than just deploying the .dll or by design could I ensure that all logic is in the .dll rather than the .ascx page?

Cheers
K

subdigital
Asp.Net User
Re: Custom/Composite control design advice7/6/2005 1:40:04 PM

0/0

I think you're mixing things up.  A server control is entirely contained inside of a dll.  For example, the dropdownlist is a server control.  The Calendar control is a server control.  There can be multiple server controls on one page.

In order to update all of the sites that use those to a newer version, all you have to do is change out the dll.

A user control is part of the web project, and if you wanted to update all of the websites that use it, you'd have to update the dll AND update the ascx.  Not to mention, it's a little cumbersome to call user controls from many pages (you have to consider the paths)....


Ben Scheirman
http://www.flux88.com
NCprofile
Asp.Net User
Re: Custom/Composite control design advice6/8/2006 5:06:41 PM

0/0

Did you ever get this to work? We have tried to customize the catalog interface including,

1. adding HTML controls (other than textbox and checkbox)
2. adding ASP.NET server side controls
3. adding ASP.NET validators

but have found it to be very difficult.Were you able to add your user/server controls on top of the dotnetcart for added custimization?

Thanks in advance.

ncprofile

NCprofile
7 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP. Net 3. 5 Server Controls and AJAX Components Authors: Rob Cameron, Dale Michalk, Pages: 740, Published: 2008
Artificial Intelligence Abstracts Annual 1989 Authors: unknown, Pages: 604, Published: 1991

Web:
Composite control with design-time support I welcome websites and book recommendations and any advice you can give. .... In order for a custom composite control to have support in the visual designer ...
CodeProject: An ASP.NET Composite Control for US and UK dates ... A composite custom control and validator for handling US/UK dates; Author: David Truxall; ... How to build a chart control with full design-time support. ...
Continuing: Data binding to a CompositeControl I am very new at using the CompositeControl or CompositeDataBoundControl and at ... control over it then scrap it ... and design proper tables is my advice. ...
ASP.NET Custom Controls - Composites - Stack Overflow If you don't plan on actual CSS/markup/design changes on the controls themselves later, ... Child Control Initialization in Custom Composite in ASP.NET ...
Server Control Collection Properties Solutions,Problems MVP Advice ... design a server control for use by the other developers in my company. The Plan: I wanted to develop a group of composite server controls ...
CompositeControl properties not reflected in Property window - ASP ... Filed under: design time, composite control, .Net 2.0 ..... one on custom controls, and one about design-time support is "Pro ASP. ...
15 Seconds : Protecting Users from Suspect Textual Data It instead handles the Click event and raises the custom event Check. If a composite control handles events raised by its child controls, it must wire the ...
AspAlliance NewsReader: Posts in microsoft.public.dotnet.framework ... Hello fellow Comrades, I am writing a custom control and trying to only ... CompositeControl fails to display in Design view Replies (5) 11 October 2007 ...
CodeProject: A Custom Dialog Box Control. Free source code and ... Oct 21, 2005 ... How to build a chart control with full design-time support. ..... Custom Templated CompositeControl/CompositeControlDesigner, member ...
Adding a GridView and DataSource inside of a Web Custom Control ... Thank you for the advice Samu Zhang! I found that I had to inherit from CompositeControl and not WebControl for it to be viewed in design ...




Search This Site:










borrowing ideas from existing dnn implimentation

is it possible to have a web custom control( not a user control) in the app_code folder of a web project?

asp.net rss aggregator

help creating my own enumeration

business objects as data source for reporting services

forms authentications 404... what in the name of all that is holy....

can't edit database from personal site

synchronize local and remote database

hello damn i love dotnetnuke!

installation problem with .text 0.96

dnn newb needs install guide (dnn site throwing errors)

adding new portals with large (750+ dnn parent portals) setup slow

sql server does not exist error

unexpected output from comm port

text box values are not being considered?

generating random codes

can anyone help?

button and linkbutton

hey! what wrong with the damn .net framework 1.1 sp1 for w2k3?!

how to populate dropdownlist with portal pages

having trouble adding web reference

nested frame

dnn's page size and bandwidth optimization.

help! flash integration in header

user_name needs to be declared?

how to parse wikipedia xml

store user id

confirmation page and saving state/session

office 2007 documents to database, dynamically generate on demand

theming with multiple css files some hard coded some changed programmatically

 
All Times Are GMT