ADO.NET Interview Questions and Answers - Part 6

31. Which object is used to add a relationship between two DataTable objects?

The DataRelation object is used to add relationship between two DataTable objects.

32. Explain the new features in ADO.NET Entity Framework 4.0.

ADO.NET Entity Framework 4.0 is introduced in .NET Framework 4.0 and includes the following new features:

  • Persistence Ignorance - Facilitates you to define your own Plain Old CLR Objects (POCO) which are independent of any specific persistence technology.
  • Deferred or Lazy Loading - Specifies that related entities can be loaded automatically whenever required. You can enable lazy loading in your application by setting the DeferredLoadingEnabledproperty to true.
  • Self-Tracking Entities - Refers to the entities that are able to track their own changes. These changes can be passed across process boundaries and saved to the database.
  • Model-First Development - Allows you to create your own EDM and then generate relational model (database) from that EDM with matching tables and relations.
  • Built-in Functions - Enables you to use built-in SQL Server functions directly in your queries.
  • Model-Defined Functions - Enables you to use the functions that are defined in conceptual schema definition language (CSDL).

33. What is the difference between the Clone() and Copy() methods of the DataSet class?

The Clone() method copies only the structure of a DataSet. The copied structure includes all the relation, constraint, and DataTable schemas used by the DataSet. The Clone() method does not copy the data, which is stored in the DataSet. The Copy() method copies the structure as well as the data stored in the DataSet.

34. What are the parameters that control most of connection pooling behaviors?

The parameters that control most of connection pooling behaviors are as follows:

    Connect Timeout
  • Max Pool Size
  • Min Pool Size
  • Pooling

35. How can you add or remove rows from the DataTable object of DataSet?

The DataRowCollection class defines the collection of rows for the DataTable object in a DataSet. TheDataTable class provides the NewRow() method to add a new DataRow to DataTable. The NewRow method creates a new row, which implements the same schema as applied to the DataTable. The following are the methods provided by the DataRowCollection object:

  • Add() - Adds a new row to DataRowCollection.
  • Remove()- Removes a DataRow object from DataRowCollection.
  • RemoveAt() - Removes a row whose location is specified by an index number.

36. What is the use of DataView?

User-defined view of a table is contained in a DataView. A complete table or a small section of table depending on some criteria can be presented by an object of the DataView class. You can use this class to sort and find data within DataTable. The DataView class has the following methods:

  • Find() - Finds a row in a DataView by using sort key value.
  • FindRows() - Uses the sort key value to match it with the columns of DataRowView objects. It returns an array of all the corresponding objects of DataRowView whose columns match with the sort key value.
  • AddNew() - Adds a new row to the DataView object.
  • Delete() - Deletes the specified row from the DataView object according to the specified index.

37. Explain in brief DataAdapter class in ADO.NET.

The DataAdapter class retrieves data from the database, stores data in a dataset, and reflects the changes made in the dataset to the database. The DataAdapter class acts as an intermediary for all the communication between the database and the DataSet object. The DataAdapter Class is used to fill a DataTable or DataSetObject with data from the database using the Fill() method. The DataAdapter class applies the changes made in dataset to the database by calling the Update() method. The DataAdapter class provides four properties that represent the database command:
SelectCommand, InsertCommand, DeleteCommand, and UpdateCommand.


1 2 3 4 5 6

ADO.NET Interview Questions and Answers - Part 5

25. What is connection pooling?

Connection pooling refers to the task of grouping database connections in cache to make them reusable because opening new connections every time to a database is a time-consuming process. Therefore, connection pooling enables you to reuse already existing and active database connections, whenever required, and increasing the performance of your application. You can enable or disable connection pooling in your application by setting the pooling property to either true or false in connection string. By default, it is enabled in an application.

26. What are the various methods provided by the DataSet object to generate XML?

The various methods provided by the DataSet object to generate XML are:

  • ReadXml() - Reads XML document into a DataSet object.
  • GetXml() - Returns a string containing an XML document.
  • WriteXml() - Writes an XML data to disk.

27. Out of Windows authentication and SQL Server authentication, which authentication technique is considered as a trusted authentication method?

The Windows authentication technique is considered as a trusted authentication method because the username and password are checked with the Windows credentials stored in the Active Directory.
The SQL Server Authentication technique is not trusted as all the values are verified by SQL Server only.

