Interview FAQs

An XML schema is a document that defines the structure of XML data. Much like a database schema, an XML schema can be used to validate the contents and structure of an XML file.

An XML schema is defined by using the XML Schema Definition Language(XSD). XSD is similar in structure to HTML, but whereas HTML defines layout of a document, XSD defines the structure and contents of the data.

for more details see - http://www.w3.org/2001/XMLSchema
false. One Web Application can have more than one web.config files.
1. Generics.
2. Nullable types.
3. GridView.
4. Merge Function with DataTable.
5. ReadXml, WriteXml with Datatable.
6. MasterPages, Themes, Skins, WebParts.
7. SqlCacheDependency.
8. Standard Control for Navigation.
Use the DataTable.ImportRow() method to copy DataRow object from one DataTable to another. Like:
DataTable dtSource = new DataTable();
da.Fill(dtSource); //Where da = DataAdapter
//Clone the schema to the copy table
DataTable dtCopy = new DataTable();
//Use DataTable.ImportRow() indexer method to import first 3 rows
for(int i =0; i<3; i++)
Use the CreateDataReader() method of the DataTable, Like:
DataTable dtSource = new DataTable();
da.Fill(dtSource); //Where da = DataAdapter
//Create a DataTableReader
DataTableReader dtr = dtSource.CreateDataReader();
Print the table values
Use the DataSet.Merge() method with the appropriate MissingSchemaAction enumeration values. The Merge() method of the DataSet object can merge a DataRow array, a DataTable, or a DataSet into an existing DataSet. If the Dataset has a primary key defined, the incoming data is matched to rows with the same key values. Where matches found, the existing row is updated with the new values. Otherwise rows are appended to the existing table.
In earlier versions of ASP.NET, assigning focus to a control involves writing client-side script (such as JavaScript). In ASP.NET 2.0, this process has been much simplified, and you can now set the focus of a control via its Focus() method. Like


You can also set the focus of a control through the SetFocus( ) method of the Page class. The syntax is:


Apart from this you can use defaultfocus attribute of form tag to set the control that will be assigned the focus when the form is loaded.

< form id="form1" runat="server" defaultfocus="txtEmail" >
In ASP.NET 2.0, you can now set a default button on a page so that when the user presses the Enter key the button is automatically invoked.

For example, you have a page with two TextBox controls and two Button controls. You can configure the Submit button to be the default button so it is automatically clicked when a user presses the Enter key. To set the default button of form use

< form id="form1" runat="server" defaultbutton="btnSubmit">
PreviousDisplaying 22 of 46Next
Need Help? Contact Us.

Log in


Forgot password?


New User