Sunday, 26 October 2014

asp.net interview questions part-1

It can contain many classes.
False, the webservice comes with a test page and it provides HTTP-GET method to test.
CompareValidator Control
DataTextField property
(Web Services Description Language)
False

Set AutoGenerateColumns Property to false on the datagrid tag
The Page class.
You must set the DataSource property and call the DataBind method.
ItemTemplate
Maintain the login state security through a database.
It enables the viewstate on the page. It allows the page to save the users input on a form.
Integer,String and Date.
It’s the Attributesproperty, the Add function inside that property. So btnSubmit.Attributes.Add(”onMouseOver”,”someClientCode();”)
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 eventhandlers, allowing the main DataGrid event handler to take care of its constituents.
CodeBehind is relevant to Visual Studio.NET only.
System.Web.UI.Page.Culture
System.Web.UI.Page
The latter one allows you to write formattedoutput.
inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe.
getXML () and get Schema ()
Clone - Copies the structure of the DataSet, including all DataTable schemas, relations, and constraints. Does not copy any data.
Copy - Copies both the structure and data for this DataSet.
IsClosed()
foreach(DataTable thisTable in myDataSet.Tables){
// For each row, print the values of each column.
foreach(DataRow myRow in thisTable.Rows){
Reads XML schema and data into the DataSet.
Read
GetString
GetInt32
while (myReader.Read())
Console.WriteLine(” {0} {1}”, myReader.GetInt32(0), myReader.GetString(1));
myReader.Close();

You can use the ADO.NET DataReader to retrieve a read-only, forward-only stream of data from a database. Using the DataReader can increase application performance and reduce system overhead because only one row at a time is ever in memory.
After creating an instance of the Command object, you create a DataReader by calling Command.ExecuteReader to retrieve rows from a data source, as shown in the following example.
SqlDataReader myReader = myCommand.ExecuteReader();
You use the Read method of the DataReader object to obtain a row from the results of the query.
while (myReader.Read())
Console.WriteLine(” {0} {1}”, myReader.GetInt32(0), myReader.GetString(1));
myReader.Close();
The DataSet is a memory-resident representation of data that provides a consistent relational programming model regardless of the data source. It can be used with multiple and differing data sources, used with XML data, or used to manage data local to the application. The DataSet represents a complete set of data including related tables, constraints, and relationships among the tables. The methods and objects in a DataSet are consistent with those in the relational database model. The DataSet can also persist and reload its contents as XML and its schema as XML Schema definition language (XSD) schema.
The DataAdapter serves as a bridge between a DataSet and a data source for retrieving and saving data. The DataAdapter provides this bridge by mapping Fill, which changes the data in the DataSet to match the data in the data source, and Update, which changes the data in the data source to match the data in the DataSet. If you are connecting to a Microsoft SQL Server database, you can increase overall performance by using the SqlDataAdapter along with its associated SqlCommand and SqlConnection. For other OLE DB-supported databases, use the DataAdapter with its associated OleDbCommand and OleDbConnection objects.


Read All Questions :-asp.net interview questions part-(1 to 8)
You have gain more knowledge

Visit Daily 

 best of luck !

No comments:

Post a Comment