Click here to Skip to main content
15,897,273 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Going back to a previous web page with information still being present Pin
eyeseetee26-Mar-08 4:38
eyeseetee26-Mar-08 4:38 
QuestionCSS OVERLAPPING MENU?? (URGENT!) Pin
John Sundar26-Mar-08 2:54
John Sundar26-Mar-08 2:54 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
Eduard Keilholz26-Mar-08 3:21
Eduard Keilholz26-Mar-08 3:21 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
eyeseetee26-Mar-08 3:42
eyeseetee26-Mar-08 3:42 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
John Sundar26-Mar-08 4:50
John Sundar26-Mar-08 4:50 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
Jesse Squire26-Mar-08 7:22
Jesse Squire26-Mar-08 7:22 
QuestionRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
John Sundar26-Mar-08 19:29
John Sundar26-Mar-08 19:29 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
Jesse Squire27-Mar-08 1:23
Jesse Squire27-Mar-08 1:23 
1) In my example, MyMenuControl was the base type that I used to derrive my different menu controls from. When you load a control using the LoadControl method, it is returned as type object. You will need to cast it before putting into a placeholder. If you did not have a common base class for your menu, use UserControl for your cast.

2) IsInRole is the built-in mechanism for determining whether the user has a given security role in your application, when using the standard ASP.NET role-based security model. If you are interested in more information, please reference a link or two from this Google[^] search.

3) You answered your own question here. Test the value of your int_status variable. If it has the value you desire, load your adminmenu.ascx control. Once loaded, add the adminmenu.ascx control to the Controls collection of one of the objects on your page.

If you're still struggling, take another look at my example. It demonstrates the core operations for this. Simply replace the if condition with your int_status test, replace MyMenuControl variable/cast with the type of your adminmenu.ascx, and replace MenuPlaceHolder with your desired menu container.

Hope that helps. Smile | :)

  --Jesse
"... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi

GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
John Sundar27-Mar-08 2:40
John Sundar27-Mar-08 2:40 
GeneralRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
Jesse Squire27-Mar-08 2:49
Jesse Squire27-Mar-08 2:49 
QuestionRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
John Sundar31-Mar-08 19:38
John Sundar31-Mar-08 19:38 
AnswerRe: CSS OVERLAPPING MENU?? (URGENT!) Pin
Paul Conrad29-Jun-08 20:09
professionalPaul Conrad29-Jun-08 20:09 
GeneralCode behind for ASP tables Pin
wbeetge26-Mar-08 2:08
wbeetge26-Mar-08 2:08 
GeneralRe: Code behind for ASP tables Pin
Declan Bright26-Mar-08 2:19
Declan Bright26-Mar-08 2:19 
GeneralRe: Code behind for ASP tables Pin
wbeetge26-Mar-08 2:29
wbeetge26-Mar-08 2:29 
GeneralRe: Code behind for ASP tables Pin
Abhijit Jana26-Mar-08 2:42
professionalAbhijit Jana26-Mar-08 2:42 
GeneralRe: Code behind for ASP tables Pin
wbeetge26-Mar-08 2:47
wbeetge26-Mar-08 2:47 
GeneralRe: Code behind for ASP tables Pin
J4amieC26-Mar-08 2:49
J4amieC26-Mar-08 2:49 
GeneralRe: Code behind for ASP tables Pin
J4amieC26-Mar-08 2:45
J4amieC26-Mar-08 2:45 
GeneralRe: Code behind for ASP tables Pin
wbeetge26-Mar-08 2:52
wbeetge26-Mar-08 2:52 
GeneralRe: Code behind for ASP tables Pin
J4amieC26-Mar-08 2:54
J4amieC26-Mar-08 2:54 
GeneralRe: Code behind for ASP tables Pin
wbeetge26-Mar-08 3:03
wbeetge26-Mar-08 3:03 
GeneralRe: Code behind for ASP tables Pin
Abhijit Jana26-Mar-08 3:02
professionalAbhijit Jana26-Mar-08 3:02 
GeneralRe: Code behind for ASP tables Pin
Sneaki26-Mar-08 2:59
Sneaki26-Mar-08 2:59 
GeneralRe: Code behind for ASP tables Pin
wbeetge26-Mar-08 3:20
wbeetge26-Mar-08 3:20 

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.