.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

What's the difference between tab-order and z-order?

Posted By :Shashi Ray     Posted Date :April 07, 2009    Points :10   Category :ASP.Net 
Tab-order describes the order of focus as the user moves between controls using the Tab and Shift+Tab keys.This is determined by the control's TabIndex property-set either in the Properties window, or by selecting View | Tab Order and then clicking each control in order. Z-order describes the front-to-back order of controls, and this set in the Designer using the Bring
to Front and Send to Back layout options. Z-order matters when controls visually overlap and also when docking:Those at the back of the z-order will be assigned docking space first.

You can also find related Interview Question to What's the difference between tab-order and z-order?  below: 

What order they are triggered ?

  
They''re triggered in the following order:

Application_BeginRequest
Application_AuthenticateRequest
Application_AuthorizeRequest
Application_ResolveRequestCache
Application_AcquireRequestState
Application_PreRequestHandlerExecute
Application_PreSendRequestHeaders
Application_PreSendRequestContent
<>
Application_PostRequestHandlerExecute
Application_ReleaseRequestState
Application_UpdateRequestCache
Application_EndRequest. (More...)

What is ORDER BY Syntax?

  
SELECT "COLUMN_NAME" FROM "TABLE_NAME" [WHERE "CONDITION"] ORDER BY "COLUMN_NAME" [ASC, DESC];


Example:-

SELECT EMPLOYEE_NAME, DESIGNATION, SALARY FROM EMPLOYEE_TABLE ORDER BY DESIGNATION DESC (More...)

How can you sort the value of the array in descending order?

  
First call Sort() and then Reverse() methods. (More...)

What is the order of events in a web form?

  
1. Init;
2. Load;
3. Cached post back events;
4. Prerender;
5. Unload; (More...)

How can you sort the elements of the array in descending order?

  
By calling Sort() and then Reverse() methods. (More...)

Can we have order by clause in Sql Server View?

  
Inorder to have ORDER BY Clause in Sql Server

we have to restrict the rows by Using TOP clause

If there is no TOP Clause then you cannot have ORDER BY clause

in a View (More...)

How can you sort the elements of the Array in descending order?

  
We can sort the array in descending order by calling
Array.Sort() and then by calling Array.Reverse() method. (More...)

This is the progam using inheritence, what is the order of calling constructors and what is the output?
Public Class ConstructorEx
Public Class Class1
Dim a As Integer
Sub New()
a = 1
Console.WriteLine("a in initialized in Class1")
End Sub
End Class

Public Class Class2
Inherits Class1
Dim b As Integer
Sub New()
b = 1
Console.WriteLine("b in initialized in Class2")
End Sub
End Class
Public Class Class3
Inherits Class2
Dim c As Integer
Sub New()
c = 1
Console.WriteLine("c in initialized in Class2")
End Sub
End Class

Shared Sub main()
'Creation of the object of type Class3
Dim c As New Class3()
Console.ReadLine()
End Sub
End Class

  
In this example creation of the object of type class3 calls the Class3 constructor and that constructor calls Class2 Constructor Class2 Calls Class1 Constructor.So first Class1 constructor will execute and then control will be trasfered to class2 constructor,After executing the class2 constructor the control will be treansfered to Class3 constructor.
means

Class1
|---->Sub New()---------------------|
| 'First it will execute <-----|
| End Sub |
| |
| Class2 |
|--->Sub New()----------------------|
| 'Second it will execute<-------|
| End Sub |
| |
| Class3 |
----Sub New()-----------------------|
'Third this will executes<-----|
End Sub

Means In the Creation of the object of type C, First Class1 Constuctor initializes the data, then class2 then class3.

So output of this program is
a in initialized in Class1
b in initialized in Class2
c in initialized in Class3
(More...)

Which template must you provide, in order to display data in a Repeater control?

  
You have to use the ItemTemplate to Display data. Syntax is as follows,
< ItemTemplate >
< div class ="rItem" >
< img src="images/<%# Container.DataItem("ImageURL")%>" hspace="10" />
< b > <% # Container.DataItem("Title")%>
< /div >
< ItemTemplate >
(More...)

What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

  
Set the DataMember property to the name of the table to bind to. (If this property is not set, by default the first table in the dataset is used.)
DataBind method, use this method to bind data from a source to a server control. This method is commonly used after retrieving a data set through a database query.
(More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend