Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2005, 02:30 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default Urgent Forms Authentication & Shared Assembly

Hi Friends

I have two imp questions that needs answering very quickly.

1.) I am implementing forms authentication in my project, what I want is that when a user goes to a page say 'viewyourdetails.aspx' page, he gets redirected to the login page using the forms authentcation.
What is happening now is that whenever a user logs in to my website say 'p2p.wrox.com' he is redirected to the login page.

I WANT THE USER TO BE REDIRECTED TO THE LOGIN PAGE ONLY IF HE ENTERS THE PAGE 'viewyourdetails.aspx'

2.) How do I create a shared assembly so that everyone can use it, I know we have to specify a STRONG NAME but don't know how, Please guide me in details from creating to accessing the assembly from a page.

Thanks guys, please reply its really urgent

Mike

__________________
Regards
Mike
 
Old June 13th, 2005, 08:18 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Mike,

Take a look at the ASP.NET Settings Schema:

http://msdn.microsoft.com/library/en...tionschema.asp

In there you'll find a node for "location". The default web.config comes without the location node and thus the application root "/" is assumed. However, you can add a location node to specific path or page and add the configuration you wish:

   <location path="viewyourdetails.aspx">
      <system.web>
         <authentication mode="Forms">
            <forms name="name" loginUrl="login.aspx" />
         </authentication>
         <authorization>
            <deny users="?"/>
         </authorization>
      </system.web>
   </location>

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared / Public Assembly ashu_from_india General .NET 1 March 20th, 2005 07:22 AM
Create a shared assembly kk_katepally General .NET 1 February 7th, 2005 02:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.