Ask a Question related to ASP.NET General, Design and Development.
-
Andy Le #1
Page Filter in C#
Your opinion is appreciated.
I am thinking about building a role-based security module for my web
based application. Here is what I have in mind:
1. Build a page filter class which enherits from IHttpModule and
overide the Stream.Write() method....to basically remove the
restricted html elements based on the user's role before the html
comes back to the browser. Any defects in this design or do you see
any other better approaches ?
Thanks
Andy Le Guest
-
#40499 [NEW]: filter sapi does not register any highlightning filter
From: php at henke37 dot cjb dot net Operating system: any PHP version: 6CVS-2007-02-15 (CVS) PHP Bug Type: Apache2 related... -
Data Grid Header Filter Renderer or how do I get aheader to filter the data in a datagrid.
Okay so on the same theme as why isn't the datagrid like Excel, I have created a (very cool) Filter header. 1) The filter looks like any other... -
checkbox-driven page-content filter
I'd like to provide a client-side function to give the user the abiliity to filter a results set, after a search. As an example, a user searches for... -
Fog Filter
Is it possible to add fog to a picture? I am using PS Elements 2. Thanks Arnold -
Best way to filter?
Lets say we have two tables (1) VIPCustomers and (2) Invoices with the usual data. I have the following valid statement: SELECT A.* FROM... -
Romualdas #2
Page Filter in C#
Hi,
You have mentioned you are implementing role based
security. Roles are often responsible for working with
certain business entities that could be displayed in
UserControl (for caching, UI process, etc.).
So another possible approach in such case could be to
develop some attribute and apply it to class inherited
from UserControl, which would simply handle the display
according the attribute parameters such as groups, users
and display mode (hide or disable controls).
The benefits in this case:
- Easy to create;
- Simple attribute based programming later;
- All the benefits from the UserControl;
- And one more - the ViewState will have everything as it
should have. Just by removing HTML elements you'll have to
be carefull about this;
Drawbacks:
- Not sure, but probably streams could be a bit faster;
Romualdas
for my web based application. any other better>-----Original Message-----
>Your opinion is appreciated.
>
>I am thinking about building a role-based security module
approaches ?>
>Thanks.Romualdas Guest
-
Romualdas #3
Page Filter in C#
Just thought,
maybe dynamically loading different UserControls could be
enough (see IBuySpy portal)?
Romualdas
Romualdas Guest
-
romualdas #4
Page Filter in C#
another idea,
maybe it would be sufficient to load user controls
dynamically (like in IBuySpy)?
Romualdas
romualdas Guest



Reply With Quote

