473,769 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to disable Form authentication

ad
I use authorization to Form in the root Web.config
But now I want to disable the Form authentication when request some web
pages
How can I do?
Jul 24 '06 #1
2 3576
There are a couple of ways to tackle this creature. If you can isolate the
items in question in another folder, you can set up that folder with another
web.config with different settings. It is easier if the protected pages are
in the lower folder.

Otherwise you can use <locationtags for each location you wish to have
different settings:

<!- Configuration for the "Sub1" subdirectory. -->
<location path="sub1">
<system.web>
<httpHandlers >
<add verb="*" path="Sub1.Scot t" type="Sub1.Scot t"/>
<add verb="*" path="Sub1.Davi d" type="Sub1.Davi d"/>
</httpHandlers>
</system.web>
</location>

Finally, you can set up an HttpHandler to handle specific pages, but this is
the bazooka to kill an ant approach in most cases.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think Outside the Box!
*************** *************** *************** ****
"ad" <fl****@wfes.tc c.edu.twwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
>I use authorization to Form in the root Web.config
But now I want to disable the Form authentication when request some web
pages
How can I do?

Jul 24 '06 #2
ad
Thanks,
I prefer to put the page without authentication in another folder.
How can I set the web.config to disable the Form authentication ?
"msnews.microso ft.com" <No************ @comcast.netNoS pamM¼¶¼g©ó¶l¥ó· s»D:ON********* *******@TK2MSFT NGP05.phx.gbl.. .
There are a couple of ways to tackle this creature. If you can isolate the
items in question in another folder, you can set up that folder with
another web.config with different settings. It is easier if the protected
pages are in the lower folder.

Otherwise you can use <locationtags for each location you wish to have
different settings:

<!- Configuration for the "Sub1" subdirectory. -->
<location path="sub1">
<system.web>
<httpHandlers >
<add verb="*" path="Sub1.Scot t" type="Sub1.Scot t"/>
<add verb="*" path="Sub1.Davi d" type="Sub1.Davi d"/>
</httpHandlers>
</system.web>
</location>

Finally, you can set up an HttpHandler to handle specific pages, but this
is the bazooka to kill an ant approach in most cases.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think Outside the Box!
*************** *************** *************** ****
"ad" <fl****@wfes.tc c.edu.twwrote in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
>>I use authorization to Form in the root Web.config
But now I want to disable the Form authentication when request some web
pages
How can I do?


Jul 25 '06 #3

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

Similar topics

2
1529
by: Bruno Alexandre | last post by:
Hi guys, If I want to block a user to change a form after submiting, I add a function that will disable the submit button, but when I'm getting the form collection (using post or get (form/querystring) I can't retrieve that button value... Is there any trick to do this? Like https://www.cuworld.com/ webpage... Try to register as a free user membership and after click the submit button check what hapend... They
5
5984
by: Bob Bedford | last post by:
I create checkboxes using datas from a database (with PHP). I store all values in an array, as I must pass this value like a Form value. Now, in some cases, when a checkbox is selected, I must disactivate other checkboxes. How can I do this ? here is the code:
12
8884
by: Forti2ude | last post by:
Hello, I have a simple form... <form> <select name="foo" multiple> <option value="1">one</option> <option value="2">two</option> <option value="3">three</option> </select>
4
3588
by: | last post by:
I want to program a application for user login in windows.Now I has some question about disable the system hotkey(c+a+d,alt+tab,win key.etc.) and limit the mouse cursor in winform How can I do it? thanks!
11
2972
by: David W. Simmonds | last post by:
I have a form that will prompt for a user name/password. In VS.NET, I have the protected form in a folder named Admin. I have a Web.config file in that folder as well. It contains the following section: <authorization> <deny users="?" /> <allow users="*" /> </authorization> In the root folder where the other forms are located I have a Web.config
16
3461
by: Barry Gilmore | last post by:
Is there a way to disable a button after it is clicked? I am trying to avoid having someone click on it twice while they wait for it to process. Thank you!
4
3125
by: Chris | last post by:
I have an asp.net page say page1.aspx. The form in html code is <form id = "Form1"> And i want to disable all the fields of the form after some code steps. I had created a javascript funct: function disable() { alert("Forms length is :" + Form1.length); for (i = 0; i < Form1.length; i++) { var formElement = Form1.elements;
0
1805
by: Ahmad Jalil Qarshi | last post by:
Hi! I have a problem while developing some webpages.The Problem is that:- How We Can Disable The Controls Of One Web Form From Other Web Form In Asp.net? Explanation:- There Should Be Two Web Form,Web Form1.aspx and Web Form2.aspx,Now From Web Form1.aspx When I Click One Button (Disable), Then Web Form2.aspx Buttons
2
3080
by: nick | last post by:
I have an Asp.Net 2.0 application using form authentication. I want the html pages be protected by the authentication system too. The accessing of html files need to be authenticated in my local system. However, it doesn't after I uploaded the files to my web host site. Any setting to modify to make my hosting html files need to be authenticated too?
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10211
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10045
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.