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] >From: "stefano mostarda" <stefano.mostarda@grupponet.it>
>Subject: Run Time Problem
>Date: Thu, 16 Oct 2003 17:51:53 +0200
>Lines: 21
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <OJKQt1$kDHA.2068@TK2MSFTNGP09.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.buildingcontrols
>NNTP-Posting-Host: host210-39.pool8019.interbusiness.it 80.19.39.210
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
>Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.buildingcontrols:7794
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.buildingcontrols
>
>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
>
>
>
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
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] > 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.
>
> --------------------
> >From: "stefano mostarda" <stefano.mostarda@grupponet.it>
> >Subject: Run Time Problem
> >Date: Thu, 16 Oct 2003 17:51:53 +0200
> >Lines: 21
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >Message-ID: <OJKQt1$kDHA.2068@TK2MSFTNGP09.phx.gbl>
> >Newsgroups: microsoft.public.dotnet.framework.aspnet.buildingcontrols
> >NNTP-Posting-Host: host210-39.pool8019.interbusiness.it 80.19.39.210
> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
> >Xref: cpmsftngxa06.phx.gbl
> microsoft.public.dotnet.framework.aspnet.buildingcontrols:7794
> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.buildingcontrols
> >
> >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
> >
> >
> >
>
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] >From: "stefano mostarda" <stefano.mostarda@grupponet.it>
>References: <OJKQt1$kDHA.2068@TK2MSFTNGP09.phx.gbl>
<pmPbmfAlDHA.1772@cpmsftngxa06.phx.gbl>
>Subject: Re: Run Time Problem
>Date: Fri, 17 Oct 2003 11:02:36 +0200
>Lines: 62
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <e8p$q1IlDHA.744@tk2msftngp13.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.buildingcontrols
>NNTP-Posting-Host: host210-39.pool8019.interbusiness.it 80.19.39.210
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
>Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.buildingcontrols:7804
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.buildingcontrols
>
>Thanks a lot Jim.
>
>"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> ha scritto nel
>messaggio news:pmPbmfAlDHA.1772@cpmsftngxa06.phx.gbl...
>> 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.
>>
>> --------------------
>> >From: "stefano mostarda" <stefano.mostarda@grupponet.it>
>> >Subject: Run Time Problem
>> >Date: Thu, 16 Oct 2003 17:51:53 +0200
>> >Lines: 21
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <OJKQt1$kDHA.2068@TK2MSFTNGP09.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.framework.aspnet.buildingcontrols
>> >NNTP-Posting-Host: host210-39.pool8019.interbusiness.it 80.19.39.210
>> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
>> >Xref: cpmsftngxa06.phx.gbl
>> microsoft.public.dotnet.framework.aspnet.buildingcontrols:7794
>> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.buildingcontrols
>> >
>> >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
>> >
>> >
>> >
>>
>
>
>
Don't see what you're looking for? Try a search.