What is Neutral Cultures?

A neutral culture is a culture that is associated with a language but not with a country/region. A specific culture is a culture that is associated with a language and a country/region. For example, fr is the neutral name for the French culture, and fr-FR is the name of the specific French (France) culture. Note that Chinese (Simplified) and Chinese (Traditional) are also considered neutral cultures.

What is invariant cultures?

The invariant culture is culture-insensitive. Your application specifies the invariant culture by name using an empty string ("") or by its language identifier. InvariantCulture retrieves an instance of the invariant culture. It is associated with the English language but not with any country/region. It is used in almost any method in the Globalization namespace that requires a culture.

What is assembly in .net? and Which are the types of assembly?

Assembly is the partially compiled code which may be in format of dll and exe. Which is in the CLI language.
An assembly can consist of one or more files. Code files are called modules. An assembly can contain more than one code module and since it is possible to use different languages to create code modules it is technically possible to use several different languages to create an assembly.

Types of the Assembly are
Private Assembly :
Private assebllies are stored in the appliation's bin folder. so other application can not access that.

Shared Assembly :
Shared application assembly stored in the global path (default framework path) which also called Global Assembly Catche(GAC). This asseblies are globally unique names and version. Benfits of this assembly is resusablity and versoning.

Static and Dynami Asseblies
Assemblies can be static or dynamic. Static assemblies are stored in the disk as physical files but dynamic assemblies are not saved to disk before execution and are executed directly from memory.

Satellite Assembly
Satellite assembly can not store any code but this stores the resoures like culture, images, language specific string via resource file. So this is also called as localised assebly.

How to deploy asp.net website on remote server?

Basically there is 3 main types of web deployement on server
  1. XCOPY : By this method all the local website copy and past to the remote server (with aspx and asp.cs/vb ) pages
  2. Publish Website Wizard :
    This is the one of the option in the Visual Studio (Right click on website). By this you can compile all the website and generate assembly for each page in the bin folder. you can now upload this published(compiled website)
  3. Web Deployement Kit :
    This is the small external tools from the Microsoft. After install you can found this in the Website right click menu in the Solution Explorer as WebDeployment Project. It works same as the Publish website but main difference is that this tool combines all assembly (aspx.cs/vb) in to one. so when ever you have changes you need to upload single assembly and seperate aspx page.

What is Enum? (C#)

The enum keyword is used to declare an enumeration, a distinct type consisting of a set of named constants called the enumerator list. Every enumeration type has an underlying type, which can be any integral type except char.

Enums type can be integer (float, int, byte, double etc.). But if you used beside int it has to be cast.

enum is used to create numeric constants in .NET framework. All member of enum are of enum type. There must be a numeric value for each enum type.

The default underlying type of the enumeration elements is int. By default, the first enumerator has the value 0, and the value of each successive enumerator is increased by 1.

enum Dow {Sat, Sun, Mon, Tue, Wed, Thu, Fri};


  • enums are enumerated data type in c#.
  • enums are not for end-user, they are meant for developers.
  • enums are strongly typed constant. They are strongly typed, i.e. an enum of one type may not be implicitly assigned to an enum of another type even though the underlying value of their members are the same.
  • Enumerations (enums) make your code much more readable and understandable.
  • enum values are fixed. enum can be displayed as a string and processed as an integer.
  • The default type is int, and the approved types are byte, sbyte, short, ushort, uint, long, and ulong.
  • Every enum type automatically derives from System.Enum and thus we can use System.Enum methods on enums.
  • Enums are value types and are created on the stack and not on the heap.
Source : 

What is global.asax? Defiene global.asax events.

The Global.asax file, also known as the ASP.NET application file which contains code for responding to application-level and session-level events raised by ASP.NET or by HTTP modules. The Global.asax file resides in the root directory of an ASP.NET application.

Events

  • Application_Init: Fired when an application initializes or is first called. It's invoked for all HttpApplication object instances.
  • Application_Disposed: Fired just before an application is destroyed. This is the ideal location for cleaning up previously used resources.
  • Application_Error: Fired when an unhandled exception is encountered within the application.
  • Application_Start: Fired when the first instance of the HttpApplication class is created. It allows you to create objects that are accessible by all HttpApplication instances.
  • Application_End: Fired when the last instance of an HttpApplication class is destroyed. It's fired only once during an application's lifetime.
  • Application_BeginRequest: Fired when an application request is received. It's the first event fired for a request, which is often a page request (URL) that a user enters.
  • Application_EndRequest: The last event fired for an application request.
  • Application_PreRequestHandlerExecute: Fired before the ASP.NET page framework begins executing an event handler like a page or Web service.
  • Application_PostRequestHandlerExecute: Fired when the ASP.NET page framework is finished executing an event handler.
  • Applcation_PreSendRequestHeaders: Fired before the ASP.NET page framework sends HTTP headers to a requesting client (browser).
  • Application_PreSendContent: Fired before the ASP.NET page framework sends content to a requesting client (browser).
  • Application_AcquireRequestState: Fired when the ASP.NET page framework gets the current state (Session state) related to the current request.
  • Application_ReleaseRequestState: Fired when the ASP.NET page framework completes execution of all event handlers. This results in all state modules to save their current state data.
  • Application_ResolveRequestCache: Fired when the ASP.NET page framework completes an authorization request. It allows caching modules to serve the request from the cache, thus bypassing handler execution.
  • Application_UpdateRequestCache: Fired when the ASP.NET page framework completes handler execution to allow caching modules to store responses to be used to handle subsequent requests.
  • Application_AuthenticateRequest: Fired when the security module has established the current user's identity as valid. At this point, the user's credentials have been validated.
  • Application_AuthorizeRequest: Fired when the security module has verified that a user can access resources.
  • Session_Start: Fired when a new user visits the application Web site.
  • Session_End: Fired when a user's session times out, ends, or they leave the application Web site.

Difference between Store Procedure and Function(UDF)

  • Function must return value but SP not.
  • Function can be used in the sql statements anywhere in the WHERE/HAVING/SELECT section where as SP cannot be.
  • Function has not output parameter but SP has
  • If there is an error in Function its stops executing. But in SP’s it just ignores the error and moves to the next statement
  • UDF cannot make permanent changes to server environments while SP’s can change some of the server environment.
  • EXEC command can't be used inside a Function where it can be used inside an sproc.
  • Functions are normally used for computations where as procedures are normally used for executing business logic.
  • Stored procedure returns always integer value by default zero. Whereas function returns type could be scalar or table or table values

Common Mistakes during Interview to Avoid

For many job seekers, the interview is the single most stressful part of the job search process. Any number of things can go wrong, and a big part of being successful is avoiding simple mistakes. Here is list of most common mistakes job seekers make and how to avoid them.

  1. Failure to research the company Recruiters say that they expect candidates to spend at least one hour doing research on their web sites and reading about their companies via other web sites. Do your homework before the interview; know what the company does, and who their competitors are.
  2. Being unclear on which job you are interviewing for Become familiar with the job description so you can explain how your experiences, talents, strengths, and abilities will connect with company needs. Highlight how you're suited to that particular job.
  3. Not Marketing yourself Define yourself. What makes you different from other job candidates? Know your major strengths and accomplishments as they relate to the job you are applying for and the company.
  4. Asking silly questions Have at least three or four intelligent questions to ask the recruiter. It's OK (it actually leaves a positive impression with the recruiter) to have them written down in advance and to reference them at the appropriate time. Interviews are an exchange of information, and arriving without questions shows that you did not prepare for the whole interview.
  5. Dressing inappropriately for the interview Professional attire and attention to detail still count. You can never be too professional. Remember that everything-your appearance, your tone of voice, your conduct-contribute to the impression (positive or negative) that you make. Be presentable. Wear a pressed suit and shirt and polished shoes.
  6. Trying to wing the interview Practice! Get a list of general interview questions, a friend, a tape recorder, and a mirror and conduct an interview rehearsal. Practice until your delivery feels comfortable, not canned. 
  7. Not being yourself Be yourself and be honest! Don't pretend to understand a question or train of thought if you don't. If you don't know an answer, say so. Relax and be yourself. Remember you're interviewing the company, too.
  8. Listening poorly Focus on the question that is being asked and don't try to anticipate the next one. It's OK to pause and collect your thoughts before answering a question.
  9. Offering too little detail When answering case questions or technical questions or solving technical problems, take the time to "talk through" your thought processes. Recruiters are interested in seeing how your mind works and how it attacks a problem. 
  10. Lacking enthusiasm Maintain eye contact, greet the interviewer with a smile and a firm handshake (not too weak, not too strong), and show common courtesy. Don't be afraid to display your passion for the job/industry and to show confidence. 
  11. Do not arrive late for the interview. 
  12. Do not indicate you are late because the directions you were given were not good. 
  13. Do not slouch in your seat. 
  14. Do not maintain eye contact with the wall instead of the interviewer.
  15. Do not answer most questions with simple "yes" and "no" answers.
  16. Do not badmouth your current or former employer. 
  17. Do not ask "How am I doing? Are you going to hire me?" 
  18. When asked "Do you have any questions?", do not reply "No."

Personal Questions in Interview - 16

Describe your work ethic.
Emphasize benefits to the organization. Things like, determination to get the job done and work hard but enjoy your work are good.

Tell me about the most fun you have had on the job.
Talk about having fun by accomplishing something for the organization.

Do you have any questions for me?
Always have some questions prepared. Questions prepared where you will be an asset to the organization are good. How soon will I be able to be productive? and What type of projects will I be able to assist on? are examples.