We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,578 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Control triggers the commands twice.

Hi,

I have this question about the control triggers, I have this project that have textbox, using it's textChanged function and setting the autopostback in to true.

Now, when I trace the command I have notice that the function have been triggered twice, and I just want to know now
how that happens and how I can set this to trigger only once.

Thanks,
JButardo

2
Contributors
1
Reply
27 Minutes
Discussion Span
1 Year Ago
Last Updated
2
Views
jbutardo
Junior Poster in Training
74 posts since Jan 2012
Reputation Points: 8
Solved Threads: 2
Skill Endorsements: 0

Are you typing into this textbox or setting it programatically? If typing, then the event would be triggered for every key press, and thus you will experience multiple successive postbacks.

If any other function/event occuring is changing the text in code on PostBack, it could be triggering an additional postback from that event as well.

Just food for thought.

Hearth
Posting Whiz
321 posts since Apr 2008
Reputation Points: 123
Solved Threads: 49
Skill Endorsements: 4

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0568 seconds using 2.67MB