Click here to Skip to main content
15,888,461 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Problem with file path Pin
Maxdd 711-Nov-09 16:02
Maxdd 711-Nov-09 16:02 
GeneralRe: Problem with file path Pin
Christian Graus11-Nov-09 16:08
protectorChristian Graus11-Nov-09 16:08 
GeneralRe: Problem with file path Pin
Maxdd 711-Nov-09 16:16
Maxdd 711-Nov-09 16:16 
GeneralRe: Problem with file path Pin
Christian Graus11-Nov-09 16:20
protectorChristian Graus11-Nov-09 16:20 
GeneralRe: Problem with file path Pin
Maxdd 711-Nov-09 17:11
Maxdd 711-Nov-09 17:11 
GeneralRe: Problem with file path Pin
Christian Graus11-Nov-09 20:08
protectorChristian Graus11-Nov-09 20:08 
GeneralRe: Problem with file path [modified] Pin
Maxdd 712-Nov-09 6:57
Maxdd 712-Nov-09 6:57 
QuestionSame page, different access - use Sessions? Pin
Maxdd 711-Nov-09 9:28
Maxdd 711-Nov-09 9:28 
I worked many time with PHP, and always used Sessions variables. For example: I have two users, with two different access level (lets say admin is 1 user is 2). The webpage as an ordinary table with information. Admin can view and edit, but user can only view.

With PHP what I did is define the access level on a field (SQL table) of the table 'Users', and then, depending on the value of that field I do something like:

index.php (..)

if($_SESSION['level'] == 1)
include(indexAdmin.php)

if($_SESSION['level'] == 2)
include(indexUser.php)


Do you see the point? I need to do something similar with ASP.NET 3.5 C# coding, and I dont want to use and create groups on web.config.

What can I do ?
AnswerRe: Same page, different access - use Sessions? Pin
Christian Graus11-Nov-09 9:30
protectorChristian Graus11-Nov-09 9:30 
GeneralRe: Same page, different access - use Sessions? Pin
Maxdd 711-Nov-09 9:45
Maxdd 711-Nov-09 9:45 
GeneralRe: Same page, different access - use Sessions? Pin
Christian Graus11-Nov-09 9:49
protectorChristian Graus11-Nov-09 9:49 
GeneralRe: Same page, different access - use Sessions? Pin
Maxdd 711-Nov-09 9:55
Maxdd 711-Nov-09 9:55 
GeneralRe: Same page, different access - use Sessions? Pin
Christian Graus11-Nov-09 10:12
protectorChristian Graus11-Nov-09 10:12 
GeneralCode behind .aspx.cs Pin
David Mujica11-Nov-09 9:53
David Mujica11-Nov-09 9:53 
AnswerRe: Same page, different access - use Sessions? Pin
David Mujica11-Nov-09 9:34
David Mujica11-Nov-09 9:34 
GeneralRe: Same page, different access - use Sessions? Pin
Maxdd 711-Nov-09 9:58
Maxdd 711-Nov-09 9:58 
GeneralRe: Same page, different access - use Sessions? Pin
Petr Pechovic11-Nov-09 10:14
professionalPetr Pechovic11-Nov-09 10:14 
GeneralRe: Same page, different access - use Sessions? Pin
Maxdd 711-Nov-09 16:28
Maxdd 711-Nov-09 16:28 
Question.txt to SQL (MS SQL Server) [modified] Pin
Maxdd 711-Nov-09 8:53
Maxdd 711-Nov-09 8:53 
AnswerRe: .txt to SQL (MS SQL Server) Pin
Christian Graus11-Nov-09 9:29
protectorChristian Graus11-Nov-09 9:29 
GeneralRe: .txt to tSQL (MS SQL Server) Pin
Maxdd 711-Nov-09 9:44
Maxdd 711-Nov-09 9:44 
GeneralRe: .txt to tSQL (MS SQL Server) Pin
Christian Graus11-Nov-09 9:49
protectorChristian Graus11-Nov-09 9:49 
GeneralRe: .txt to tSQL (MS SQL Server) Pin
Maxdd 711-Nov-09 9:56
Maxdd 711-Nov-09 9:56 
GeneralRe: .txt to tSQL (MS SQL Server) Pin
Christian Graus11-Nov-09 10:10
protectorChristian Graus11-Nov-09 10:10 
GeneralRe: .txt to tSQL (MS SQL Server) Pin
Maxdd 711-Nov-09 10:22
Maxdd 711-Nov-09 10:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.