Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

In my application i have 5 link buttons when i click on link button it displays 4 text boxes and one button and after inputing text boxes click on the button the appropriate linkbutton should disappear and it doesnt appear when i refresh the page.
Posted
Comments
Sandeep Mewara 5-May-12 2:41am    
Please post some relevant code.

Use the "Improve question" link to edit your question and provide better information.

use IsPostback Method in page load event


C#
if(!ispostback)
{
    //code u want
}


it will chek for the page refresh in easy language. or in technical language
it will check for postback

put breakpoint and check when your debugger goes into if loop..
 
Share this answer
 
v2
Logically if You Can Do


Make a cookie to store information if it is HTML Control
That Suppose Your Div's Name is "Container"
Whene Ever You Want To Change Visibility of Links Write HTML And Save It To Cookie

and On Page Load


HTML
onload="MakeHTML();"


JavaScript
function MakeHTML()
{
var Values=getCookie("HTML");
document.getElementById('Container').innerHTML=-Values;// From Cookie

}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900