locked
if i have more then one instance of the control? RRS feed

  • Question

  • User888441741 posted

    i have a autosuggest control works great if i have only one instance and i have two instance of the same control in one page then its act weired

    say: i have instance1 and instance2 and if i start typing on instance1 control then it populates the data in instance2 control

    what do i need to change in my control to avoid this kinda of behaviour?

    any suggestions?

    thanks.

    Saturday, May 3, 2008 3:32 PM

Answers

  • User-16411453 posted

     each control such as textbox has to have a unique id. You can't have 2 controls on the same page with the same name. Basic Asp.net rule.

    be nice 


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 5, 2008 3:43 AM

All replies

  • User187056398 posted

    any suggestions?

    If you post some code here, someone may be able to help  you.

    Saturday, May 3, 2008 4:37 PM
  • User888441741 posted

    any suggestions?

    If you post some code here, someone may be able to help  you.

    my code is pretty long but what is the reason for having this problem? i mean i just need to get an idea what makes the two instance does not work

    thanks.

    Saturday, May 3, 2008 7:46 PM
  • User-16411453 posted

     each control such as textbox has to have a unique id. You can't have 2 controls on the same page with the same name. Basic Asp.net rule.

    be nice 


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 5, 2008 3:43 AM