Skip to content

Show and hide asp controls

Animesh Mishra

Asked Sep 29, 2014, 11:14 PM EDT2 answers
Share
LinkedInX
Hello every1,
I am working on a web Application and in that i got stucked in 1 problem.My problem is that i have created 3 forms,1.Login.aspx 2.manager.aspx3.superuser.aspx
now i want that when i log in as an Administrator ,i could see a link "create Manager" on manager.aspx but this link should not be visible to the manager's account.. Note-"i dont want this link to show and hide on button control ,i want it according to the session".Thanks in advance

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi, 

    You can take a link control and set visible = false initialy and when you login then chek login type if administrator then set visible =true of link button and also set postbackurl to manager page and same for manager login.


    Regards
    Manoj Kumar
    0
  • 0
    hi Manoj..thanks for your reply,can you please send me the code.actually am not getting it correctly.it would be a grt help for me
    0