473,320 Members | 2,122 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,320 software developers and data experts.

setting up web.config...

RAB
I am designing an application. I have 5 web pages. Page1.aspx,
Page2.aspx, Page3.aspx, Page4.aspx and Login.aspx

I want any user to freely be able to navigate between Page1.aspx and
Page2.aspx

However, I only want users who submit a valid username and password on
Login.aspx to be able to navigate to Page3.aspx and Page4.aspx

How do I set up my web.config file in order to have this functionality?

Thanks,
RABMissouri

Jun 11 '06 #1
2 2482
You can :

1. Assign your users to a role and limit access with <location path=...> in web.config.

2. Place the protected files in a subdirectory,
and control access with <location path=...> in web.config.

http://www.howtodothings.com/compute...ith-roles.html

3. You can also setup security per-page :

<location path="some.aspx">
<system.web>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</location>

http://www.asp101.com/articles/matt/...te/default.asp

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"RAB" <ra*********@yahoo.com> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com...
I am designing an application. I have 5 web pages. Page1.aspx,
Page2.aspx, Page3.aspx, Page4.aspx and Login.aspx

I want any user to freely be able to navigate between Page1.aspx and
Page2.aspx

However, I only want users who submit a valid username and password on
Login.aspx to be able to navigate to Page3.aspx and Page4.aspx

How do I set up my web.config file in order to have this functionality?

Thanks,
RABMissouri


Jun 11 '06 #2
Put page3 and page4 in a subdirectory then put form authentication on that
dir.

"RAB" <ra*********@yahoo.com> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com...
I am designing an application. I have 5 web pages. Page1.aspx,
Page2.aspx, Page3.aspx, Page4.aspx and Login.aspx

I want any user to freely be able to navigate between Page1.aspx and
Page2.aspx

However, I only want users who submit a valid username and password on
Login.aspx to be able to navigate to Page3.aspx and Page4.aspx

How do I set up my web.config file in order to have this functionality?

Thanks,
RABMissouri

Jun 12 '06 #3

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

Similar topics

2
by: Maverick | last post by:
In normal application the set and get of appSettings are simply as following <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="Log" value="1" /> </appSettings>...
1
by: Amit Bansal \(MCT, MCSD.NET\) | last post by:
the msdn documentation says that if we can do application level binding by specifying the masterpagefile attribute in web.config, so that all the pages in the application are bound to a master...
6
by: John H Clark | last post by:
I am designing a site that requires AnonymousID. I set my web.config to allow this using <anonymousIdentification enable="true".../as recommended in the documentation. To verify the settings I...
5
by: giddy | last post by:
Hi , I'm probably just doing something a little silly. I get a System.Configuration.ConfigurationErrorsException! This is my config file: <configSections> <section name="qConfig"...
0
by: chefwiggum | last post by:
I have an application wide configuration setting (pages theme) that is dynamic. Normally when you think of picking themes you think of the user selecting a theme (a per-user setting). In this...
3
by: Jeff | last post by:
ASP.NET 2.0 I'm wondering how to add a custom setting into web.config. From this website I'm doing a http request to another website, and I would like to have the webaddress of this other...
3
by: daokfella | last post by:
In my solution, I have a project that is my data access layer. This layer simply consists of strongly-typed datasets created by dragging tables from the server explorer into the dataset designer....
4
by: =?Utf-8?B?QmlsbCBNaWxk?= | last post by:
Feel free to let me know if there is a better place to post this question I'm a website developer trying to write a Windows Service, and I think I'm running into trouble due to the paradigm...
8
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list...
5
by: daokfella | last post by:
I have a custom web.config section similar to the following: <CustomAuthSettings attr1="" attr2=""> <Locations RedirectUrl="Invalid.aspx"> <add Path="test.aspx" Roles="1,2,3" Permissions="4,5,6"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.