Hi..
I am designing a website using ASP.NET.In my project there is a page called default.aspx with a loginView cotrol.Once a user click login button after entering the User Name and the Password thay are redirected to the default.aspx.I want to have some features(A gridView) can be visible only to the administrator. How can I do this?
Please help me.

In default.aspx anonymous users are able to be registered where loggedIn users are not.

Thank You.

Just check the logged user,if is not admin then just hide it,

gridview1.style.add("display","none");

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.