Click to See Complete Forum and Search --> : How to fire the textchanged event programmatically


clean
02-23-2006, 09:13 AM
I have a textchanged method with some code within

protected void tbQty_TextChanged(object sender, EventArgs e){

some code

}

I want to call this method from within another method

protected void cbSelectItem_CheckedChanged(object sender, EventArgs e){

tbQty_TextChanged();

}

How can i do this.

Thanks!

Alex

kmoorman
02-23-2006, 10:11 AM
Alex,

One way is to put the code that you want to call in its own function. Then call that function from the text_changed event and from any other code that needs that functionality.

Kerry Moorman

edburdo
02-23-2006, 02:43 PM
I second Kerry's method. Much more logical and pretty simple to implement.