Web.config, Global.asax
-
Dear All, My project has this files - Web.config, Global.asax What are the important in here. I need get complete idea about content in this file. Any one can pls give clear idea or submit articles or links. And also give idea about Forms Authentication / Windows Authentication ? Regards Kusal
-
Dear All, My project has this files - Web.config, Global.asax What are the important in here. I need get complete idea about content in this file. Any one can pls give clear idea or submit articles or links. And also give idea about Forms Authentication / Windows Authentication ? Regards Kusal
Hi The web.config file priority works from bottom to top. E.g if you have a folder in inetpub/wwwroot/myweb_service. And you have a web.config file in wwwroot and myweb_service the web.config file in myweb-service take higher priority than the one in wwwroot The web.config file have all the settings and info needed to run say your web service. It is not a good idea to store sensitive info in the web.config file as it can be accessed easily. You can however encode it, but don't ask me how, have not done it before goodluck hope it helps
-
Dear All, My project has this files - Web.config, Global.asax What are the important in here. I need get complete idea about content in this file. Any one can pls give clear idea or submit articles or links. And also give idea about Forms Authentication / Windows Authentication ? Regards Kusal
BLOEDHOND did a good job describing the web.config. It basicaly has the connection string for you sql server and other configuration type data. The Global.asax is a file where you can define some application events. Like application start, application error etc. These events happen the first time your web site is accessed or when your web site gets an error. You should be able to find a lot of information on these files if you just do a google search on them. Ben
-
BLOEDHOND did a good job describing the web.config. It basicaly has the connection string for you sql server and other configuration type data. The Global.asax is a file where you can define some application events. Like application start, application error etc. These events happen the first time your web site is accessed or when your web site gets an error. You should be able to find a lot of information on these files if you just do a google search on them. Ben
-
Hi The web.config file priority works from bottom to top. E.g if you have a folder in inetpub/wwwroot/myweb_service. And you have a web.config file in wwwroot and myweb_service the web.config file in myweb-service take higher priority than the one in wwwroot The web.config file have all the settings and info needed to run say your web service. It is not a good idea to store sensitive info in the web.config file as it can be accessed easily. You can however encode it, but don't ask me how, have not done it before goodluck hope it helps