Thursday, January 28, 2010

Coding for Accessing Sub Directory file with authentication mode as Forms using a web config file

IF u have a single Folder you should write the given code below

Code in a Web Config Root File

Note: when u use this code Just ignore to type Double quotes with the tags.

"<" configuration ">"
"<" location path="Your first sub directory folder Name" ">"
"<" system.web ">"
"<" authorization ">"
"<" allow users="*" "/>"
"<"/ authorization ">"
"<"/ system.web ">"
"<"/ location ">"
"<"/ configuration ">"

If you have more than one folder write the code given below

"<" configuration ">"

"<" location path="Your first sub directory folder Name" ">"
"<" system.web ">"
"<" authorization ">"
"<" allow users="*" "/>"
"<"/ authorization ">"
"<"/ system.web ">"
"<"/ location ">"

"<" location path="Your Secondary sub directory folder Name" ">"
"<" system.web ">"
"<" authorization ">"
"<" allow users="*" "/>"
"<"/ authorization ">"
"<"/ system.web ">"
"<"/ location ">"

"<"/ configuration ">"

No comments: