dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: How i control in some contents in the page

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    123

    How i control in some contents in the page

    Hi ,

    i make administration web page to my site where i make permissions to all users but in the page level i want to control in some contents in the page , for example the edit button appear to admin but not appear in normal user .

    All the best,

  2. #2
    Join Date
    Oct 2006
    Posts
    123

    Re: How i control in some contents in the page

    ??/

  3. #3
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940

    Re: How i control in some contents in the page

    You should look up ASP.NET Forms Authentication (see here).

    You'll need an SQL server to support the default authentication. SQL Express will do.

    Then you can identify as part of the Page_Load event on any page whether a user has logged in or not, and what their roles are (administrator, guest etc).

    If their role is administrator and you have your 'edit' button as an asp.net control you can make it visible in the Page_Load event.

    This is too big a subject to be covered in one post on a forum - please read the documentation you'll find on the net.

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)