Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding a button in asp

Status
Not open for further replies.

frmorris

Programmer
Aug 4, 2005
22
0
0
US
I have a delete button that I need to hide if a person is not an administrator. Could someone tell me how I would do this.
 
there is much you are not telling us. you will need to determine whether or not the person is an administrator. you will then need to store that concept somewhere (maybe a session variable). you will then need to test against that value, and only display the button if the user is indeed an admin.

something like:

Code:
If Session("blnIsAdmin") = True Then
    Response.Write ("<input type='button' value='Delete' name='Action' />")
End If



*cLFlaVA
----------------------------
[tt]mr. pibb + red vines = crazy delicious![/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top