472,780 Members | 1,194 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,780 software developers and data experts.

When control init event fired???

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
4 3837
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Invalidlastname | last post by:
Hi, We are developing an asp.net application, and we dynamically created certain literal controls to represent some read-only text for certain editable controls. However, recently we found an issue...
2
by: jorge | last post by:
Hello I have the following situation: (everything is dynamic (controls.add)) 1. Button.Init { WasButtonClickFired = true } 2. TextBox.TextChanged { WasButtonClickFired?
6
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many...
5
by: Nathan Sokalski | last post by:
I have a user control that contains three variables which are accessed through public properties. They are declared immediately below the "Web Form Designer Generated Code" section. Every time an...
0
by: Artur | last post by:
I'm trying to write a code that will change prefix (http to https and vice versa). It half works now, because I can reach Application_BeginRequest method in Global.asax file only when NOT in...
0
by: Artur | last post by:
After trying to solve this, I noticed another strange thing. When in secure connection Page_Load method of page is not invoked (Load event not fired). I looked where this method is assigned to this...
2
by: cmay | last post by:
A common situation I come across is an ASCX control that being used as a lookup control. The ascx might be called "StatusLookup" or something, and it consists of 1 dropdown list that populates...
5
by: Andrew Robinson | last post by:
I have a page that can load a number of different user controls. Each of these user controls inherits from a common base class and the controls are loaded based on application state, status, etc...
2
by: Michal Valent | last post by:
I would like to fire some custom server control event before Page_Load event like this (from the trace of an aspx page) : Trace Information Category Message From First(s) From Last(s) aspx.page...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.