Click here to Skip to main content
15,891,033 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: the opposite of Page_Validate Pin
bVagadishnu24-Feb-11 10:24
bVagadishnu24-Feb-11 10:24 
GeneralRe: the opposite of Page_Validate Pin
Ali Al Omairi(Abu AlHassan)25-Feb-11 7:31
professionalAli Al Omairi(Abu AlHassan)25-Feb-11 7:31 
QuestionUsing user accounts and permissions from custom database for authentication and authorisation in ASP.NET 4? [modified] Pin
kbalias21-Feb-11 23:55
kbalias21-Feb-11 23:55 
AnswerRe: Using user accounts and permissions from custom database for authentication and authorisation in ASP.NET 4? Pin
JV999923-Feb-11 3:07
professionalJV999923-Feb-11 3:07 
AnswerRe: Using user accounts and permissions from custom database for authentication and authorisation in ASP.NET 4? Pin
Lisa Z. Morgan23-Feb-11 6:07
Lisa Z. Morgan23-Feb-11 6:07 
QuestionPage methods subscribing to Control Events such as Load and PreRender Pin
swjam21-Feb-11 17:49
swjam21-Feb-11 17:49 
AnswerRe: Page methods subscribing to Control Events such as Load and PreRender Pin
senguptaamlan22-Feb-11 22:23
senguptaamlan22-Feb-11 22:23 
QuestionCreating an ASP.NET UserControl with collection-type property Pin
kensai21-Feb-11 3:47
kensai21-Feb-11 3:47 
How can I create a UserControl with a collection-type property which has a collection editor?

I've a CompositeControl with an ArrayList-type property which has CollectionEditor-type designer. You can see this property on Properties window with a "..." button which launches a collection editor. This works fine and all but I want to apply the same to a UserControl and I've couldn't manage to pull it off so far. I've done the same thing what I've done with my CompositeControl but the property either doesn't even show on Properties window of the UserControl or shows as a single value property with no "..." editor button.

This is what I've done with CompositeControl:

[
DefaultProperty("Contacts"),
ParseChildren(true, "Contacts"),
ToolboxData(
    "<{0}:QuickContacts runat=\"server\"> </{0}:QuickContacts>")
]
public class QuickContacts : CompositeControl 
{
    private ArrayList contactsList;

    [
    DesignerSerializationVisibility(
        DesignerSerializationVisibility.Content),
    Editor(typeof(ContactCollectionEditor), typeof(UITypeEditor)),
    PersistenceMode(PersistenceMode.InnerProperty)
    ]
    public ArrayList Contacts
    {
        get
        {
            if (contactsList == null)
            {
                contactsList = new ArrayList();
            }
            return contactsList;
        }
    }

AnswerRe: Creating an ASP.NET UserControl with collection-type property Pin
Ali Al Omairi(Abu AlHassan)22-Feb-11 4:38
professionalAli Al Omairi(Abu AlHassan)22-Feb-11 4:38 
Questionusing Microsoft.Office.Interop.Word + timeout Pin
Member 769046020-Feb-11 18:37
Member 769046020-Feb-11 18:37 
Questionhtml to code behind Pin
Ramkumar_S20-Feb-11 15:38
Ramkumar_S20-Feb-11 15:38 
AnswerRe: html to code behind [modified] Pin
Andy_L_J20-Feb-11 15:50
Andy_L_J20-Feb-11 15:50 
GeneralRe: html to code behind Pin
Not Active21-Feb-11 4:23
mentorNot Active21-Feb-11 4:23 
AnswerRe: html to code behind Pin
Anurag Gandhi20-Feb-11 22:43
professionalAnurag Gandhi20-Feb-11 22:43 
QuestionHelp in understanding PopupControlExtender Pin
simsen19-Feb-11 0:10
simsen19-Feb-11 0:10 
QuestionRe: Help in understanding PopupControlExtender Pin
Sunasara Imdadhusen21-Feb-11 23:22
professionalSunasara Imdadhusen21-Feb-11 23:22 
QuestionFormat Dynamic GridView at runtime Pin
Andy_L_J18-Feb-11 23:22
Andy_L_J18-Feb-11 23:22 
Questionc#+object copy Pin
Ramkumar_S18-Feb-11 16:30
Ramkumar_S18-Feb-11 16:30 
AnswerCross Post Pin
dan!sh 19-Feb-11 0:05
professional dan!sh 19-Feb-11 0:05 
QuestionRunning a web application on two windows Pin
xyz_999@hotmail.com18-Feb-11 5:19
xyz_999@hotmail.com18-Feb-11 5:19 
AnswerRe: Running a web application on two windows Pin
Steve Maier18-Feb-11 5:50
professionalSteve Maier18-Feb-11 5:50 
QuestionAssign a Textbox in the parent page from a ModalPopup in asp.net Pin
Vimalsoft(Pty) Ltd17-Feb-11 23:40
professionalVimalsoft(Pty) Ltd17-Feb-11 23:40 
AnswerRe: Assign a Textbox in the parent page from a ModalPopup in asp.net Pin
Anurag Gandhi18-Feb-11 0:35
professionalAnurag Gandhi18-Feb-11 0:35 
GeneralRe: Assign a Textbox in the parent page from a ModalPopup in asp.net Pin
Vimalsoft(Pty) Ltd18-Feb-11 0:55
professionalVimalsoft(Pty) Ltd18-Feb-11 0:55 
GeneralRe: Assign a Textbox in the parent page from a ModalPopup in asp.net Pin
Anurag Gandhi18-Feb-11 1:18
professionalAnurag Gandhi18-Feb-11 1:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.