Click here to Skip to main content
16,011,383 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem/bug in .net class library Pin
31-Jan-02 22:52
suss31-Jan-02 22:52 
GeneralRe: Problem/bug in .net class library Pin
31-Jan-02 23:37
suss31-Jan-02 23:37 
QuestionHow do I use ParseControl? Pin
31-Jan-02 10:04
suss31-Jan-02 10:04 
AnswerRe: How do I use ParseControl? Pin
James T. Johnson31-Jan-02 10:36
James T. Johnson31-Jan-02 10:36 
GeneralRe: Thanks but... Pin
31-Jan-02 10:58
suss31-Jan-02 10:58 
GeneralRe: Thanks but... Pin
James T. Johnson31-Jan-02 11:10
James T. Johnson31-Jan-02 11:10 
GeneralRe: Thanks but... Pin
31-Jan-02 11:33
suss31-Jan-02 11:33 
GeneralRe: Thanks but... Pin
James T. Johnson31-Jan-02 14:36
James T. Johnson31-Jan-02 14:36 
ok, now we're getting somewhere Smile | :)

There are only two classes that inherit from TemplateControl, Page and UserControl. So your control is going to have to inherit from one of these (most likely UserControl) to make use of the ParseControl method.

Because ParseControl is not a static method you need an instance of TemplateControl (or a derivative of it) to call it. But TemplateControl is an abstract class so you cannot create an instance of it, leaving you with having to have an instance of one of TemplateControl's derivatives. Out of the box your choices are Page and UserControl.

Is it possible to change your control so it inherits from UserControl instead of Control?

I'll admit I'm no where near up-to-date on ASP.NET as I am C# and the rest of the framework, so I'm just throwing out ideas Blush | :O

James

Sonork ID: 100.11138 - Hasaki
"Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. Big Grin | :-D " - Michael P Butler Jan. 18, 2002
GeneralThank you!! Pin
1-Feb-02 11:09
suss1-Feb-02 11:09 
GeneralJag Arrays again, sorry Pin
31-Jan-02 0:25
suss31-Jan-02 0:25 
GeneralRe: Jag Arrays again, sorry Pin
James T. Johnson31-Jan-02 9:15
James T. Johnson31-Jan-02 9:15 
GeneralJag Arrays Pin
30-Jan-02 1:54
suss30-Jan-02 1:54 
GeneralRe: Jag Arrays Pin
rchiav30-Jan-02 5:17
rchiav30-Jan-02 5:17 
GeneralRe: Jag Arrays Pin
James T. Johnson30-Jan-02 9:36
James T. Johnson30-Jan-02 9:36 
GeneralRe: Jag Arrays Pin
rchiav30-Jan-02 9:54
rchiav30-Jan-02 9:54 
GeneralRe: Jag Arrays Pin
30-Jan-02 20:45
suss30-Jan-02 20:45 
GeneralSockets Pin
rchiav29-Jan-02 17:48
rchiav29-Jan-02 17:48 
GeneralRe: Sockets Pin
James T. Johnson30-Jan-02 9:38
James T. Johnson30-Jan-02 9:38 
GeneralRemove title bar Pin
paulb29-Jan-02 13:54
paulb29-Jan-02 13:54 
GeneralRe: Remove title bar Pin
James T. Johnson29-Jan-02 17:45
James T. Johnson29-Jan-02 17:45 
GeneralThe Final Version Pin
Fayez Al-Naddaf29-Jan-02 10:14
Fayez Al-Naddaf29-Jan-02 10:14 
GeneralRe: The Final Version Pin
James T. Johnson29-Jan-02 12:53
James T. Johnson29-Jan-02 12:53 
GeneralRe: The Final Version Pin
Fayez Al-Naddaf30-Jan-02 5:29
Fayez Al-Naddaf30-Jan-02 5:29 
Generalwindows service Pin
omkamal28-Jan-02 6:18
omkamal28-Jan-02 6:18 
GeneralRe: windows service Pin
omkamal29-Jan-02 6:02
omkamal29-Jan-02 6:02 

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.