Click here to Skip to main content
15,908,254 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Validation in asp:DataList Pin
_AK_29-Aug-06 22:50
_AK_29-Aug-06 22:50 
GeneralRe: Validation in asp:DataList Pin
deepaks329-Aug-06 23:51
deepaks329-Aug-06 23:51 
Questionloading temporary asp.net files takes ages [modified] Pin
livez29-Aug-06 21:00
livez29-Aug-06 21:00 
AnswerRe: loading temporary asp.net files takes ages Pin
_AK_29-Aug-06 22:55
_AK_29-Aug-06 22:55 
GeneralRe: loading temporary asp.net files takes ages Pin
livez29-Aug-06 23:15
livez29-Aug-06 23:15 
AnswerRe: loading temporary asp.net files takes ages Pin
Jürgen Müller (jmse)30-Aug-06 6:30
Jürgen Müller (jmse)30-Aug-06 6:30 
GeneralRe: loading temporary asp.net files takes ages Pin
livez31-Aug-06 20:00
livez31-Aug-06 20:00 
Questioncustom server control problem Pin
Jürgen Müller (jmse)29-Aug-06 20:53
Jürgen Müller (jmse)29-Aug-06 20:53 
Hi, all.

I'm having a strange problem while writing custom server control.
The control works fine so far, but I wanted to add some features which support the developer while using the control in the Visual Studio designer. Therefore I've added a designer which extends ContainerControlDesigner...

Code fragment:
C#
<br />
public class MyDesigner : ContainerControlDesigner <br />
{<br />
<br />
  public override string FrameCaption {<br />
    get<br />
    {<br />
      MyComponent c = (MyComponent)base.Component;<br />
<br />
      return "MyComponent - " + c.MyProperty;<br />
    }<br />
<br />
}<br />


Problem:
Sometimes the cast MyComponent c = (MyComponent)base.Component will throw an exception - and sometimes not. I haven't found a reason for this. The type of base.Component is MyComponent. I've checked this in the debugger. Even Visual Studio shows me all properties of this type during debugging.
I've modified the code and read the value of c.MyProperty via reflection - and it works...

Any ideas what might be wrong or what happens here? Confused | :confused:

Any help appreciated.

Regards

Jürgen
Stuttgart
Germany
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 
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 

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.