473,397 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Textbox Blur event in gridview item template

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
2 3595
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Walter | last post by:
I have a GridView using Template columns. In my EditItemTemplate I am using CompareValidators to check data types. When validation fails, I would like to change the border of the textbox in...
3
by: keithb | last post by:
My code dynamically adds template fields to a GridView control. Everything seems to work OK, except when updating, because I haven't found a way to reference the dynamically added textboxes....
3
by: Elmo Watson | last post by:
I previously had a project working, in which the Gridview was populated by a DataSet - then, with a DropDownlist in one of the columns, using the OnrowDataBound event, to populate the DDL with the...
8
by: nil | last post by:
Hello all, It's urgent... i want to add autocomplete textbox facility in my application like google. as you type it suggests option to the user..i want the same kind of facility...i know i...
0
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile...
3
by: rn5a | last post by:
A DataGrid has a BoundColumn, an EditCommandColumn & a few TemplateColumns. When the text in the EditCommandColumn within any of the DataGridItems is clicked, the corresponding BoundColumn changes...
2
by: dotnetdev01 | last post by:
hello, i want to increment/decrement the value in textbox on the click event of image button placed on the gridview. i m using item template. both textbox and imagebuttons are in item...
1
by: zergziad | last post by:
Hi All, I really need help to solve my problem. My case is on looping through textbox in gridview. I had a gridview placed in my page. The gridview contains template field which I created it...
0
KalariaNitya
by: KalariaNitya | last post by:
Hello, could anybody help me? i have gridview, inside gridview i have one Update button & textbox update button update the quantity entered in textbox. i want to update the quantity on textbox on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.