28. How would you connect to a database by using .NET?

The connection class is used to connect a .NET application with a database.

29. Which adapter should you use, if you want to get the data from an Access database?

OleDbDataAdapter is used to get the data from an Access database.

30. What are different types of authentication techniques that are used in connection strings to connect .NET applications with Microsoft SQL Server?

.NET applications can use two different techniques to authenticate and connect with SQL Server. These techniques are as follows:

  • The Windows Authentication option
  • The SQL Server Authentication option


1 2 3 4 5 6

ADO.NET Interview Questions and Answers - Part 4

19. How can you identify whether or not any changes are made to the DataSet object since it was last loaded?

The DataSet object provides the following two methods to track down the changes: The GetChanges() method - Returns the DataSet object, which is changed since it was loaded or since the AcceptChanges() method was executed. The HasChanges() method - Indicates if any changes occurred since the DataSet object was loaded or after a call to the AcceptChanges() method was made. If you want to revert all changes since the DataSet object was loaded, use the RejectChanges() method.

20. What is the use of the CommandBuilder class?

The CommandBuilder class is used to automatically update a database according to the changes made in aDataSet. This class automatically registers itself as an event listener to the RowUpdating event. Whenever data inside a row changes, the object of the CommandBuilder class automatically generates an SQL statement and uses theSelectCommand property to commit the changes made in DataSet. OLEDB provider in .NET Framework has the OleDbCommandBuiider class; whereas, the SQL provider has theSqlCommandBuilder class.

21. Explain the architecture of ADO.NET in brief?

AD0.NET consists of two fundamental components: The DataSet, which is disconnected from the data source and does not need to know where the data that it holds is retrieved from.
The .net data provider, which allows you to connect your application to the data source and execute the SQL commands against it. The data provider contains the Connection, Command, DataReader, and DataAdapter objects. TheConnection object provides connectivity to the database. The Command object provides access to database commands to retrieve and manipulate data in a database. The DataReader object retrieves data from the database in the readonly and forward-only mode. The DataAdapter object uses Command objects to execute SQL commands. The DataAdapter object loads the DataSet object with data and also updates changes that you have made to the data in the DataSet object back to the database.

22. Describe the disconnected architecture of ADO.NET's data access model?

ADO.NET maintains a disconnected database access model, which means, the application never remains connected constantly to the data source. Any changes and operations done on the data are saved in a local copy (dataset) that acts as a data source. Whenever, the connection to the server is re-established, these changes are sent back to the server, in which these changes are saved in the actual database or data source.

23. What are the pre-requisites for connection pooling?

The prerequisites for connection pooling are as follows: There must be multiple processes to share the same connection describing the same parameters and security settings. The connection string must be identical.

24. What are the usages of the Command object in ADO.NET?

The following are the usages of the Command object in AD0.NET:

  • The Command object in AD0.NET executes a command against the database and retrieves a DataReader orDataSet object.
  • It also executes the INSERT, UPDATE, or DELETE command against the database.
  • All the command objects are derived from the DbCommand class.
  • The command object is represented by two classes: SqlCommand and OleDbCommand.
The Command object provides three methods to execute commands on the database:
  • The ExecuteNonQuery() method executes a Transact-SQL statement against the connection and returns the number of rows affected.
  • The ExecuteScalar() method returns a single value from a database query.
  • The ExecuteReader() method returns a result set by using the DataReader object.

1 2 3 4 5 6

ADO.NET Interview Questions and Answers - Part 3

13. Name the two properties of the GridView control that have to be specified to turn on sorting and paging.

The properties of the GridView control that need to be specified to turn on sorting and paging are as follows:

  • The AllowSorting property of the Gridview control indicates whether sorting is enabled or not. You should set the AllowSorting property to True to enable sorting.
  • The AllowPaging property of the Gridview control indicates whether paging is enabled or not. You should set the AllowPaging property to True to enable paging.

14. Mention different types of data providers available in .NET Framework.

  • .NET Framework Data Provider for SQL Server - Provides access to Microsoft SQL Server 7.0 or later version. It uses the System.Data.SqlClient namespace.
  • .NET Framework Data Provider for OLE DB - Provides access to databases exposed by using OLE DB. It uses the System.Data.OleDb namespace.
  • .NET Framework Data Provider for ODBC - Provides access to databases exposed by using ODBC. It uses the System.Data.Odbc namespace.
  • .NET Framework Data Provider for Oracle - Provides access to Oracle database 8.1.7 or later versions. It uses the System.Data.OracleClient namespace.

