Tech Off Thread

2 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

CREATING COMPONENT IN ASP.NET / C#

Back to Forum: Tech Off
  • User profile image
    JuNK64

    I want to create a component which includes some components

    I  try to describe

    Think about a panel (JUNKPANEL) and inside this panel a label and 4 buttons and a new property contains an integer and a string value

    This is my core item I want to create another panel (ROOTPANEL) contains dynamic array of JUNKPANEL

    After that I want to add a property which defines the count of JUNKPANEL

    I want this component in an asp.net webpage by c#

    is it possible ?

    Can somebody help me for this ?

  • User profile image
    JParrish

    Yes it's possible. You should probably create a user control that has your label and four buttons. Then, just drop a panel into a page as your "root panel" and use the panels "Controls" collection to handle adding and removing your composite controls at run time.

    http://samples.gotdotnet.com/quickstart/aspplus/doc/webpagelets.aspx


Conversation locked

This conversation has been locked by the site admins. No new comments can be made.