TextBox events

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • E11esar
    New Member
    • Nov 2008
    • 132

    TextBox events

    Hello there.

    I am writing an ASP.net page using C# and I want to invoke an event that is called when I enter a reference number in the TextBox. This event will go on to cause a corresponding ListBox to be populated.

    I thought the OnTextChanged would be a suitable event but this is not happening for me at the moment. I don't want to use a Button and hence a click event in that way, so can anybody think of a suitable way to do this please?

    I am thinking possibly of a JavaScript function and then add attributes to the TextBox to call this method but again, I'm not sure what event this could be coded towards..?

    Thank you.

    M :o)
  • E11esar
    New Member
    • Nov 2008
    • 132

    #2
    Solution

    Hello there - I have been able to solve this one now.. I originall felt that the OnTextChanged event is the correct one and yes, I did have the AutoPostBack set to "true" but it wasn't hitting the event for some reason.

    I've booted my laptop as an update was installed and now all of a sudden it is working.

    So I'm not sure as to what was amiss earlier with this one.

    Thank you.

    Mark :o)

    Comment

    Working...