Set - 4

Question 31 :

Where does the Web page belong in the .NET Framework class hierarchy?

Answer :

System.Web.UI.Page


Question 32 :

Where do you store the information about the user is locale?

Answer :

System.Web.UI.Page.Culture


Question 33 :

What is the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?

Answer :

CodeBehind is relevant to Visual Studio.NET only.


Question 34 :

What is a bubbled event?

Answer :

When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their event handlers, allowing the main DataGrid event handler to take care of its constituents.


Question 35 :

Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler?

Answer :

It is the Attributesproperty,
the Add function inside that property. So

btnSubmit.Attributes.Add("onMouseOver","someClientCode();")
A simple"Javascript:ClientCode();" in the button control of the .aspx page will attach the handler (javascript function)to the onmouseover event.