Controlling Page Load

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sweatha
    New Member
    • Mar 2008
    • 44

    Controlling Page Load

    Hi

    My issue is If I click the link button in my page, then Table1 should get visible & by default the Table1 should not be visible. For that, I have set the visible property of the Table1 as False by default & under link button click event I have set it as True. But the problem is the page is loading every time. Can anybody reply me how to control the page load.
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    Originally posted by sweatha
    Hi

    My issue is If I click the link button in my page, then Table1 should get visible & by default the Table1 should not be visible. For that, I have set the visible property of the Table1 as False by default & under link button click event I have set it as True. But the problem is the page is loading every time. Can anybody reply me how to control the page load.

    When the link is clicked is this a button command ? Where the page is doing a post back? Or are you actually linking to the page itself with this link?

    You probably want to a do a button comand so you can control the page load by doing just a post back instead of a total re-load of the page.

    Comment

    • kunal pawar
      Contributor
      • Oct 2007
      • 297

      #3
      I guess using javascript, this will may it more easy

      document.getEle mentById("Contr ol Id").style.disp lay="none"; // for hideing


      document.getEle mentById("Contr ol Id").style.disp lay="" ; // for viewing

      Comment

      Working...