• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

Asp.Net Interview Questions Answers

Question - 81 : - Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

Answer - 81 : - Valid answers are: ·  A DataSet can represent an entire relational database in memory, complete with tables, relations, and views. ·  A DataSet is designed to work without any continuing connection to the original data source. ·  Data in a DataSet is bulk-loaded, rather than being loaded on demand. ·  There's no concept of cursor types in a DataSet. ·  DataSets have no current record pointer You can use For Each loops to move through the data. ·  You can store many edits in a DataSet, and write them to the original data source in a single operation. ·  Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources.

Question - 82 : -  What is advantage of viewstate and what are benefits?

Answer - 82 : -   When a form is submitted in classic ASP, all form values are cleared. Suppose you have submitted a  form with a lot of information and the server comes back with an error. You will have to go back to  the form and correct the information. You click the back button, and what happens.......ALL form values are CLEARED, and you will have to start all over again! The site did not maintain your  ViewState.With ASP .NET, the form reappears in the browser window together with all form  values.This is because ASP .NET maintains your ViewState. The ViewState indicates the status of the  page when submitted to the server.

Question - 83 : - What do you mean by authentication and authorization?

Answer - 83 : -   Authentication is the process of validating a user on the credentials (username and     password) and authorization performs after authentication. After Authentication a user will     be verified for performing the various tasks, Its access is limited it is known as       authorization.

Question - 84 : - Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?

Answer - 84 : -   The Application_Start event is guaranteed to occur only once throughout the lifetime of the application. It's a good place to initialize global variables. For example, you might want to retrieve a list of products from a database table and place the list in application state or the Cache object. SessionStateModule exposes both Session_Start and Session_End events.

Question - 85 : - What are different templates available in Repeater?.

Answer - 85 : -   Templates enable one to apply complicated formatting to each of the items displayed by a control.Repeater control supports five types of templates.HeaderTemplate controls  how the header of the repeater control is formatted.ItemTemplate controls the formatting of each  item displayed.AlternatingItemTemplate controls how alternate items are formatted and the  SeparatorTemplate displays a separator between each item displyed.FooterTemplate is used for  controlling how the footer of the repeater control is formatted.The DataList and Datagrid supports two templates in addition to the above five.SelectedItem Template controls how a selected item is  formatted and EditItemTemplate controls how an item selected for editing is formatted.

Question - 86 : -   What are the various security methods which IIS Provides apart from .NET ?

Answer - 86 : -   The various security methods which IIS provides are a) Authentication Modes b) IP Address and Domain Name Restriction c) DNS Lookups DNS Lookups d) The Network ID and Subnet Mask e) SSL

Question - 87 : - Should user input data validation occur server-side or client-side?  Why?

Answer - 87 : - All user input data validation should occur on the server at a minimum.  Additionally, client-side validation can be performed where deemed appropriate and feasable to provide a richer, more responsive experience for the user.

Question - 88 : - What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

Answer - 88 : -   Server.Transfer() : client is shown as it is on the requesting page only, but the all the content is of the requested page. Data can be persist accros the pages using Context.Item collection, which is one of the best way to transfer data from one page to another keeping the page state alive. Response.Dedirect() :client know the physical location (page name and query string as well). Context.Items loses the persisitance when nevigate to destination page. In earlier versions of IIS, if we wanted to send a user to a new Web page, the only option we had was Response.Redirect. While this method does accomplish our goal, it has several important drawbacks. The biggest problem is that this method causes each page to be treated as a separate transaction. Besides making it difficult to maintain your transactional integrity, Response.Redirect introduces some additional headaches. First, it prevents good encapsulation of code. Second, you lose access to all of the properties in the Request object. Sure, there are workaroun

Question - 89 : -   Explain what a diffgram is, and a good use for one?

Answer - 89 : - The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML.  A good use is reading database data to an XML file to be sent to a Web Service. 

Question - 90 : - What is ViewState?

Answer - 90 : - back to the server, and is not stored on the server or any other external source.  ViewState is used the retain the state of server-side objects between postabacks.   

Computer Contributors

Rajeev Katiyar
Yes Baroda

Share your email for latest updates


Our partners