Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Getting TextChanged Event to fire from a ToolbarTextbox

Reply
Thread Tools

Getting TextChanged Event to fire from a ToolbarTextbox

 
 
Itchy & Scratchy
Guest
Posts: n/a
 
      07-21-2003
Hello,

I am having a problem getting a textchanged event to fire on a
toolbartextbox control.

Below is the code from the ascx

<ie:ToolBar id="objToolbar" autopostback="True" runat="server" />

All the ToolbarItems are added dynamically in the Page_Load event of the
ascx.vb file. I run though a loop which contains the code below.

Dim NewTextBox As New Microsoft.Web.UI.WebControls.ToolbarTextBox()
NewTextBox.Text = lsName
NewTextBox.ID = lsID
NewTextBox.MaxLength = liMaxLength
NewTextBox.AutoPostBack = True
objToolbar.Items.Add(NewTextBox)
AddHandler NewTextBox.TextChanged, AddressOf SearchTextboxChanged

The code compiles and runs fine, however when I change the text in the text
boxes and change focus, the form appears to submit but despite putting
breakpoints in both the Page_Load and SearchTextboxChanged subroutines
neither are hit?

Am I missing something or just being stupid. If the later please be kind!?

I saw another post, that related to someone asking how they could respond to
the return key being pressed in the textbox, as though the search button
next to it had been pressed. This is basically what I am trying to achieve,
but I can't seem to get any control over the return key being pressed or
text changing in the toolbartextbox, so I'm stuck.

Thanks for your help.







 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fire both event button click and textchanged when button is click and text is changed Amy ASP .Net 0 06-01-2006 02:33 PM
How could fire both TextChanged event and button click if button is clicked dyw55a@yahoo.com Javascript 0 06-01-2006 02:28 PM
TextBox doesn't fire TextChanged event when user enables IE auto-completion function! David ASP .Net Web Controls 0 10-29-2004 09:50 AM
Re: TextChanged Event doesn't fire WITH AutoPostBack = True??? Kathy Burke ASP .Net 1 07-23-2003 12:01 PM
TextChanged Event doesn't fire WITH AutoPostBack = True??? KathyB ASP .Net 3 07-23-2003 11:07 AM



Advertisments