Monday 1 October 2012

Some Questions On .Net #1


Q1. What is ASP?
Ans. Active Server Pages (ASP), also known as classic ASP, is a Microsoft's server-side technology, which helps in creating dynamic and user friendly web pages.

Q2. What is ASP.net?
Ans. ASP.net is a specification developed by Microsoft to create dynamic web application, web sites & web services. It is a part of .net framework.

Q3. In which events are the controls fully loaded?
Ans. Page load events guarantees that all controls are fully loaded. Controls are also accessed in page_Init events but you will see that view state is not fully loaded during this event.

Q4. How can we identify that the page is post back?
Ans. Page object has an "Ispostback" property, which can be checked to know that is the page posted back.

Q5. What is the lifespan for items stored in viewstate?
Ans. The items stored in viewstate live until the lifetime of the current page expires including the postback to the same page.

Q6. How information about the user's locale can be accessed?
Ans. The information regarding a user's locale can be accessed by using the system.web .ui.page.culture property.

Q7. What is the difference between SQL notification & SQL invalidation?
Ans. The SQL cache notification generates notification when the  data of a database changes, on which your cache item depends . the SQL cache invalidation makes a cached
item invalid  when the data stored in a SQL server database changes.

Q8. Which is the parent class is the web server control?
Ans. The system.web.ui.control class is the parent class for all web server controls.

Q9. Can you set which type of comparison you want to perform by the compare validator control?
Ans. Yes, by setting the operator property of the compare validator control.

Q10.What is the behavior of web browser when it receives an invalid element?
Ans. The behavior of a web browser when it receives invalid elements depends on the browser that you use to browse your application. Most of the browsers ignore the invalid element, whereas, some of them display the invalid elements on the page.


Download this article in pdf format.


No comments:

Post a Comment