setfocus on datalist

egdotnet

Regular
Joined
May 16, 2004
Messages
50
i have a datalist, which will contain a lot of entries, but when i select one, it scrolls to the top of the page. is there a way to automatically scroll down to the place where the edit box is so people can view it quickly?
 
Try setting the SmartNavigation to true on the page, but i find that this will sometimes mess with other javascript you have on the page. So, what you can do is after you update, write out javascript to the page that sets to a bookmark on the page, or set focus to textbox on the page, that should jump the page down. Last i check,the last option worked in some browsers, not in others.
 
Back
Top