In an existing web form 2010 application, when any part of the web page was changed, the entire web page would be reloaded. Now after I change I made to the application the following is occurring:
The entire page gets reloaded whenever a button or a link is clicked on. When this occurs, the bottom portion of the entire lower half of the web page is displayed for a few second and then goes away. The item goes away (is not visible) when the javascript hide function is called.
I have no idea of what could be causing this problem. Is there some kind of property I can set to invisible in javascript to get rid of this problem?
Do you have any ideas of what I can do to solve the problem?

Delpin Susai RajRank #53 · 29.5K reputationPosted Sep 26, 2016, 6:56 AM EDT
function showStuff(id, text, btn) { document.getElementById(id).style.display = 'block'; // hide the lorem ipsum text document.getElementById(text).style.display = 'none'; // hide the link btn.style.display = 'none'; } Edit Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsumMidhun TpRank #388 · 6.5K reputationPosted Sep 25, 2016, 6:16 PM EDT
Why and where are you calling the javascript hide function?
Please post your javascript function for a better understanding.
Krishna Rajput SinghRank #605 · 4K reputationPosted Sep 25, 2016, 10:28 PM EDT
Ramesh PalaniappanRank #370 · 6.8K reputationPosted Sep 26, 2016, 6:51 AM EDT
Delpin Susai RajRank #53 · 29.5K reputationPosted Sep 26, 2016, 6:54 AM EDT
document.getElementById("myP1").style.display = "none";
}
function demoVisibility() {
document.getElementById("myP2").style.visibility = "hidden";
}
Delpin Susai RajRank #53 · 29.5K reputationPosted Sep 26, 2016, 6:55 AM EDT
var x = document.getElementById('myDIV');
if (x.style.visibility === 'hidden') {
x.style.visibility = 'visible';
} else {
x.style.visibility = 'hidden';
}
}