Skip to content

Duplicate Control Creation on button click event

Kapil

Asked Dec 20, 2005, 9:36 PM EST2 answers
Share
LinkedInX

I am using ASP.NET as front design and C# as back code.

I am trying to create some TextBox server side control dynamically.
On button click event. Problem is every time i am clicking on the button i am getting control two times. So i don't know the reason of duplication.

Can anybody clarify on this front ??

Thanking you in advance

KG

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Have you registered the buttons event handler two times?
    0
  • 0
    The Dynamic Code might get called twice. The post back is probably where the problem comes from, it gets created in the on_load and maybe some other place, but I can't say for sure. Show your code and we'll have a better idea. R S
    0