I have two update panels on my asp.net page, one contains a textbox, i want the updatepanel2 to update when the text in the textbox is changed. So far ive tryed several different ways at the moment my textbox is set up like :
<asp:TextBox ID=”SearchText” onkeypress=”performPostBack(‘UpdatePanel2’)” AutoPostBack=”true” Width=”150px” runat=”server” OnTextChanged=”SearchText_TextChanged” />
<script type=”text/javascript”>
function performPostBack(aTargetElement, aArg)
{
var postBack = new Sys.WebForms.PostBackAction();
postBack.set_target(aTargetElement);
postBack.set_eventArgument(aArg);
postBack.performAction();
}
</script>
But this doesnt do what is “says” it should b doing, I found this here :
[url]http://forums.asp.net/t/1025752.aspx
and looked promising but I want it to perform the postback on textchange. any ideas will be greatly receieved as ive been doing this for days and Its really starting to make me pull my hair out! Si!