15. Which architecture does Datasets follow?

Datasets follow the disconnected data architecture.

16. What is the role of the DataSet object in ADO.NET?

One of the major component of ADO.NET is the DataSet object, which always remains disconnected from the database and reduces the load on the database.

17. What is a DataReader object?

The DataReader object helps in retrieving the data from a database in a forward-only, read-only mode. The base class for all the DataReader objects is the DbDataReader class. The DataReader object is returned as a result of calling the ExecuteReader() method of the Command object. The DataReader object enables faster retrieval of data from databases and enhances the performance of .NET applications by providing rapid data access speed. However, it is less preferred as compared to theDataAdapter object because the DataReader object needs an Open connection till it completes reading all the rows of the specified table. An Open connection to read data from large tables consumes most of the system resources. When multiple client applications simultaneously access a database by using the DataReader object, the performance of data retrieval and other related processes is substantially reduced. In such a case, the database might refuse connections to other .NET applications until other clients free the resources.

18. What is the use of the Connection object?

The Connection object is used to connect your application to a specific data source by providing the required authentication information in connection string. The connection object is used according to the type of the data source. For example, the OleDbConnection object is used with an OLE-DB provider and the SqlConnectionobject is used with an MS SQL Server.


1 2 3 4 5 6

ADO.NET Interview Questions and Answers - Part 2

7. Explain the DataAdapter.Update() and DataSet.AcceptChanges() methods.

The DataAdapter.Update() method calls any of the DML statements, such as the UPDATE, INSERT, or DELETEstatements, as the case may be to update, insert, or delete a row in a DataSet. TheDataSet.Acceptchanges() method reflects all the changes made to the row since the last time theAcceptChanges() method was called.

8. What is the meaning of object pooling?

Object pooling is a concept of storing a pool (group) of objects in memory that can be reused later as needed. Whenever, a new object is required to create, an object from the pool can be allocated for this request; thereby, minimizing the object creation. A pool can also refer to a group of connections and threads. Pooling, therefore, helps in minimizing the use of system resources, improves system scalability, and performance.

9. Which properties are used to bind a DataGridView control?

The DataSource property and the DataMember property are used to bind a DataGridView control.

10. What property must be set and what method must be called in your code to bind the data from some data source to the Repeater control?

You must set the DataSource property and call the DataBind() method.

11. Mention the namespace that is used to include .NET Data Provider for SQL server in .NET code ?

The System.Data.SqlClient namespace.

12. What is the difference between OLEDB Provider and SqlClient?

With respect to usage, there is no difference between OLEDB Provider and SqlClient. The difference lies in their performance. SqlClient is explicitly used to connect your application to SQL server directly, OLEDB Provider is generic for various databases, such as Oracle and Access including SQL Server. Therefore, there will be an overhead which leads to performance degradation.


1 2 3 4 5 6

ADO.NET Interview Questions and Answers - Part 1

1. What are major difference between classic ADO and ADO.NET?

Following are some major differences between both In ADO we have recordset and in ADO.NET we have dataset. In recordset we can only have one table. If we want to accommodate more than one tables. We need to do inner join and fill the recordset. Dataset can have multiple tables. All data persist in XML as compared to classic ADO where data persisted in Binary format also.

2. What is the full form of ADO?

The full form of ADO is ActiveX Data Object.

3. Explain ADO.NET in brief?

ADO.NET is a very important feature of .NET Framework, which is used to work with data that is stored in structured data sources, such as databases and XML files. The following are some of the important features of ADO.NET: Contains a number of classes that provide you with various methods and attributes to manage the communication between your application and data source. Enables you to access different data sources, such as Microsoft SQL Server, and XML, as per your requirements. Provides a rich set of features, such as connection and commands that can be used to develop robust and highly efficient data services in .NET applications. Provides various data providers that are specific to databases produced by various vendors. For example, ADO.NET has a separate provider to access data from Oracle databases; whereas, another provider is used to access data from SQL databases.

4. What are the two fundamental objects in ADO.NET?

