Click here to Skip to main content
15,923,142 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
Hi,
You can use this (as David above mentioned):

<asp:Panel runat="server" ID="pnlAdmin">
… my admin section
</asp:Panel>

<asp:Panel runat="server" ID="pnlUser">
… my common user section
</asp:Panel>

If (user is admin)
  pnlAdmin.Visible = true;
else if (user is user) {
  pnlUser.Visible = true;
  pnlAdmin.Visible = false;
}


It’s easy but it’s not so excellent. Consider to read this article to get more info: http://ryangaraygay.com/blog/post/2008/04/PlaceHolder-and-Panel-Visibility-and-ViewState.aspx[^]


Petr Pechovic
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 
GeneralRe: .txt to tSQL (MS SQL Server) Pin
Christian Graus11-Nov-09 11:18
protectorChristian Graus11-Nov-09 11:18 
GeneralRe: .txt to tSQL (MS SQL Server) Pin
Maxdd 711-Nov-09 11:36
Maxdd 711-Nov-09 11:36 
GeneralRe: .txt to tSQL (MS SQL Server) Pin
MidwestLimey11-Nov-09 11:39
professionalMidwestLimey11-Nov-09 11:39 
GeneralRe: .txt to tSQL (MS SQL Server) Pin
Maxdd 711-Nov-09 12:02
Maxdd 711-Nov-09 12:02 
GeneralRe: .txt to tSQL (MS SQL Server) Pin
Christian Graus11-Nov-09 11:40
protectorChristian Graus11-Nov-09 11:40 
GeneralRe: .txt to tSQL (MS SQL Server) Pin
Christian Graus11-Nov-09 9:52
protectorChristian Graus11-Nov-09 9:52 
Questionasp.net strange url problem? any ideas guys! Pin
wbjohnson11-Nov-09 8:50
wbjohnson11-Nov-09 8:50 
AnswerRe: asp.net strange url problem? any ideas guys! Pin
Petr Pechovic11-Nov-09 9:04
professionalPetr Pechovic11-Nov-09 9:04 
GeneralRe: asp.net strange url problem? any ideas guys! Pin
wbjohnson11-Nov-09 9:22
wbjohnson11-Nov-09 9: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.