Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Control to be focused on postback

Control to be focused on postback

Scheduled Pinned Locked Moved ASP.NET
tutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kandepu Rajesh
    wrote on last edited by
    #1

    I have a chart control in my ASPX page. At the top of the page there are some dropdown boxes to select some parameters to draw chart control and a button. Initially the chart control is invisible. After the btton click the chart control databinding will be done and visible property is set true. How to make the Chart control to be focused where it is at the down of the page after button click. Where now after postback the user has to scroll down to view the chart.

    T J 2 Replies Last reply
    0
    • K Kandepu Rajesh

      I have a chart control in my ASPX page. At the top of the page there are some dropdown boxes to select some parameters to draw chart control and a button. Initially the chart control is invisible. After the btton click the chart control databinding will be done and visible property is set true. How to make the Chart control to be focused where it is at the down of the page after button click. Where now after postback the user has to scroll down to view the chart.

      T Offline
      T Offline
      Tom Marvolo Riddle
      wrote on last edited by
      #2

      Check these links: http://www.bloggersentral.com/2010/10/jump-to-section-or-part-on-same-page.html[^] http://www.daniweb.com/web-development/web-design-html-and-css/code/216391/jump-to-another-part-of-a-document-on-the-same-page[^]

      You have to learn to think like a computer or teach him to think like a human. -Kornfeld Eliyahu Peter

      K 1 Reply Last reply
      0
      • T Tom Marvolo Riddle

        Check these links: http://www.bloggersentral.com/2010/10/jump-to-section-or-part-on-same-page.html[^] http://www.daniweb.com/web-development/web-design-html-and-css/code/216391/jump-to-another-part-of-a-document-on-the-same-page[^]

        You have to learn to think like a computer or teach him to think like a human. -Kornfeld Eliyahu Peter

        K Offline
        K Offline
        Kandepu Rajesh
        wrote on last edited by
        #3

        These links show when we have a hyperlink.. but i have to do it when postback i.e inside a button click event handler..

        T 1 Reply Last reply
        0
        • K Kandepu Rajesh

          These links show when we have a hyperlink.. but i have to do it when postback i.e inside a button click event handler..

          T Offline
          T Offline
          Tom Marvolo Riddle
          wrote on last edited by
          #4

          see this:http://stackoverflow.com/questions/6666038/asp-net-postback-scroll-to-specific-position[^]

          You have to learn to think like a computer or teach him to think like a human. -Kornfeld Eliyahu Peter

          1 Reply Last reply
          0
          • K Kandepu Rajesh

            I have a chart control in my ASPX page. At the top of the page there are some dropdown boxes to select some parameters to draw chart control and a button. Initially the chart control is invisible. After the btton click the chart control databinding will be done and visible property is set true. How to make the Chart control to be focused where it is at the down of the page after button click. Where now after postback the user has to scroll down to view the chart.

            J Offline
            J Offline
            jkirkerx
            wrote on last edited by
            #5

            If I remember correctly, the button click event fires a postback to the server, the page is sent to the server background processing occurs on the server, here you can toggle the visible property the page is sent back to the client, and then the page loads again with new HTML the page.load event fires again so the focus should probably be in the page.load event, if page.ispostback { if yyy.visible = true { xxx.focus } } try that out.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups