GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET 2.0
Go To First  |  Previous Question  |  Next Question 
 ASP.NET 2.0  |  Question 34 of 161    Print  
Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?

  
Total Answers and Comments: 2 Last Update: June 07, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 23, 2005 10:52:47   #1  
Praveen Kumar        

RE: Can you give an example of what might be best suit...
To provide individual data for a user during a session data can be stored with session scope. In the following sample values for user preferences are initialized in the Session_Start event in the Global.asax file.Sub Session_Start() Session( BackColor ) beige ...End Sub' In the following sample a file is read in Application_Start (defined in the Global.asax file) and the content is stored in a DataView object in the application state.Sub Application_Start() Dim ds As New DataSet() Dim fs As New FileStream(Server.MapPath( schemadata.xml ) FileMode.Open FileAccess.Read) Dim reader As New StreamReader(fs) ds.ReadXml(reader) fs.Close() Dim view As New DataView (ds.Tables(0)) Application( Source ) viewEnd Sub
 
Is this answer useful? Yes | No
June 07, 2007 09:15:19   #2  
s.jabee Member Since: June 2007   Contribution: 4    

RE: Can you give an example of what might be best suit...
  • Simple example can be initialize / retrieve the hit counter of the site in application_start

    And increment the counter in session_start.

 
Is this answer useful? Yes | No

 Related Questions

Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component

Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?

How to create a DB connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed.if question not clear,let me know.reply to my e mail id.
Read Answers (3) | Asked by : rahul

What is Specific Difference Between Session.Abandon();andSession.Kill();Note: Because Microsoft has a big logic to give two method for different work not for same work.

Latest Answer :                     ...

Question: Can you define basic element of WebServices and explain any one from them?Answer: These are as follows SOAP, WSDL and UDDI. And I am explaining about the SOAP(Simple Object Access Protocol) it 
View Question | Asked by : umesh_20012

I have created a custom control to get the values and sum them, Here I am able to get display the controls but I am not able to add the values in the text box which means that I am not able to catch the 
Latest Answer : First you may build the control ex Button b = new Button(); b.Text = "ex"; Then you add the button to other control right ? like this.control.add(b); but before add the button (b) to other control, you add the even to the button (b) because its a button, ...


 Sponsored Links

 
Related Articles

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

HR Interview - Telephone Interview Etiquette

Telephone Interview Etiquette When you conduct a telephone interview for a job it is important to show the proper etiquette Not only is it important it is critical is you wish to be hired by the company There are a number of things you will want to do and other things should never be done mosgoogle
 

HR Interview - How To Succeed At HR Interviews

How To Succeed At HR Interviews There are a number of things you will need to do in order to make sure you pass the interview process Your appearance is something that you will want to pay close attention to Even if you feel that your appearance shouldn t be a factor in whether or not you re highere
 

HR Interview - Do's and Dont's in a HR Interview

Do s and Dont s in a HR Interview There are a number of things that you will want to avoid during the HR interview process While some of these things are directed at the interviewer the other things are directed at the applicant If interviewers fail to follow the proper procedures throughout the int
 

HR Interview - HR Interview Tips

HR Interview Tips It has become more challenging for companies to find the right employees because of the market When you hold an interview for a potential employee there are a number of things you will want to keep in mind mosgoogle The goal of a company should be to hire an employee who can perfor
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape