Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4532426
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:01:47+00:00 2026-05-21T14:01:47+00:00

I am building an application in asp.net using C# where people have their own

  • 0

I am building an application in asp.net using C# where people have their own profiles, and if they want to see others profile they can, but they only have read permission; how to set all these read write permissions in Ms Sql?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T14:01:47+00:00Added an answer on May 21, 2026 at 2:01 pm

    here is one way you can hide/show the controls based the user id on asp.net side.
    Then there is no need to actually do the work on DB level since user does not have any ability to do that via UI.

    pseudo code:

    public void Page_Load(object sender,Eventargs e)
    if(!Page.IsPostBack){
     string userid= //get the id of the user whose profile you want to see
     string loggeduserid=//get the id of the logged in user
     bool visible = userid==loggeduserid
     ShowHideControls(visible)
    }
    }
    private void(bool visible){
       btnEdit.Visible=visible;
       btnDelete.Visible = visible;
       //set other controls' visibility.
    }
    

    This is one way. You can refine the code above as per the need.
    I will suggest you do it on your code level itself instead of DB because essentially you will be doing the same check if it were in a storedproc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In have my application configured in asp.net. I am using ajaxcontroltoolkit. After building the
I'm building an ASP.net application using Visual Studio Web Developer 2010 Express and have
I am building a Web Application using asp.net (C#). I come from windows forms
I am building a web application using ASP.NET MVC that has two very distinct
I am building a AJAX intensive web application (using ASP.NET, JQuery, and WCF web
I have a web application (ASP.NET 4.0 in c#) and I am building a
I am building an application in ASP.NET MVC 3 in which I have implemented
I've been building my sample asp.net application using VWD2008 and the development virtual server
I am building a Web Application in ASP.NET 4.0, using VS 2010 Professional. I
I'm in the process of building my first web application using ASP.NET MVC 2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.