473,396 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Requires help of true Super-MVP to explain a particular aspect of Asp.Net behavior?

Can anyone explain *why* this happens (not how to work around it)?
[Step-by-step explanation would be great]

An error has occurred because a control with auto-generated id '_ctl8' could
not be located to raise a postback event. To avoid this error, explicitly
set the ID property of controls that raise postback events.

Nov 19 '05 #1
6 999
re:
Can anyone explain *why* this happens
You didn't explicitly set the ID property
of a control that raises a postback event.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Amelyan" <ba******@wi.rr.com> wrote in message
news:eZ**************@tk2msftngp13.phx.gbl... Can anyone explain *why* this happens (not how to work around it)? [Step-by-step
explanation would be great]

An error has occurred because a control with auto-generated id '_ctl8' could not be
located to raise a postback event. To avoid this error, explicitly set the ID property
of controls that raise postback events.

Nov 19 '05 #2
Yeah, I could kind of figure out that much on my own.

What I am looking for is a good explanation of why?

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
re:
Can anyone explain *why* this happens


You didn't explicitly set the ID property
of a control that raises a postback event.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Amelyan" <ba******@wi.rr.com> wrote in message
news:eZ**************@tk2msftngp13.phx.gbl...
Can anyone explain *why* this happens (not how to work around it)?
[Step-by-step explanation would be great]

An error has occurred because a control with auto-generated id '_ctl8'
could not be located to raise a postback event. To avoid this error,
explicitly set the ID property of controls that raise postback events.


Nov 19 '05 #3
What do you mean by "why" ?

The explanation I gave you, and which you
were given by the error message is "why"!

That's what you asked for, wasn't it ?

What else do you want to know,
given that you ruled out "how to work around it".

If you want to avoid that error, you must explicitly set the
ID property of a control that raises a postback event.

Did you ? If you didn't, you must!


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Amelyan" <ba******@wi.rr.com> wrote in message
news:ON*************@TK2MSFTNGP10.phx.gbl...
Yeah, I could kind of figure out that much on my own.
What I am looking for is a good explanation of why?

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
re:
Can anyone explain *why* this happens


You didn't explicitly set the ID property
of a control that raises a postback event.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Amelyan" <ba******@wi.rr.com> wrote in message
news:eZ**************@tk2msftngp13.phx.gbl...
Can anyone explain *why* this happens (not how to work around it)? [Step-by-step
explanation would be great]

An error has occurred because a control with auto-generated id '_ctl8' could not be
located to raise a postback event. To avoid this error, explicitly set the ID property
of controls that raise postback events.

Nov 19 '05 #4
Something connected to _ctl8 is not being set in page load, thus the
controls events dont exist - in theory the control does not exist. It can
be connected to viewstate not being present for the control, sometimes
because of caching and thus not passing the correct information back in the
aspx postback - usually because oif dynamically generated controls that will
accept postback events requiring an ID thats not there.

The warning is telling you what the solution probably is - make sure you
explicitely set the ID.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Amelyan" <ba******@wi.rr.com> wrote in message
news:ON*************@TK2MSFTNGP10.phx.gbl...
Yeah, I could kind of figure out that much on my own.

What I am looking for is a good explanation of why?

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
re:
Can anyone explain *why* this happens


You didn't explicitly set the ID property
of a control that raises a postback event.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Amelyan" <ba******@wi.rr.com> wrote in message
news:eZ**************@tk2msftngp13.phx.gbl...
Can anyone explain *why* this happens (not how to work around it)?
[Step-by-step explanation would be great]

An error has occurred because a control with auto-generated id '_ctl8'
could not be located to raise a postback event. To avoid this error,
explicitly set the ID property of controls that raise postback events.



Nov 19 '05 #5
John,

Thanks again for your help. An explanation of why it happens is what I was
looking for, and you provided it.
"John Timney (ASP.NET MVP)" <ti*****@despammed.com> wrote in message
news:eH**************@TK2MSFTNGP09.phx.gbl...
Something connected to _ctl8 is not being set in page load, thus the
controls events dont exist - in theory the control does not exist. It can
be connected to viewstate not being present for the control, sometimes
because of caching and thus not passing the correct information back in
the aspx postback - usually because oif dynamically generated controls
that will accept postback events requiring an ID thats not there.

