Groups | Blog | Home
all groups > asp.net building controls > october 2003 >

asp.net building controls : Run Time Problem


jamesche NO[at]SPAM online.microsoft.com
10/16/2003 5:06:42 PM
Stefano,

If you want to determine if you are in the runtime environment or the
design-time environment, you can check the HttpApplication.Context
property. It will be null if you are in design-time.

Jim Cheshire [MSFT]
Developer Support
ASP.NET
jamesche@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
[quoted text, click to view]
stefano mostarda
10/16/2003 5:51:53 PM
Hi there,

I have a problem.

I have a property "prop1" in my custom control. When I change this property
automatically I change the value of another property "prop2".
Than I change the value of "prop2" to whatever I want.
The problem is that at run-time the set method of the "prop1" is
automatically called and it overrides the value of "prop2" depending on the
"prop1" value.

Is there a way to determine if the value is beeing changed at run-time or
design-time?

Any Ideas?

Thanks in advance
Stefano Mostarda
Rome Italy

stefano mostarda
10/17/2003 11:02:36 AM
Thanks a lot Jim.

"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> ha scritto nel
messaggio news:pmPbmfAlDHA.1772@cpmsftngxa06.phx.gbl...
[quoted text, click to view]

jamesche NO[at]SPAM online.microsoft.com
10/17/2003 2:29:00 PM
No problem, Stefano.

Jim Cheshire [MSFT]
Developer Support
ASP.NET
jamesche@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
[quoted text, click to view]
AddThis Social Bookmark Button