Click here to Skip to main content
15,894,252 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

In my project, when the user logs in then there should be a visible signout button.
This is not showing, even when I set visible property to true in my code behind.

And in 'signout button' property, from the start I have declared its visible property to false, so during runtime it won't visible, but when user logs in it should visible.

This is not happening.

Please help.

Thanks in advance
Posted
Updated 9-Apr-11 2:29am
v3
Comments
Rakesh From Patna 9-Apr-11 6:14am    
you use login status control?
chetanp322 9-Apr-11 6:29am    
Thanks it work fine....
[no name] 9-Apr-11 6:23am    
Post your code then we can guide you where the problem is ?
Dalek Dave 9-Apr-11 8:29am    
Edited for Grammar and Clarity.

How did you set the visible property false. from codebehind or from aspx page itself.

Try to debug your code. There must be some place where it was getting again false.
 
Share this answer
 
Comments
Dalek Dave 9-Apr-11 8:29am    
That's a fair question, and it may be an issue.
you can show that property will set in page load or not

if you set in page load
than write in that into

if(!ispostback)
{
          //write to visible false or true there

}
 
Share this answer
 
v3
Comments
Dalek Dave 9-Apr-11 8:30am    
Good answer, and I edited for code block :)

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