Hey modify the javascript like this:
var coll=document.getelementby
tehn
coll(.scrollIntoView(true)
coli.bAlignBottom = true
Main Topics
Browse All TopicsHi folks,
I have a webform (vb.net), with a button at the bottom, once the user click the button I want to verify his/her input and print our his/her selection at the bottom and then change the button from verify to submit...
Everything is working fine... , except for the "auto scroll to the bottom" part... so I do a postback currently on the button click and verify a few things server side... however when it comes back I want to scroll to the bottom of my webform...
How would I do this?
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: srivatsavayePosted on 2006-03-24 at 11:17:15ID: 16283225
I have a javascript that might work just fine for you:Here it is:
ue)
pScriptReg istered("c lientScrip t")) Then StartupScr ipt(Page.G etType(), "clientScript", strScript)
function scroll()
{
var coll = document.all.tags("P")
coll(id).scrollIntoView(tr
col1(id).bAlignTop = false----Here try using .bAlignBottom=true
}
Just enter the id here and call this in the button click: You should be calling this javascript this way:
Dim strScript As String = "<script language=JavaScript>"
strScript += "Scroll();"
strScript += "</script>"
If (Not Page.ClientScript.IsStartu
Page.ClientScript.Register
End If