Re: 2 controls on the same page and wrong events fire

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Well, you didn't say if you tried the ClientID. Have you looked in
debug mode? Are you using INamingContainer?

The reason I ask is that if you look at the HTML that gets rendered,
you'll probably see that the name and the id are different. One has an
underscore and the other has a colon. I believe it's the id that has
the underscore. The thing is, it's the name that gets posted back. So
if you're posting back the id, it may not be identifying the control
correctly.

Check it out.

Lisa


justengland@xxxxxxxxx wrote:
> I have set the unique id = to
> <button id='unique id' onclick=__dopostback('unique id','' >

.


Quantcast