DataReader and DataSet are the two fundamental objects in ADO.NET.

5. What are the benefits of using of ADO.NET in .NET 4.0.

The following are the benefits of using ADO.NET in .NET 4.0 are as follows:

  • Language-Integrated Query (LINQ) - Adds native data-querying capabilities to .NET languages by using a syntax similar to that of SQL. This means that LINQ simplifies querying by eliminating the need to use a separate query language. LINQ is an innovative technology that was introduced in .NET Framework 3.5. LINQ to DataSet - Allows you to implement LINQ queries for disconnected data stored in a dataset. LINQ to DataSet enables you to query data that is cached in a DataSet object. DataSet objects allow you to use a copy of the data stored in the tables of a database, without actually getting connected to the database.
  • LINQ to SQL - Allows you to create queries for data stored in SQL server database in your .NET application. You can use the LINQ to SQL technology to translate a query into a SQL query and then use it to retrieve or manipulate data contained in tables of an SQL Server database. LINQ to SQL supports all the key functions that you like to perform while working with SQL, that is, you can insert, update, and delete information from a table.
  • SqlClient Support for SQL Server 2008 - Specifies that with the starting of .NET Framework version 3.5 Service Pack (SP) 1, .NET Framework Data Provider for SQL Server (System.Data.SqlClientnamespace) includes all the new features that make it fully compatible with SQL Server 2008 Database Engine.
  • ADO.NET Data Platform - Specifies that with the release of .NET Framework 3.5 Service Pack (SP) 1, an Entity Framework 3.5 was introduced that provides a set of Entity Data Model (EDM) functions. These functions are supported by all the data providers; thereby, reducing the amount of coding and maintenance in your application. In .NET Framework 4.0, many new functions, such as string, aggregate, mathematical, and date/time functions have been added.

6. Which namespaces are required to enable the use of databases in ASP.NET pages?

The following namespaces are required to enable the use of databases in ASP.NET pages:

  • The System.Data namespace.
  • The System.Data.OleDb namespace (to use any data provider, such as Access, Oracle, or SQL)
  • The System.Data.SQLClient namespace (specifically to use SQL as the data provider)


1 2 3 4 5 6

-----------------------------------------------------------------------------------------------------------------------

ASP.NET : 3+ Years of Expreience Interview Questions and Answers

1.)View state how u make that so that view state in page can not be tampered?

Administrator wants to make a security check that no one has tampered with ViewState, how can we ensure this? Microsoft has provided two mechanisms for increasing the security of ViewState. Machine Authentication Check (MAC) - tamper-proofing <%@ Page EnableViewStateMac="true"%> Encrypting the ViewState This encryption can only be applied at the machine.config level, as follows:

2.) Types of Session state mode?

InProc mode, which stores session state in memory on the Web server. This is the default. StateServer mode, which stores session state in a separate process called the ASP.NET state service. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm. SQLServer mode stores session state in a SQL Server database. This ensures that session state is reserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm. Custom mode, which enables you to specify a custom storage provider. Off mode, which disables session state.

3.) In which database sql server session will be stored?

Session state is stored in the tempdb database of SQL Server.

4) How to call javascript function from webform1 to webform2?

Using Submit Form Method : You can submit the form in Webform1.aspx to webform2.aspx. In that case, you can retrieve all the WebForm1's form element from webform2. What we will do in the below example is to add another form ( not a server side one) which will have two HTML controls; the first is an submit control the second is a hidden field which will have the value of TextBox1 web server control to be posted to webform2 Ex: now the HTML code of webform1 will look like below
< form id="Form1" method="post" runat="server">< /form>
< asp:textbox id="TextBox1" runat="server" >< /asp:textbox>
< form action="WebForm2.aspx" method="post" name="SubmittedForm"> < /form>
< input id="Submit1" onclick="CopyTextToHiddenField()" value="submit"/>
< input name="Hidden1" />
Of course you realized the we handled the onclick event of the submit button which will call a javascript function to copy the value of TextBox1 into the hidden field (Hidden1) in order to post it to webform2. Also you so in the second form tag the action attribute in which we specified to which page the second form (SubmittedForm) will be posted.Add the below javascript code inside the tag of WebForm1.