The warning is telling you what the solution probably is - make sure you
explicitely set the ID.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Amelyan" <ba******@wi.rr.com> wrote in message
news:ON*************@TK2MSFTNGP10.phx.gbl...
Yeah, I could kind of figure out that much on my own.

What I am looking for is a good explanation of why?

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
re:
Can anyone explain *why* this happens

You didn't explicitly set the ID property
of a control that raises a postback event.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Amelyan" <ba******@wi.rr.com> wrote in message
news:eZ**************@tk2msftngp13.phx.gbl...
Can anyone explain *why* this happens (not how to work around it)?
[Step-by-step explanation would be great]

An error has occurred because a control with auto-generated id '_ctl8'
could not be located to raise a postback event. To avoid this error,
explicitly set the ID property of controls that raise postback events.



Nov 19 '05 #6
In other words, what you are saying is you do what the message tells you to
do. However, you don't really try to understand why. Why do I need to
explicitely set ID? Why automatically generated IDs are not good enough in
this case? were my questions.

The thing is I try to understand why, instead of just blindly doing what I
am told to do.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
What do you mean by "why" ?

The explanation I gave you, and which you
were given by the error message is "why"!

That's what you asked for, wasn't it ?

What else do you want to know,
given that you ruled out "how to work around it".

If you want to avoid that error, you must explicitly set the
ID property of a control that raises a postback event.

Did you ? If you didn't, you must!


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Amelyan" <ba******@wi.rr.com> wrote in message
news:ON*************@TK2MSFTNGP10.phx.gbl...
Yeah, I could kind of figure out that much on my own.
What I am looking for is a good explanation of why?

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
re:
Can anyone explain *why* this happens

You didn't explicitly set the ID property
of a control that raises a postback event.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Amelyan" <ba******@wi.rr.com> wrote in message
news:eZ**************@tk2msftngp13.phx.gbl...
Can anyone explain *why* this happens (not how to work around it)?
[Step-by-step explanation would be great]

An error has occurred because a control with auto-generated id '_ctl8'
could not be located to raise a postback event. To avoid this error,
explicitly set the ID property of controls that raise postback events.


Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Kerim Borchaev | last post by:
Hello! Always when I use "super" I create a code duplication because class used as first arg to "super" is always the class where the method containing "super" was defined in: ''' class C:...
11
by: Nicolas Lehuen | last post by:
Hi, I hope this is not a FAQ, but I have trouble understanding the behaviour of the super() built-in function. I've read the excellent book 'Python in a Nutshell' which explains this built-in...
0
by: Michele Simionato | last post by:
Here is an idea for a nicer syntax in cooperative method calls, which is not based on Guido's "autosuper" example. This is just a hack, waiting for a nicer "super" built-in ... Here is example...
0
by: Delaney, Timothy C (Timothy) | last post by:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286195 This is a new version of super that automatically determines which method needs to be called based on the existing stack frames....
6
by: Steven Bethard | last post by:
When would you call super with only one argument? The only examples I can find of doing this are in the test suite for super. Playing around with it: py> class A(object): .... x = 'a'...
7
by: Kent Johnson | last post by:
Are there any best practice guidelines for when to use super(Class, self).__init__() vs Base.__init__(self) to call a base class __init__()? The super() method only works correctly in multiple...
7
by: Pupeno | last post by:
Hello, I have a class called MyConfig, it is based on Python's ConfigParser.ConfigParser. It implements add_section(self, section), which is also implemented on ConfigParser.ConfigParser, which I...
9
by: Mike Krell | last post by:
I'm reading Alex Martelli's "Nutshell" second edition. In the section called "Cooperative superclass method calling", he presents a diamond inheritance hierachy: class A(object): def...
4
by: ddtl | last post by:
Hello everybody. Consider the following code: class A(object): def met(self): print 'A.met' class B(A): def met(self):
5
by: Erwan Adam | last post by:
Hi all, I have a problem with the use of descriptors and super. The file is : # --------------- class Desc(object): def __init__(self, class_name): self.class_name = class_name
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.