0

hi,
there...im trying to figure out where to use these authentication codes as im trying to come up with a login page. these codes are used over the <head> tag, but is it used within the <html> tag?

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

	<!-- enable forms authentication -->
	<system.web>
		<authentication mode="Forms">
			<forms name="ASP101SampleAuth" loginUrl="login.aspx" />
		</authentication>
	</system.web>

	<!-- set secure page to reject anonymous users -->
	<location path="login-protected.aspx">
		<system.web>
			<authorization>
				<deny users="?" />
			</authorization>
		</system.web>
	</location>

</configuration>
3
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by johnny.g
0

hi,, as serkan said,,this has to be used in the web config file.
here. There are predefined tags in the webconfig file, u dont have to create a separate html or xml file for ur project

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.