< script language="javascript" >
function CopyTextToHiddenField()
{
var textbox1Value = document.getElementById
("<%=TextBox1.ClientID%>").value;
document.forms[1].document.getElementById
("Hidden1").value = textbox1Value;
}
< /script>
Now you retrieve the value of "Hidden1" hidden field in webform 2 using the below code Response.Write(Request.Form["Hidden1"]);

5) Webserver controls and Html controls differences?

U can get more difference here Difference Between Web Server Control and HTML Controls

6.) Difference between temporary table and derived table?

Using temp table you can able insert the value only at runtime. derived table you can insert the data anytime and view also anytime. Explicit Indexing and Constraints are allowed in temp tables. Explicit Indexing and Constraints are not Applicable In Derived tables.

7.) How to call javascript from c# code under button_click without using Button1.Attributes.Is there any method?

string strsql = "< script language="javascript" >
lovechild=window.open('Default.aspx','',
'width:150px, resizable=no,scroolbar=no');
"; this.Response.Write(strsql);

8.)which session state mode you used in your current project?why?

it depends on your project . by default InProc mode.

9.) Diffrences between UDF and Stored procedures?

  • Procedure can return zero or n values whereas function can return one value which is mandatory.
  • Procedures can have input,output parameters for it whereas functions can have only input parameters.
  • Procedure allow select as well as DML statement in it whereas function allow only select statement in it.
  • Functions can be called from procedure whereas procedures cannot be called from function.
  • Exception can be handled by try-catch block in a procedure whereas try-catch block cannot be used in a function.
  • We can go for transaction management in procedure whereas we can't go in function.
  • Procedures can not be utilized in a select statement whereas function can be embedded in a select statement.

10.) CCW,RCW why to use com components when we can manage everything with dlls?

We can't manage Everthing with dlls .becz few problems will face when handling with dlls Forex: DLL hell and etc. so, A .NET component, however, is a pre-compiled class module with a .DLL (dynamically-linked library) extension. At run time, a .NET component is invoked and loaded into memory to be used by some consumer application. You may have a single DLL that supports error handling in your applications. In this case, the DLL exposes a single ErrorHandler class that performs all of the error handling required by consumer applications. So,.Net Components can't communicate with Com directly,so we can do using RCW (Runtime callable Wrapper) and CCW .

ASP.NET Interview Questions and Answers

121. Explain the concept of states in ASP.NET.

State is quite an innovative concept in Web development because it eliminates the drawback of losing state data due to reloading of a Web page. By using states in a Web application, you can preserve the state of the application either at the server or client end. The state of a Web application helps you to store the runtime changes that have been made to the Web application. For example, as already described earlier, a change in the data source of the Web application might be initiated by a user when he/she selects and saves some products in the shopping cart.
If you are not using states, these changes are discarded and are not saved. You may think that the whole concept of storing states is optional. However, under certain circumstances, using states with applications is imperative. For example, it is necessary to store states for Web applications, such as an e-commerce shopping site or an Intranet site of a company, to keep track of the requests of the users for the items they have selected on the shopping site or the days requested for vacation on the Intranet site.

122. Can we validate a DropDownList by RequiredFieldValidator?

Yes, we can validate a DropDownList by RequiredFieldValidator. To perform this validation, we have to set the InitialValue property of RequiredFieldValidator control.

123. List the features of the Chart control.

The following are the features of the Chart control:

  • Bounds a chart with any data source.
  • Simple manipulation of chart data, such as copying, merging, grouping, sorting, searching, and filtering.
  • Support many statistical and financial formulas for data analysis.
  • Provide advanced chart outlook, such as 2-D, 3-D, lighting, and perspective.
  • Support events and customizations.
  • Includes interactivity with Microsoft AJAX.
  • Supports AJAX Content Delivery Network (CDN).


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

ASP.NET Interview Questions and Answers

115. What are the various ways of authentication techniques in ASP.NET?

There are various techniques in ASP.NET to authenticate a user. You can use one of the following ways of authentication to select a built-in authentication provider:

  • Windows Authentication - This mode works as the default authentication technique. It can work with any form of Microsoft Internet Information Services (IIS) authentication, such as Basic, Integrated Windows authentication (NTLM/Kerberos), Digest, and certificates. The syntax of Windows authentication mode is given as follows:
  • Forms Authentication - You can specify this mode as a default authentication mode by using the following code snippet:
  • Passport - This mode works with Microsoft Passport authentication, as shown in the following code snippet:

116. What are the different ways to send data across pages in ASP.NET?

The following two ways are used to send data across pages in ASP.NET:

  • Session
  • Public properties

117. What does the WebpartListUserControlPath property of a DeclarativeCatalogPart control do?

The WebpartListUserControlPath property sets the route of the user defined control to aDeclarativeCatalogPart control.

118. What do you mean by the Web Part controls in ASP.NET?

The Web Part controls are the integrated controls, which are used to create a Web site. These controls allow the users to change the content, outlook, and state of Web pages in a Web browser.

119. What type of the CatalogPart control enables users to restore the Web Parts that have been removed earlier by the user?

The PageCatalogPart control.

120. What is the use of web.config? What is the difference between machine.config and web.config?

ASP.NET configuration files are XML-based text files for application-level settings and are saved with the name web.config. These files are present in multiple directories on an ASP.NET Web application server. Theweb.config file sets the configuration settings to the directory it is placed in and to all the virtual sub folders under it. The settings in sub directories can optionally override or change the settings specified in the base directory.
The difference between the web.config and machine.config files is given as follows:

  • < WinDir>\Microsoft.NET\Framework\\config\machine.config provides default configuration settings for the entire machine. ASP.NET configures IIS to prohibit the browser directly from accessing the web.config files to make sure that their values cannot be public. Attempts to access those files cause ASP.NET to return the 403: Access Forbidden error.
  • ASP.NET uses these web.config configuration files at runtime to compute hierarchically a sole collection of settings for every URL target request. These settings compute only once and cached across further requests. ASP.NET automatically checks for changing file settings and do not validate the cache if any of the configuration changes made.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

ASP.NET Interview Questions and Answers

109.) What are Web server controls in ASP.NET?

The ASP.NET Web server controls are objects on the ASP.NET pages that run when the Web page is requested. Many Web server controls, such as button and text box, are similar to the HTML controls. In addition to the HTML controls, there are many controls, which include complex behavior, such as the controls used to connect to data sources and display data.

110.) What is cross-page posting in ASP.NET?

The Server.Transfer() method is used to post data from one page to another. In this case, the URL remains the same. However, in cross page posting, data is collected from different Web pages and is displayed on a single page. To do so, you need to set the PostBackUrl property of the control, which specifies the target page. In the target page, you can access the PreviousPage property. For this, you need to use the@PreviousPageType directive. You can access the controls of previous page by using the FindControl()method.

111.) Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared Web hosting platform?

There are many ASP.NET configuration choices, which are not able to configure at the site, application, or child directory level on the shared hosting environment. Some options can produce security, performance, and stability problem to the server and therefore cannot be changed.

The following settings are the only ones that can be changed in the web.config file(s) of your Web site:

  • browserCaps
  • clientTarget
  • pages
  • customErrors
  • globalization
  • authorization
  • authentication
  • webControls
  • webServices

112.) Explain the Application and Session objects in ASP.NET.

Application state is used to store data corresponding to all the variables of an ASP.NET Web application. The data in an application state is stored once and read several times. Application state uses theHttpApplicationState class to store and share the data throughout the application. You can access the information stored in an application state by using the HttpApplication class property. Data stored in the application state is accessible to all the pages of the application and is the same for all the users accessing the application. The HttpApplicationState class provides a lock method, which you can use to ensure that only one user is able to access and modify the data of an application at any instant of time.
Each client accessing a Web application maintains a distinct session with the Web server, and there is also some specific information associated with each of these sessions. Session state is defined in the element of the web.config file. It also stores the data specific to a user session in session variables. Different session variables are created for each user session. In addition, session variables can be accessed from any page of the application. When a user accesses a page, a session ID for the user is created. The session ID is transferred between the server and the client over the HTTP protocol using cookies.

113.) How will you differentiate a submaster page from a top-level master page?

Similar to a content page, a submaster page also does not have complete HTML source code; whereas, a top-level master page has complete HTML source code inside its source file.

114.) What is the difference between a HyperLink control and a LinkButton control?

A HyperLink control does not have the Click and Command events; whereas, the LinkButton control has these events, which can be handled in the code-behind file of the Web page.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21