Textbox Blur event in gridview item template

R

rajkm42

Hi friends,

I have a gridview which loads an XML file to display a textbox and
other dropdownlists. Which is used for data entry.

The user will enter an empid in the textbox. Once leaving the
textbox(for example after pressing tab), I need to fire Blur event of
that textbox and retrieve the empname and display in the next column
of the textbox in the gridview. How can I fire the blur event of
textbox?

After entering the empid in textbox and pressing tab key should fire
the event and retrieve the empname from the database and display in
gridview next column.


Thanks in advance
 
B

bruce barker

in client script attach a onblur eventhandler. then with ajax you can
call the server to do the db work and return the results, which you
display in the column.

one issue you will face is that ajax is async, so the focus may go to he
next column before the ajax call completes.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top