|
-
Jan 10th, 2005, 04:40 AM
#1
Thread Starter
Addicted Member
MDI form, simple question (Resolved)
Hi all,
I am trying to create an MDI form in a web application. Somehow I can't find the MDI property. Is it a part of a normal .aspx page? Can't find it there.
Kindly bear with my ignorance.
Thanks,
flair
Last edited by flair; Jan 11th, 2005 at 02:28 AM.
-
Jan 10th, 2005, 05:06 AM
#2
Re: MDI form, simple question
You won't find it in ASP.NET.
-
Jan 10th, 2005, 05:17 AM
#3
Thread Starter
Addicted Member
Re: MDI form, simple question
Thanks Mendhak.
I thought so. Does that mean that the only option I have is the creation of a user defined control? I am trying to achieve it through a .ascx file. Is there a simpler and a better approach?
-
Jan 10th, 2005, 05:31 AM
#4
Re: MDI form, simple question
Maybe you should tell us what you are trying to do and WHY that would involve MDIs. We could give you better suggestions.
-
Jan 10th, 2005, 06:07 AM
#5
Thread Starter
Addicted Member
Re: MDI form, simple question
I am creating an application where I need the menus to be always visible. There can be only one active page at a time and the menus also depend upon the role assigned to logged in user.
I want to achieve something similar to MDI and modal forms in VB 6.0
-
Jan 10th, 2005, 06:53 AM
#6
Re: MDI form, simple question
One page visible at a time -> one web page visible at a time
Different menu for different users -> You'll have to include the menu control depending upon the 'userlevel' of that user, and based upon that, show the corresponding menu.
-
Jan 10th, 2005, 07:01 AM
#7
Thread Starter
Addicted Member
Re: MDI form, simple question
And where do i put this menu control? thats where the MDI had come into picture.
-
Jan 10th, 2005, 07:05 AM
#8
Re: MDI form, simple question
A simple menu, just like any other.
It could be an XML file which you render onto the page, or a text file which you parse and display. The logic behind this menu should go into a web user control (ASCX file), where you do the level check and get the xml/text file (or whatever), and that web user control gets included into this main page.
-
Jan 11th, 2005, 01:48 AM
#9
Thread Starter
Addicted Member
Re: MDI form, simple question
Does that mean that I have to include the menu into every page?
I think I am still influenced by VB6. But just for knowledge's sake, ain't it possible to have a menu page always in the backgrd n open the rest of the pages in its container in a web application?
-
Jan 11th, 2005, 02:01 AM
#10
Re: MDI form, simple question
If you want to go the lazy way and have it 'in the background', then one way would be to make use of frames. One frame would contain your menu and the other would contain the content pages. The problems with this method are:
1) Cumbersome
2) Clumsy
3) I hate it
4) Everyone hates it
While GUI applications have MDIs, there is no equivalent metaphor for it in ASP.NET, which is why ASP.NET is different.
One common method used by ASP.NET developers is to create a base page which will have the basic layout of the page on it. It's here that your menu could be included. You can then derive from the base page for each new page and then include your content controls.
Makes sense?
-
Jan 11th, 2005, 02:27 AM
#11
Thread Starter
Addicted Member
Re: MDI form, simple question
Thnx for bearing with my ignorant questions.
I'l go by ur advice of creating a base page.
cheers!
-
Jan 11th, 2005, 03:43 AM
#12
Re: MDI form, simple question (Resolved)
When you face further problems with this, post back in the ASP.NET forum, you'll have a better chance of getting an answer there.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|