Click here to Skip to main content
15,911,715 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:08
eyeseetee26-Mar-08 4:08 
GeneralRe: Going back to a previous web page with information still being present [modified] Pin
ahlaj7726-Mar-08 4:21
ahlaj7726-Mar-08 4:21 
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 
The other responses are correct in that your problem appears to stem from your use of frames. For all intents and purposes, the boundaries of a frame are treated just like a browser, from the content's point of view. What this means is that you will never be able to have your menus extend outside of their containing frame. Because the menu is contained within the frames, when it drops down, it must do so in the same frame. I would venture to guess that the containing frame is too small to display the drop down content.

It would seem to be that your best option is to reconsider your use of frames. I understand that you are attempting to display a different menu depending on the role that the current user holds. Is there a reason that you are unable to implement that decision on the server-side?

For example, one thing that you may consider is to create each version of your menu as a user control (using div tags, not frames) and dynamically loading that based on your user's role. Lets assume that you left a Placeholder control in the markup where you wanted to inject your menu. The code would look something like:

  MyMenuControl myMenu = null;

 

  if (this.User.IsInRole("Admin"))

  {

    myMenu = (MyMenuControl)LoadControl("~/menus/adminMenu.ascx");

  }

  else if (this.User.IsInRole("SomeRole"))

  {

    myMenu = (MyMenuControl)LoadControl("~/menus/someRoleMenu.ascx");

  }

  else

  {

    myMenu = (MyMenuControl)LoadControl("~/menus/userMenu.ascx");

  }

 

  this.MenuPlaceHolder.Controls.Add(myMenu);


Hope that helps. Smile | :)

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

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 
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 

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.