By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,688 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,688 IT Pros & Developers. It's quick & easy.

Textbox Blur event in gridview item template

P: n/a
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

Oct 1 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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)

ra*****@googlemail.com wrote:
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
Oct 1 '07 #2

P: n/a
Hi,

Thanks for the reply. I dont have Ajax installed. Is there any other
way?

On Oct 1, 5:45 pm, bruce barker <nos...@nospam.comwrote:
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)

rajk...@googlemail.com wrote:
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- Hide quoted text -

- Show quoted text -

Oct 1 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.