Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Custom Control properties do not work at run time


Message #1 by "Madani Benghia" <benghia@h...> on Tue, 28 May 2002 20:41:47
 
could u send me the code files so that i can look at it ...

send it to me on anuragbhargava@h...

Regards
Anurag
> To those who developed Custom Controls :

> 
I>  have created a custom control using Visual Studio .NET.One of this 
c> ontrol prperties is called TheControls which is an array of type 
M> yWebControl[]

> When I compiled the control and drag and drop it in my aspx page it 
worked 
f> ine .I Also found that I am able to edit it from the properties window 
n> ad all the change I made are persistent.However when I switch to the 
HTML 
s> ource I found that VS.NET inserts the string :

> TheControls="MyWebControl[] Array" .This means it is trying to have a 
s> tring representation of this property rather than doing it 
p> rogramatically.So when I run the page I got this error:

> 'Cannot create an object of type MyWebControl from its string 
r> epresentation 'MyWebControl[] Array' for the 'TheControls' property.

> 

> Any help or adeas on how to fix this and wheather it has got something 
to 
d> o with creating custom Designers .

> 

> Thanks in advance

  Return to Index