473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Is it possiable to create an access rule for a file?

I vaguely recall that ASP.NET 1.1 had a way to specify specific pages and
associate required roles to access those pages.. Is there something similar
to that in ASP.NET 2.0? IE, I would like to say that all pages are open,
except x.aspx, y.aspx, and z.aspx. These pages require roles, a,b,c.. Looking
at the allow element, there is no page or related property..??
Sorry if this was already answered..
Thanks for the help..

Mar 20 '07 #1
1 983
On Mar 20, 3:52 pm, Beaker <Bea...@discussions.microsoft.comwrote:
I vaguely recall that ASP.NET 1.1 had a way to specify specific pages and
associate required roles to access those pages.. Is there something similar
to that in ASP.NET 2.0? IE, I would like to say that all pages are open,
except x.aspx, y.aspx, and z.aspx. These pages require roles, a,b,c.. Looking
at the allow element, there is no page or related property..??
Sorry if this was already answered..
Thanks for the help..
In the web.config for a directory or the main one you can setup the
<authorizationpart to do what you need.

If you want to restrict a certain page you need to put the
authorization in a <locationsection for that page or path.

For example:

<location path="x.aspx">
<system.web>
<authorization>
<allow roles="a,b,c" />
<deny users="*" />
</authorization>
</system.web>
</location>

Mar 20 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Raghuraman | last post by:
Hi i heared that Oracle can convert from number to word thru query i remember thru (jsp format) .Is it possiable in sqlserver Thanks
2
by: Raghuraman | last post by:
Hi, I've written a M.plan in my client place which is scheduled to occur weekly once.But 4 days gone from the last backup taken , there is a problem in the server which does not start loading...
11
by: George Hester | last post by:
I have a css file this is a portion of it: /* trackaccept.css */ div.track { width:400px; height: 100px; } I have this in my ASP page:
7
by: pintihar | last post by:
Hi, As a follow on from an earlier post I have another question about xslt. Is it possible to create the stylsheet programatically? Is this sensible? In the first phase I needed to map element...
32
by: Mike MacSween | last post by:
Further to 'Security - more complex than I thought' Has anybody ever seen any studies? Or anecdotal evidence? Done any studies themselves? Done any lab testing - you know - 10 users asked to get...
7
by: Bonnie R | last post by:
Hello! I am writing VBA code in Access 97 to import an Excel 2000 Spreadsheet. I had hoped to do this using ODBC, but that was not to be, for who knows what reason. The problem is that I import...
9
by: Raghuram | last post by:
I dont have any application development tool like Visual Studios .NET or any other tools. .. i have only IIS Server and 1.1 framework installed with these resources can write a sample aspx page...
5
by: Mitchell S. Honnert | last post by:
Is there a way, given the full path of a folder on a network, that one can programatically tell if you have Read access to that folder? I have an application where the user is able to select a...
5
by: toddles666 | last post by:
Hi- Is there any way of restricting access to a database by application & account? For example, I only want the application APP1 to access the database using the USER1 account. I've tried to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.