Asp .Net Interview Question and Answer | Web Application | Session 10

91. What do you mean by neutral cultures? 
Ans: Neutral cultures represent general languages, such as English or Spanish and a specific language and region.ASP.NET assigns that culture to all the threads running for that Web application.When user set culture attribute for a Web application in Web.config.ASP.NET maintains multiple threads for a Web application within the aspnet_wp.exe worker process.
 
92.  Explain the aim of using EnableViewState property? 
Ans: When the page is posted back to the server, the server control is recreated with the state stored in viewstate.It allows the page to save the users input on a form across postbacks. It saves all the server side values for a given control into ViewState, which is stored as a hidden value on the page before sending the page to the clients browser.

93. What are the 3 different ways to globalize web applications?
 
Ans: Detect and redirect approach : In this approach we create a separate Web application for each supported culture, and then detect the user’s culture and redirect the request to the appropriate application. This approach is best for applications with lots of text content that requires translation and few executable components.

Run-time adjustment approach : In this approach we create a single Web application that detects the user’s culture and adjusts output at run time using format specifiers and other tools. This approach is best for simple applications that present limited amounts of content.

Satellite assemblies approach : In this approach we create a single Web application that stores culture-dependent strings in resource files that are compiled into satellite assemblies. At run time, detect the user’s culture and load strings from the appropriate assembly. This approach is best for applications that generate content at run time or that have large executable components.
 
94. What is Globalization?  
Ans: Globalization is the process of creating an application that meets the needs of users from multiple cultures.
This process involves translating the user interface elements of an application into multiple languages, using the correct currency, date and time format, calendar, writing direction, sorting rules, and other issues.
 
95. What is Authentication and Authorization ? 
Ans: An authentication system is how you identify yourself to the computer. The goal behind an authentication system is to verify that the user is actually who they say they are.
Once the system knows who the user is through authentication, authorization is how the system decides what the user can do.

96. What are the two levels of variable supported by Asp.net?
 
Ans: 1. Page level variable:String ,int ,float.
          2. Object level variable:Session level, Application level.
 
97. How do you identify a Master Page and how do you bind a Content Page to a Master Page? 
Ans: The master page is identified by a special @ Master directive that replaces the @ Page directive that is used for ordinary .aspx pages.
MasterPageFile attribute of a content page's @ Page directive is used to bind a Content Page to a Master Page.

98. What are the 2 important parts of a master page and file extension for a Master Page? 
Ans: The following are the 2 important parts of a master page
          1. The Master Page itself
          2. One or more Content Pages
The file extention for Master Page is ".master".
 
99. What is a Master Page in Asp.Net? 
Ans: For consistent layout for the pages in application used Master Pages.A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application.Then user create individual content pages that share all the information and lay out of a Master Page.
 
100. What are the Session State Modes? Define each Session State mode supported by ASP.NET. 
Ans: ASP.NET supports three Session State modes.
        1. InProc:This mode stores the session data in the ASP.NET worker process and fastest among all of the storage modes.Its Also effects performance if the amount of data to be stored is large.
         2. State Server:This mode maintained on a different system and session state is serialized and stored in memory in a separate process.
State Server mode is serialization and de-serialization of objects. State Server mode is slower than InProc mode as this stores data in an external process.
         3. SQL Server:This mode can be used in the web farms and reliable and secures storage of a session state.In this storage mode, the Session data is serialized and stored in a database table in the SQL Server database.


Previous Next


:: Click the links below for similar type Questions and answers ::

0 comments:

Post a Comment

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes