User Profile

Collapse

Profile Sidebar

Collapse
redarko
redarko
Last Activity: Mar 27 '08, 04:52 PM
Joined: Mar 4 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • redarko
    replied to Single button scrollTo (or location.hash)
    in .NET
    I've just solved it.

    I was thinking a too much complicated solution.

    If I iterate on the page load in all the elements of my repeater and I set
    Code:
    ((System.Web.UI.WebControls.ImageButton)(dItem.FindControl("imgPhoto"))).Attributes.Add("onClick", "scrollTo(0,50);");
    it works perfectly
    See more | Go to post

    Leave a comment:


  • redarko
    started a topic Single button scrollTo (or location.hash)
    in .NET

    Single button scrollTo (or location.hash)

    I have a set of imageButtons in my repeater that is in an update panel control.

    I would like to scroll up the page when the user clicks on one of these image (only in this case).

    I have tried three solution:

    1)Using the add_endRequest( EndRequestHandl er);function EndRequestHandl er as above but that cause every button in the page to scroll up the page.

    Code:
    ScriptManager.RegisterStartupScript(this.Page,
    ...
    See more | Go to post
No activity results to display
Show More
Working...