Question : How do I in code behind scroll to an object

In ASP.NET, how do I in C# (from code behind) have the page scroll down to where a particular object is visible?

As an example: if the user executes a particular 'click' event, I would like the page on postback to scroll and bring a particular object into view (i.e. a grid).

Note: I have tried this in the code behind with no luck...
1:
2:
RegisterStartupScript("ScrollScript", "document.getElementById('btnSubmit').scrollIntoView(true);");    


I'm able to directly bring into view an object via the following javascript (see below) ... but not programmatically.

=======================

 <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            document.getElementById('btnSubmit').scrollIntoView(true);
        </script>
    </telerik:RadCodeBlock>

=========================

Answer : How do I in code behind scroll to an object

There you go. Production SBS 2008 ~ 6 months.

Philip
Random Solutions  
 
programming4us programming4us