By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,152 Members | 1,837 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,152 IT Pros & Developers. It's quick & easy.

When control init event fired???

P: n/a
Put any control on web page.
create Init event for ths control.
Write Response.Write("here") inside this event.
Compile\build\run. I never saw "here" string appear on web page. Why???
Nov 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Anatoly,

Let me look into this for you and get back to you. If you dynamically
create the control, it will fire the Init event, but it should fire either
way I would think.

Jim Cheshire
Developer Support
ASP.NET
ja******@online.microsoft.com

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

--------------------
From: "Anatoly" <an******@gilat.com>
Subject: When control init event fired???
Date: Wed, 30 Jul 2003 11:25:43 +0200
Lines: 6
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: <OT*************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 212.150.128.10
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163266
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Put any control on web page.
create Init event for ths control.
Write Response.Write("here") inside this event.
Compile\build\run. I never saw "here" string appear on web page. Why???


Nov 17 '05 #2

P: n/a
Anatoly,

I believe the reason for this is that by the time you hook the event, it
has already fired. That is why if you dynamically create the control, the
Init event fires without issues. That's what I'm checking on.

Jim Cheshire
Developer Support
ASP.NET
ja******@online.microsoft.com

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

--------------------
From: "Anatoly" <an******@gilat.com>
References: <OT*************@TK2MSFTNGP10.phx.gbl> <Uo*************@cpmsftngxa06.phx.gbl>Subject: Re: When control init event fired???
Date: Wed, 30 Jul 2003 18:47:42 +0200
Lines: 46
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: <Os**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 212.150.128.10
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163406
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Control droped on webpage in design time, still Init event wont fire(I try
several controls: textbox, dropdown)
Thanks

"Jim Cheshire (MS)" <ja******@online.microsoft.com> wrote in message
news:Uo*************@cpmsftngxa06.phx.gbl...
Anatoly,

Let me look into this for you and get back to you. If you dynamically
create the control, it will fire the Init event, but it should fire either
way I would think.

Jim Cheshire
Developer Support
ASP.NET
ja******@online.microsoft.com

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

--------------------
>From: "Anatoly" <an******@gilat.com>
>Subject: When control init event fired???
>Date: Wed, 30 Jul 2003 11:25:43 +0200
>Lines: 6
>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: <OT*************@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: 212.150.128.10
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.framework.aspnet:163266 >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>Put any control on web page.
>create Init event for ths control.
>Write Response.Write("here") inside this event.
>Compile\build\run. I never saw "here" string appear on web page. Why???
>
>
>



Nov 17 '05 #3

P: n/a
Anatoly,

I haven't forgotten you. Still tracking this down for you.

Jim Cheshire
Developer Support
ASP.NET
ja******@online.microsoft.com

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

--------------------
X-Tomcat-ID: 485380958
References: <OT*************@TK2MSFTNGP10.phx.gbl> <Uo*************@cpmsftngxa06.phx.gbl>
<Os**************@TK2MSFTNGP12.phx.gbl>MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
From: ja******@online.microsoft.com (Jim Cheshire [MSFT])
Organization: Microsoft
Date: Wed, 30 Jul 2003 16:55:50 GMT
Subject: Re: When control init event fired???
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Message-ID: <y$**************@cpmsftngxa06.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Lines: 68
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163439
NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182

Anatoly,

I believe the reason for this is that by the time you hook the event, it
has already fired. That is why if you dynamically create the control, the
Init event fires without issues. That's what I'm checking on.

Jim Cheshire
Developer Support
ASP.NET
ja******@online.microsoft.com

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

--------------------
From: "Anatoly" <an******@gilat.com>
References: <OT*************@TK2MSFTNGP10.phx.gbl>

<Uo*************@cpmsftngxa06.phx.gbl>
Subject: Re: When control init event fired???
Date: Wed, 30 Jul 2003 18:47:42 +0200
Lines: 46
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: <Os**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 212.150.128.10
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163406
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Control droped on webpage in design time, still Init event wont fire(I try
several controls: textbox, dropdown)
Thanks

