Click here to Skip to main content
15,892,161 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Tab based programming Pin
Christian Graus25-Jun-08 15:18
protectorChristian Graus25-Jun-08 15:18 
QuestionLinking to most recent by date [modified] Pin
midoujulessama25-Jun-08 14:49
midoujulessama25-Jun-08 14:49 
AnswerRe: Linking to most recent by date Pin
Christian Graus25-Jun-08 15:24
protectorChristian Graus25-Jun-08 15:24 
GeneralRe: Linking to most recent by date Pin
midoujulessama25-Jun-08 16:21
midoujulessama25-Jun-08 16:21 
GeneralRe: Linking to most recent by date Pin
Christian Graus25-Jun-08 18:13
protectorChristian Graus25-Jun-08 18:13 
AnswerRe: Linking to most recent by date Pin
ravindra_ee24825-Jun-08 21:51
ravindra_ee24825-Jun-08 21:51 
GeneralRe: Linking to most recent by date Pin
midoujulessama26-Jun-08 10:21
midoujulessama26-Jun-08 10:21 
QuestionServerControl property defined as Interface isn't available in Intellisense Pin
Mark J. Miller25-Jun-08 11:36
Mark J. Miller25-Jun-08 11:36 
I am creating a server control library and I have a control which has a property named menu. The menu property can be a any server control which inherits from a class named MenuBaseItem. The property is currently defined like this:

<br />
        [NotifyParentProperty(true)]<br />
        [PersistenceMode(PersistenceMode.InnerProperty)]<br />
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]<br />
        public List<MenuBaseItem> items<br />
        {<br />
            get<br />
            {<br />
                return _items;<br />
            }<br />
        }<br />
<br />


What I'd like to be able to do is use an interface instead:

<br />
        [NotifyParentProperty(true)]<br />
        [PersistenceMode(PersistenceMode.InnerProperty)]<br />
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]<br />
        public List<IMenuItem> items<br />
        {<br />
            get<br />
            {<br />
                return _items;<br />
            }<br />
        }<br />
<br />


The above interface IMenuItem will allow an object to convert itself to a menu item so I can include other types as menu items.

My problem is that this will compile, but when I open my aspx template and try to edit the property I no longer get any intellisense list of controls which can be used. Is there another interface which must be implmented as part of IMenuItem that will allow intellisense to work with my solution?

Code responsibly: OWASP.org
Mark's blog: developMENTALmadness.blogspot.com

QuestionUnable to set focus to a text box contained in a gridview's row cell after post-back and binding. Pin
Steve Holdorf25-Jun-08 10:57
Steve Holdorf25-Jun-08 10:57 
AnswerRe: Unable to set focus to a text box contained in a gridview's row cell after post-back and binding. Pin
Masood Kochi,SSF25-Jun-08 19:49
Masood Kochi,SSF25-Jun-08 19:49 
GeneralRe: Unable to set focus to a text box contained in a gridview's row cell after post-back and binding. Pin
Steve Holdorf26-Jun-08 2:44
Steve Holdorf26-Jun-08 2:44 
AnswerRe: Unable to set focus to a text box contained in a gridview's row cell after post-back and binding. Pin
boy.pockets25-Jun-08 19:52
boy.pockets25-Jun-08 19:52 
Questionpage navigation Pin
jds120725-Jun-08 8:42
jds120725-Jun-08 8:42 
AnswerRe: page navigation Pin
Zoltan Balazs25-Jun-08 9:57
Zoltan Balazs25-Jun-08 9:57 
QuestionExam questions. Are they wrong or what? Pin
AlexeiXX325-Jun-08 7:45
AlexeiXX325-Jun-08 7:45 
NewsTools to Check Your ASP, ASP.NET Site For SQL Injection Attacks Pin
brucedkyle25-Jun-08 6:06
brucedkyle25-Jun-08 6:06 
GeneralRe: Tools to Check Your ASP, ASP.NET Site For SQL Injection Attacks Pin
Christian Graus25-Jun-08 12:22
protectorChristian Graus25-Jun-08 12:22 
Questionhow come script works in firefox but not ie Pin
zzsoulzz25-Jun-08 5:42
zzsoulzz25-Jun-08 5:42 
AnswerRe: how come script works in firefox but not ie Pin
Parwej Ahamad25-Jun-08 5:45
professionalParwej Ahamad25-Jun-08 5:45 
GeneralRe: how come script works in firefox but not ie Pin
zzsoulzz25-Jun-08 6:03
zzsoulzz25-Jun-08 6:03 
GeneralRe: how come script works in firefox but not ie Pin
Parwej Ahamad25-Jun-08 6:17
professionalParwej Ahamad25-Jun-08 6:17 
GeneralRe: how come script works in firefox but not ie Pin
zzsoulzz25-Jun-08 6:23
zzsoulzz25-Jun-08 6:23 
GeneralRe: how come script works in firefox but not ie Pin
Parwej Ahamad25-Jun-08 6:34
professionalParwej Ahamad25-Jun-08 6:34 
GeneralRe: how come script works in firefox but not ie Pin
zzsoulzz25-Jun-08 6:39
zzsoulzz25-Jun-08 6:39 
GeneralRe: how come script works in firefox but not ie Pin
Parwej Ahamad25-Jun-08 6:47
professionalParwej Ahamad25-Jun-08 6:47 

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.