Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Selected Datalist Row

Status
Not open for further replies.

tjherman

Programmer
Jun 19, 2006
68
US
I'm trying to set the focus to a specific field (on exit of another field within a datalist that is set to run a calculation and autopostback). Because the web page does an autopostback after I exit the first field, my cursor history is lost. I'm trying to specify the exact row and field to which I want to set the focus but I don't know how to determine what row the user was on in the datalist.

I've tried messing with the EditItemIndex but am not getting it.

Anyone know how to do this?
 
Unfortunately, I don't know enough javascript to do this. Thanks for the input though.
 
Off the wall, you could use Ajax to eliminate the post back. I have seen this work over at the MS site but never tried it.
Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top