What is the Difference between Web.config and global.asax?
Can we write connection String code in global.asax?

Answer Posted / saiish

web.config contains values.
global.config contains code.


n we cant place connection string code in global.asax.
we can place only in web.config.

Is This Answer Correct ?    6 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sessions in asp net?

526


What is asp net application object?

537


What is another word for redirect?

509


What is event bubbling?

608


How does a content page differ from a master page?

508






What is inproc mode in session?

511


What is server redirect?

551


How do cookies work? Give an example of their abuse.

544


Explain the namespace classes used in asp.net mvc? : asp.net mvc

497


How is my content secured from unauthorized access?

519


How do you hide the columns?

590


What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

586


Which method has beenintroduced in asp.net 4.0 to redirect a page permanently?

532


What is the significance of proxy user?

619


How to sign out from forms authentication?

548