Scrolling to a bookmark on a web page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do you scroll to a point on the web page onClicking a control. I have
tried response.write("<script>window.scrollTo(0,500)</script>"). VB.Net 2003
seems to ignore it.

GRB
 
Hi,

Try registerscriptblock instead of response.write. Here is an
example of how to display a messagebox.

RegisterClientScriptBlock("showErrorMessage", _

"<script language=""JavaScript""> alert('Invalid Date.'); </script>")



Ken

-----------------------------

How do you scroll to a point on the web page onClicking a control. I have
tried response.write("<script>window.scrollTo(0,500)</script>"). VB.Net 2003
seems to ignore it.

GRB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top