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>

you should use these in web.config file, not within your html tags.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.