What is the Difference between Web.config and global.asax?
Can we write connection String code in global.asax?
Answer Posted / dasharatham
sorry to the above answer which is applicable to ASP.NET
application folders..
web.config is which is used for settings to an application
in future requirement.
Global.asax which is handling application level events and
session level events..
I expected we can place the connection string like this
void Session_Start(object sender, EventArgs e)
{
Application["sqldb"] = ConfigurationManager.AppSettings
["constr"].ToString();
}
Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
Which protocol is used to call a web service?
What is the importance of Global.asax in ASP.NET?
What is server side in asp.net?
How do I send an email message from my ASP.NET page?
Explain how do you validate the controls in an asp .net page?
What is session and application variable in asp net?
Explain the Session state management options available with ASP.NET?
What is difference between view and partial view?
I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?
In which event are the controls fully loaded?
What kind of data we can store in viewstate?
What is the difference between stored procedure vs function?
How many web.config files can I have in an application?
I have an excel file with data, i am importing this excel file data into Sqlserver 2005 database. while importing i am getting wrong data(ie, special characters) in one column(description column), upto some limit the data in that column is coming fine,after that data is coming like below. The "Walter" leather storage bench is one of our most popular styles. The top with the tufting and double stitching finish a very impressive piece. The size is perfect in front of beds and the storage adds another functional bonus. Open it up and sneak al���Ƴ�Â��ƴ�Ã��ƶ�Å�� al���Ƴ�Â��ƴ�Ã��ƶ�Å�� Is there anywhy to resolve this? (I am using recordset in coding for developing import process.) please help me soon.
What is difference between asp.net and asp?