"Jim Cheshire (MS)" <ja******@online.microsoft.com> wrote in message
news:Uo*************@cpmsftngxa06.phx.gbl...
Anatoly,

Let me look into this for you and get back to you. If you dynamically
create the control, it will fire the Init event, but it should fireeither way I would think.

Jim Cheshire
Developer Support
ASP.NET
ja******@online.microsoft.com

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

--------------------
>From: "Anatoly" <an******@gilat.com>
>Subject: When control init event fired???
>Date: Wed, 30 Jul 2003 11:25:43 +0200
>Lines: 6
>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: <OT*************@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: 212.150.128.10
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.framework.aspnet:16326 6
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>Put any control on web page.
>create Init event for ths control.
>Write Response.Write("here") inside this event.
>Compile\build\run. I never saw "here" string appear on web page. Why???
>
>
>




Nov 17 '05 #4

P: n/a
Anatoly,

The Init event for a control created in Design view is handled in the
OnInit for the page. If you want to explicitly handle the Init event, you
need to explicitly create the control by doing it dynamically.

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

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

--------------------
X-Tomcat-ID: 629347168
References: <OT*************@TK2MSFTNGP10.phx.gbl> <Uo*************@cpmsftngxa06.phx.gbl>
<Os**************@TK2MSFTNGP12.phx.gbl>
<y$**************@cpmsftngxa06.phx.gbl>MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
From: ja******@online.microsoft.com (Jim Cheshire [MSFT])
Organization: Microsoft
Date: Fri, 01 Aug 2003 22:19:17 GMT
Subject: Re: When control init event fired???
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Message-ID: <U3*************@cpmsftngxa06.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Lines: 96
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:164273
NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122

Anatoly,

I haven't forgotten you. Still tracking this down for you.

Jim Cheshire
Developer Support
ASP.NET
ja******@online.microsoft.com

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

--------------------
X-Tomcat-ID: 485380958
References: <OT*************@TK2MSFTNGP10.phx.gbl>

<Uo*************@cpmsftngxa06.phx.gbl>
<Os**************@TK2MSFTNGP12.phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
From: ja******@online.microsoft.com (Jim Cheshire [MSFT])
Organization: Microsoft
Date: Wed, 30 Jul 2003 16:55:50 GMT
Subject: Re: When control init event fired???
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Message-ID: <y$**************@cpmsftngxa06.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Lines: 68
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163439
NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182

Anatoly,

I believe the reason for this is that by the time you hook the event, it
has already fired. That is why if you dynamically create the control, theInit event fires without issues. That's what I'm checking on.

Jim Cheshire
Developer Support
ASP.NET
ja******@online.microsoft.com

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

--------------------
From: "Anatoly" <an******@gilat.com>
References: <OT*************@TK2MSFTNGP10.phx.gbl>

<Uo*************@cpmsftngxa06.phx.gbl>
Subject: Re: When control init event fired???
Date: Wed, 30 Jul 2003 18:47:42 +0200
Lines: 46
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: <Os**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 212.150.128.10
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163406X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Control droped on webpage in design time, still Init event wont fire(I tryseveral controls: textbox, dropdown)
Thanks

"Jim Cheshire (MS)" <ja******@online.microsoft.com> wrote in message
news:Uo*************@cpmsftngxa06.phx.gbl...
Anatoly,

Let me look into this for you and get back to you. If you dynamically
create the control, it will fire the Init event, but it should fire

either
way I would think.

Jim Cheshire
Developer Support
ASP.NET
ja******@online.microsoft.com

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

--------------------
>From: "Anatoly" <an******@gilat.com>
>Subject: When control init event fired???
>Date: Wed, 30 Jul 2003 11:25:43 +0200
>Lines: 6
>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: <OT*************@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: 212.150.128.10
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet:1632 66
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>Put any control on web page.
>create Init event for ths control.
>Write Response.Write("here") inside this event.
>Compile\build\run. I never saw "here" string appear on web page. Why??? >
>
>




Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.