|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Textbox Focus EventI am working on an ASP.NET page where I need to perform a procedure when the
user enters data in a textbox. Ideally, I would like to be able to run the procedure when the user moves the cursor focus AWAY from the textbox. However, I am not sure how to do this. Any suggestions would be greatly appreciated. Thanks. The opposite of onfocus is onblur. In ASP.NET, there's a TextChanged
event on TextBoxes, but that only fires if the text was actually changed. If it wasn't, moving focus off of the box won't trigger the event. You could make a custom textbox that has an onblur event, using the standard javascript onblur event. Or just use the javascript one directly, and have it change the contents of an invisible textbox and grab the TextChanged event of the hidden one. All sorts of ways, I guess. Lisa Derek wrote: Show quoteHide quote > I am working on an ASP.NET page where I need to perform a procedure when the > user enters data in a textbox. Ideally, I would like to be able to run the > procedure when the user moves the cursor focus AWAY from the textbox. > However, I am not sure how to do this. Any suggestions would be greatly > appreciated. Thanks.
Webform Navigation
Can't set button to Visible? Need reviews and advice on web and data control tools and vendors databind - XmlNodeList to DropDownList custom web controls and conversion to inline code DataGrid NOT Paging Reach UserControl from ASPX codebehind? PHP guy turned ASP needs pointers A program about get value from datagrid cell Programmatically changing CssStyle on Panels depending on DB values |
|||||||||||||||||||||||