OK - so as I read it, each column name is the name of a web page, with the exception of the primary key which is a user Id
So
You select the row 'where Id = current user.id'
Now you have a record set of some sort (may be a table object, or a DataReader or a POCO , depending on how you do your data access)
So - at its most simple, create a function that returns a boolean
private DataRow theDataRowWithThePageNamesInItForThisUser;
bool CanThisUserAccessThisPage(string pageName)
{
return (bool)theDataRowWithTheOageNamesInItForThisUser[pageName];
}
(that's just splatted-in pseudo-code PLEASE don't just copy-paste it and assume it's going to work on your system - if you can't figure out how to do something with this then I'd advise you to stand clear of the keyboard!