Click here to Skip to main content
Licence 
First Posted 14 Sep 2002
Views 57,784
Bookmarked 28 times

ASP-DHTML MDI Framework for Site Administration

By | 16 Sep 2002 | Article
An ASP-DHTML MDI framework for site administration.

Sample Image - mdiaspdm.jpg

Introduction

Almost every site I build has some sort of administration site built onto it and I wanted something to make the task of using these much easier by improving the interface. It was also required to be:

  1. Quick to reuse
  2. ASP centered and
  3. Easy to add to existing sites.

After much experimenting, what I came up with was an ASP MDI framework which has been tested on Mozilla and IE.

How Did You Do That?

Each 'Window' is a DIV element that contains an IFRAME with the content. Also added in, is some stock JavaScript DHTML (CBE DHTML library) to enable user positioning of the elements and resizing. The window contents are web pages from your site or from another server.

All that is needed to create a window is a simple function call:

Sub AddDivWin ( id, x, y ,width, height, title, url) 

    ...

    'Codeproject.com Demo
    '---------------------
    'Main Window
    AddDivWin "MW1",30,50,450,230, "Main Page " & Now(), "myadmin.html"
    AddDivWin "MWTodo2",540,50,189,220, "To Do ", "todo.htm"
    AddDivWin "MWpad",30,320,344,270, "NotePad ", "notepad.htm"
    AddDivWin "MWnews",420,320,383,270, "News ", _ 
            "http://news.bbc.co.uk/text_only.stm"

The id should be unique and prefixed with MW if you want a moveable and resizable window. As the element creation is under ASP control, it is possible to do more advanced features. The above example pulls up a News site - this could be adapted to only show this window if certain keywords are present on the page.

Graphics were created with MS Photopaint with a slight XP look and feel - I hope!

Last words

This is very much a starting point. After all, admin pages are very site specific. I hope this code helps you out in some way. I think it is a step towards a digital dashboard and I plan to improve it. Would be interested in your uses for it. Suggestions welcome!

Credits

Thanks to www.cross-browser.com for their excellent DHTML library.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Davy Mitchell

Web Developer

United Kingdom United Kingdom

Member

After being created, I spent too much of my childhood with a Dragon 32. Since then I have worked on Personality software, Children's websites, ATM and transport software. Most hobby development is web based and I often have a iPaq in my hand.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionCan Move? Can Resize ? Can Minimize,Can Manimize?? Pinmembercedy21:04 1 Feb '05  
GeneralCool PinsussAnonymous19:40 24 Sep '02  
GeneralIE only ! PinmemberStephaneRodriguez2:19 16 Sep '02  
GeneralRe: IE only ! PinmemberDavy Mitchell2:51 16 Sep '02  
GeneralRe: NOT IE only ! PinmemberDavy Mitchell10:18 17 Sep '02  
GeneralSeverely OT :) PinmemberKristopher11:47 15 Sep '02  
GeneralRe: Severely OT :) PinmemberDavy Mitchell21:01 15 Sep '02  

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

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

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 17 Sep 2002
Article Copyright 2002 by Davy Mitchell
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid