Click here to Skip to main content
15,911,531 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: custom server control problem Pin
John Petersen30-Aug-06 0:12
John Petersen30-Aug-06 0:12 
GeneralRe: custom server control problem Pin
Jürgen Müller (jmse)30-Aug-06 0:38
Jürgen Müller (jmse)30-Aug-06 0:38 
GeneralRe: custom server control problem Pin
John Petersen30-Aug-06 1:01
John Petersen30-Aug-06 1:01 
GeneralRe: custom server control problem Pin
Jürgen Müller (jmse)30-Aug-06 1:33
Jürgen Müller (jmse)30-Aug-06 1:33 
AnswerRe: custom server control problem Pin
minhpc_bk30-Aug-06 1:37
minhpc_bk30-Aug-06 1:37 
GeneralRe: custom server control problem Pin
Jürgen Müller (jmse)30-Aug-06 2:46
Jürgen Müller (jmse)30-Aug-06 2:46 
GeneralRe: custom server control problem Pin
minhpc_bk30-Aug-06 15:48
minhpc_bk30-Aug-06 15:48 
GeneralRe: custom server control problem [modified] Pin
Jürgen Müller (jmse)30-Aug-06 22:19
Jürgen Müller (jmse)30-Aug-06 22:19 
Hi,

thanks again for your help.

I've tried your code and the component works fine.
No errors; all casts are OK.
I've added my component to the same test project and again the error occurs.

What I found out: the error only occurs when the component is added from the toolbox to a WebForm (regardless of added by doubleclick or dragged with the mouse). When the WebForm is closed and opened again in the designer, all of my components are processed without error.

My component and the designer are in an extra WebLibraray project. For debugging I use two instances of VS 2005.

The complete declaration of my component:

[
AspNetHostingPermission(SecurityAction.Demand, Level = AspNetHostingPermissionLevel.Minimal),
AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal),
ToolboxData("<{0}:MyComponent runat=\"server\"> </{0}:MyComponent>"),
ToolboxBitmap(typeof(MyComponent), "MyComponent.bmp"),
Designer(typeof(MyComponentDesigner)),
ParseChildren(false),
PersistChildren(true)
]
public class MyComponent: View, INamingContainer

Any idaes?

Regards

Jürgen


-- modified at 4:25 Thursday 31st August, 2006
GeneralRe: custom server control problem Pin
minhpc_bk31-Aug-06 1:52
minhpc_bk31-Aug-06 1:52 
GeneralRe: custom server control problem Pin
Jürgen Müller (jmse)31-Aug-06 22:01
Jürgen Müller (jmse)31-Aug-06 22:01 
GeneralRe: custom server control problem Pin
minhpc_bk31-Aug-06 23:05
minhpc_bk31-Aug-06 23:05 
QuestionIt takes a wery long time to start debugging my code Pin
Ann-Sofi29-Aug-06 20:48
Ann-Sofi29-Aug-06 20:48 
AnswerRe: It takes a wery long time to start debugging my code Pin
minhpc_bk30-Aug-06 16:07
minhpc_bk30-Aug-06 16:07 
QuestionOracle Package Problem Pin
imshally8129-Aug-06 20:29
imshally8129-Aug-06 20:29 
AnswerRe: Oracle Package Problem Pin
CWIZO30-Aug-06 1:06
CWIZO30-Aug-06 1:06 
GeneralRe: Oracle Package Problem Pin
imshally8130-Aug-06 22:32
imshally8130-Aug-06 22:32 
QuestionReading a .Doc File Pin
Sathiyaraj Ganesan29-Aug-06 20:10
Sathiyaraj Ganesan29-Aug-06 20:10 
AnswerRe: Reading a .Doc File Pin
Navi1529-Aug-06 20:54
Navi1529-Aug-06 20:54 
GeneralRe: Reading a .Doc File Pin
Sathiyaraj Ganesan29-Aug-06 21:38
Sathiyaraj Ganesan29-Aug-06 21:38 
GeneralRe: Reading a .Doc File Pin
_AK_29-Aug-06 23:11
_AK_29-Aug-06 23:11 
AnswerRe: Reading a .Doc File [modified] Pin
Suresh Pirsquare2-Sep-06 2:51
Suresh Pirsquare2-Sep-06 2:51 
QuestionNavigation using AJAX-ATLAS Pin
venkat_eswar29-Aug-06 19:06
venkat_eswar29-Aug-06 19:06 
QuestionWPF Related Question Pin
pjc*29-Aug-06 18:53
pjc*29-Aug-06 18:53 
AnswerRe: WPF Related Question Pin
minhpc_bk30-Aug-06 1:27
minhpc_bk30-Aug-06 1:27 
GeneralRe: WPF Related Question Pin
pjc*30-Aug-06 5:47
pjc*30-Aug-06 5: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.