• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 509
  • Last Modified:

Turning button invisible in master page, prior to redirecting to content page problem

I have a button that I set it's visible property to false when another button is clicked.  These buttons are in master page.  Then I redirect a form in content page.  redirect works.  in debug I see the button gets the visible false value set.  However it does not become invisible, because in same call I have the redirect.  

If I comment out redirect, button turns invisible.  So I think master page component is not refreshing due to redirect.  Any suggestions what I can do.  for what its worth here is the click code;

            sign_btn.Visible = False
            ContentActivFrm.Visible = False
            ContentRegistration.Visible = True

Open in new window

1 Solution
Johny BravoCommented:
It will be much better to hide control in master page from Content page.

On your Registration.aspx, in page_load,

this.Master.FindControl("sign_btn").visible = false;
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now