Re: Include and Include File
- From: "Gregory A. Beamer" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Jul 2009 14:20:41 -0700
"Thom Little" <thom@xxxxxxxxxx> wrote in
news:#6QQOT8DKHA.1540@xxxxxxxxxxxxxxxxxxxx:
I attempted to put together a simple example that would illustrate the
issue that I have. The need is to easily pass definition information
among levels of include files to minimize the amount of data that must
be transferred between machines.
My need is not to have every page of the website to have the identical
look-and-feel but rather to allow each page to have the ability to
have its look-and-feel customized. In my example loaded-a and
loaded-b would be entirely different presentations.
My need is the ability to substitute variables in the "called included
file" prior to its presentation to the browser.
My supposition (out of ignorance) is that the solution is somehow
associated with the use of .ascx files and user controls.
If you are changing actual pieces shown, as in user a gets a datagrid,
but user b just get's a list, you can control that in a variety of ways.
One example, is setting up login views and setting up views by roles.
User a is anonymous, so he gets nothing here, user b is administrator so
he sees the full grid, user c is regular user, so he just sees a list.
If you are talking user a likes pink and user b likes blue, or even user
a likes the calendar to show up, but user b does not, you can use
themes, if you can group the items, or even use a variation of the login
views by roles.
There is also Profiles, but the default Profile bits have never worked
for me. Fortunately, it is easy enough to create a custom provider.
If you wan the user to completely customize the UI, you can move to web
parts, where individual bits of functionality are contained in a web
part. You set up the default and then link the user's prefs back to
Profile.
The method you are attempting is very work intensive and hard to
maintain. It was necessary in classic ASP, as there was no other model.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com
*******************************************
| Think outside the box! |
*******************************************
.
- References:
- Include and Include File
- From: Thom Little
- Re: Include and Include File
- From: Gregory A. Beamer
- Re: Include and Include File
- From: Thom Little
- Include and Include File
- Prev by Date: Re: Include and Include File
- Next by Date: ObjectDataSource and GridView SortExpression with multiple columns problem
- Previous by thread: Re: Include and Include File
- Next by thread: Re: Include and Include File
- Index(es):
Relevant Pages
|