What happened to Global.asa?

gmbblokus

New Member
In asp .Net how we will be using the global.asa which we use to use in asp. I am a bit confused about it now. We used to define our dsn connection to it. Now in .Net where we will do it? How we will read data from database without definnig the DSN?<BR><BR>Some help will be appriciated.now it's "Global.asax"<BR>but it's better if you define your connection string in "Web.config"<BR>e.g.<BR> <appSettings><BR> <add key="ConnectionString" value=http://aspmessageboard.com/archive/index.php/"con. string"/><BR> </appSettings><BR><BR>and then use<BR>ConfigurationSettings.AppSettings["ConnectionString"]<BR>to get the connection stringUsing the Webconfig file is the best way I've found. I used to use global.asa but in asp.net global.aspx.vb is compiled in with the webapp's DLL so you can't just edit it at runtime. The web.config method works great and can be used to specifiy server specific settings for your app.
 
Back
Top