I have a linkbutton with an onClick event that does something in code behind, but I would like it when I return to execute the on click event, there would be a javascript that would move the scroll to a particular div.
I do not have much idea of js, I was investigating it on my own the last 24hrs but I do not hit the nail on the head.
Any ideas?
Thank you.
Edit: Hi, thanks for answering, I'm adding an example code:
HTML:
<html><head></head>
<body>
<asp:LinkButton ID="lb1" runat="server" OnClick="lb1_Click"> Click Aqui </asp:LinkButton>
<!--Aqui imaginemos que hay una imagen que es muy grande, y mucho mas abajo mi div-->
<div id=miDiv> Hola </div>
</body>
</html>
Code Behind:
protected void lb1_Click(object sender, EventArgs e)
{
//aqui hago algunas cosas, lleno un repeater, y otras cosas
//y quiero que luego de ejecutar este codigo, el html scrolée
//hasta el div de id=miDiv
}